Page breaks
::pagebreakStarts a new page in page view and in the PDF. In draft view it shows as a dashed line labelled Page break. It takes no label and no attributes. Insert one with macOS: ⌘↵, Windows and Linux: Ctrl+Enter.
# Page breaks
The first page.
::pagebreak
## Second page
This page starts after a single `::pagebreak`.
::pagebreak::pagebreak
## Third page
The two breaks above collapse into one.
::pagebreak
::pagebreak
## Fifth page
The page before this one is intentionally blank: it contains only a non-breaking space.Open it in MDLeaf with Library → Import .mdl. If MDLeaf is installed, you can also open the file directly.
-
Consecutive breaks collapse. Two
::pagebreaklines in a row produce one break, not an empty page. A break at the very start or end of the document does nothing. A break that falls exactly where a page ends anyway does not add a page either. -
Blank pages on purpose: put a paragraph containing only a non-breaking space between two breaks:
::pagebreak ::pagebreak -
Directives that apply to a page, such as
::hideor::pagenumber, belong right after the break: then they are guaranteed to land on the new page.
Common mistakes
Section titled “Common mistakes”::pagebreak(indented) or- ::pagebreak(in a list) is text:directive-misplaced.::page-breakis not a directive:directive-unknown.::pagebreak{now}: attributes are ignored withdirective-attr-unknown.