Open bkaganovich opened 2 years ago
For headers, you can put the attributes on the same line:
# Header Title {: style="page-break-before: always" }
With empty line, it indeed doesn't work, because you need something to attach the attribute too.
You can also use raw HTML if you really need an empty object:
<div style="page-break-before: always"></div>
The page break in PDF export or print preview doesn't work if the line before is a heading or empty line.
Related: Page break in markdown does not work #290 Can I use page breaks in Markdown?
This solution works: