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:
- Open a Markdown document in Marked 2 (sample document attached).
- Select File > Export > PDF (or File > Print).
- 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