mdproof icon indicating copy to clipboard operation
mdproof copied to clipboard

Explicit page breaks

Open leroycep opened this issue 6 years ago • 1 comments

Seems like a useful feature to have, but CommonMark doesn't define any way to create page breaks. This stackoverflow post suggests using some html to do it:

<div style="page-break-after: always;"></div>

We could also try making extra long thematic breaks page breaks. I.E. five or more on a line = page break.

*****

Or two thematic breaks in a row:

***
***

I'm open to discussion on if and how explicit page breaks could be implemented.

leroycep avatar Sep 12 '18 23:09 leroycep

Added in 71cf9a4.

I went for HTML style page breaks. A caveat is that, currently, a pagebreak is only created when style is exactly page-break-after:always;. Any spaces or other style code will be ignored.

leroycep avatar Sep 15 '18 19:09 leroycep