It appears that CSS "h2 { break-before: always }" is being ignored in Marked 3, at least as rendered in Print Preview.
It appears that CSS "h2 { break-before: always }" is being ignored in Marked 3, at least as rendered in Print Preview.
Do you mean in a custom style? The PDF/print preview no longer uses WebKit's print system, so is not affected by most webkit CSS rules. That said, it should recognize page-break-before. If you want to share an example document and your custom style, I can test.
It's a custom stylesheet. I'll attach screenshots of the first page, the style management, and the Print Preview rendering, then I'll attach a snippet of the Markdown document, as well as the CSS file.
There should be a page break before each of the H2 headings, such as "Apple Cide-Sage Vinaigrette" and "Apple Crisp".


