Is there a way to force page breaks in the markdown source that is respected by mdbook-pdf? #9
-
I see the page break on chapters (which I might be able to use for my purposes), but is there an alternate way to request a page break in the MD source file that flows all the way to mdbook-pdf, and allows me to put a page break at a specified point in the text? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi! Actually the page break on chapters is a default behaviour of mdbook, you can turn it off by setting I'm not sure if there is an alternate way to request a page break in the MD source file manually for mdbook, maybe you can simply add the html element in the MD file to do so, or just ask for some kind of way at mdbook's issue. |
Beta Was this translation helpful? Give feedback.
-
In case anyone else is looking for it, we found this worked: <div style="page-break-before:always"> </div>
<p></p> The |
Beta Was this translation helpful? Give feedback.
Hi! Actually the page break on chapters is a default behaviour of mdbook, you can turn it off by setting
page-break = false
for the[output.html.print]
: https://rust-lang.github.io/mdBook/format/configuration/renderers.html#outputhtmlprint Anything that are present in the generatedprint.html
should be followed by themdbook-pdf
.I'm not sure if there is an alternate way to request a page break in the MD source file manually for mdbook, maybe you can simply add the html element in the MD file to do so, or just ask for some kind of way at mdbook's issue.