pagebreak in markdown while creating pdf

Solution 1:

Since Markdown accepts plain HTML and CSS, simply add this line wherever you want to force page break.

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

If your Markdown editor have trouble exporting PDF correctly, first try to export as HTML, then open with your browser and print as PDF.

Solution 2:

I encountered the same and solve it by inserting

\pagebreak

It's actually a LaTeX command, rather than a Markdown one.