Hi Brett, I’m reporting an issue that has been happening intermittently without a pattern, and I can’t for the life of me figure out why.
I’ve been using a custom CSS with a custom processor without issues for months, but starting last week it suddenly removes all the margins when I try to print it, so it appears like lorem_no_margin.pdf. This often goes away on its own, without me catching any clear pattern. (Often I would restart the laptop, but it still didn't resolve the issue. Then, a couple of hours later, it fixed itself. It was working fine this morning, and now the issue is happening again.)
On another laptop with the exact same settings (and the same app version), using the same file and CSS, the margin is still there and renders correctly. The result is lorem.pdf.
So it looks like it’s not related to Marked 2’s settings themselves, but that something happens when it’s sent to the printer. For what it’s worth, I’ve using the same printer with the same settings for the past few months.
I’ve attached the test Markdown file, the CSS I used, and two PDFs—one rendered with margins and one without. I’d appreciate it if you know what’s going on, or if you’ve seen something similar and have any suggestions on what I should look into. Thanks!
// Configuration (do not edit)
Marked 2 1071 (Direct)
macOS Version: 26.2
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: 100
defaultProcessor: MultiMarkdown
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: YES
printHeaderBottomLeft:
printHeaderBottomRight:
printHeaderFirstPage: YES
printFooterFirstPage: NO
printHeaderTopLeft: %filename
printHeaderTopRight: %date - %time (%page / %total)
processHTMLFiles: YES
removeMetadataForPreview: NO
removeYAMLHeaders: NO
scrollToEdit: YES
shouldDetectCritic: YES
shouldHighlightMarkupErrors: NO
shouldLoadCritic: NO
syntaxHighlight: YES
syntaxHighlightOnlyLang: NO
useCustomMarkdownProcessor: YES
customMarkdownProcessor: /opt/homebrew/bin/pandoc
useCustomPreprocessor: NO
customPreprocessor: ~/Dropbox/ALL/scripts/process-tk.sh
useFirstH1AsPrintTitle: YES