Skip to content

Is there a way to force page breaks in the markdown source that is respected by mdbook-pdf? #9

Pinned Answered by HollowMan6
GeoffMurray asked this question in Q&A
Discussion options

You must be logged in to vote

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 generated print.html should be followed by the mdbook-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.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by HollowMan6
Comment options

You must be logged in to vote
1 reply
@kameshwari1991
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants