MacDownApp / MacDownApp/macdown

Splitting code blocks across pages in PDF

Open
#1,142 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Rich Text Format
Stars
9.8k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Hello,

I'm trying to generate pdf from a markdown file with a code block. This code block is about one page long and would not fit in the current page, thus the code block starts on a new page, leaving the first one half empty. Is that possible to split code blocks like this across pages?

## Markdown

1

## PDF

2

## Setting

3

Contributor guide

Open the contributing guide

Research direction

The issue names no source files, tests, or entry points. Review the PDF export path and its pagination behavior, then verify that a code block that crosses a page boundary can continue on the next page without leaving unnecessary blank space.

Written by the indexing model from the issue text.

Assessment

Domain
desktop
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.