PDF/Print export: body text overflows page margins across all stylesheets (recurs after preference reset)

Viewed 14

Description of the issue:

When exporting a document to PDF or using the Print function, the body text overflows beyond the page margins. The text is visually clipped or runs off the edge of the page rather than wrapping correctly within the defined print area. This does not appear to affect the preview, only the PDF export and print output.

Note: This issue was previously resolved by resetting all preferences, but has since reappeared with no apparent direct cause. The problem persists across multiple stylesheets.

Steps to reproduce:

  1. Open a Markdown document in Marked 2 (sample document attached).
  2. Select File > Export > PDF (or File > Print).
  3. Observe that body text in the exported PDF / print preview exceeds the page margins.

Sample document:

https://karsalfrink.thegood.cloud/s/xxJsj2A9L9jjppD

// Configuration (do not edit)
Marked 2 1071 (Direct)
macOS Version: 26.3

additionalMathJaxConfig:
allowPageBreakInCode: YES
bookTxtIsLeanpub: NO
summaryMdIsGitBook: NO
codeIsPoetry: NO
codeCanWrap: YES
collapsibleHeadlines: NO
convertGithubCheckboxes: YES
convertGithubEmoji: YES
convertYAMLToMMD: NO
defaultMathJaxConfig: TeX-AMS-MML_HTMLorMML
defaultPreviewStyle: 101
defaultProcessor: Discount (GFM)
enableMiniMap: NO
excludeBlockQuotesFromCounts: NO
excludeFootnotesFromCounts: NO
excludeVerbatimFromCounts: NO
excludeCaptionsFromCounts: NO
folderPreviewExtensionsArray: md, markdown, txt, mdown, html, opml
githubNewlines: YES
h1IsPageBreak: NO
h2IsPageBreak: NO
hrIsPageBreak: NO
includeMathJax: NO
includeKatex: NO
limitTextWidth: NO
mathNumberEquations: NO
mathNumberEquationsSide: 0
mathNumberEquationsAMSOnly: NO
minimalJavaScript: NO
outlineModeExtensions:
permissionGranted: NO
printHeaderBottomLeft:
printHeaderBottomRight: %page
printHeaderFirstPage: NO
printFooterFirstPage: NO
printHeaderTopLeft: %title
printHeaderTopRight:
processHTMLFiles: NO
removeMetadataForPreview: 1
removeYAMLHeaders: 1
scrollToEdit: NO
shouldDetectCritic: YES
shouldHighlightMarkupErrors: NO
shouldLoadCritic: NO
syntaxHighlight: NO
syntaxHighlightOnlyLang: NO
useCustomMarkdownProcessor: NO
customMarkdownProcessor:
useCustomPreprocessor: YES
customPreprocessor: ~/Documents/Marked 2/marked-preprocess.sh
useFirstH1AsPrintTitle: YES

1 Answers

I haven't been able to pinpoint this issue, but for Marked 2 users on macOS 26 there seems to be a host of PDF problems. I'm not currently developing on Marked 2 at all, and it will be a while before I come back around to it. All of my focus is on Marked 3, which has an entirely rewritten PDF generator. If you'd like to try it out, go to https://markedapp.com/join-the-beta.

If I figure out what's going on in the meantime, I'll publish an update to v2.