autopagebreak

.autopagebreak maxdepth:{Int} -> Void

Sets a new automatic page break threshold when a heading is found: if a heading's depth value (the amount of leading #s) is equals or less than maxdepth, a page break is forced before the heading.

Parameters

maxdepth

heading depth to force page breaks for (positive only).

See also

Throws

if maxdepth is a negative value