How Can I Force a Page Break in Printed/PDF Media?

Viewed 8

Since — as far as I can tell — CSS-based page breaks are ignored (https://support.markedapp.com/questions/D19k/css-break-before-always-ignored), is there any OTHER way can I force a page break in a printed document/PDF export? I have a very large Markdown document that runs to hundreds of pages, and I need well-defined page breaks. (It's a recipe book, where each recipe needs to begin on a new page.)

1 Answers

Add the HTML comment <!--BREAK--> where you want the breaks. You can also turn on "Convert horizontal rules to page breaks" and then use --- where you want a break, as long as you don't need horizontal rules for other things.

For a recipe book, I would assume each recipe has a title. If those are h2s, you can just turn on "Add page breaks before h2s" and every recipe would start a new page.