Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: support manual page breaks #22

Closed
sjsadowski opened this issue May 9, 2023 · 2 comments
Closed

Feature Request: support manual page breaks #22

sjsadowski opened this issue May 9, 2023 · 2 comments

Comments

@sjsadowski
Copy link

In some cases it makes sense to define where pages should break such as around images so that they are rendered on a single page.

This might be accomplished with

<!-- PAGE_BREAK -->

Then in the html a CSS rule could be inserted, something like

@media print {
    .pagebreak { page-break-before: after; } 
}

and then replacing the PAGE_BREAK instruction with an empty div:

<div class="pagebreak"></div>

I have been successfully using the plugin otherwise, and am happy to continue doing so - this would just be a quality-of-life improvement.

@HollowMan6
Copy link
Owner

Hi! Actually, this is a duplicate issue. #9 (comment)

You can just use the code mentioned to replace the <!-- PAGE_BREAK --> you used in the markdown files. And just as I mentioned in all the previous issues, pdf generation is dependent on mdbook html generation, if you prefer your method, these can get realized by mdbook directly.

@HollowMan6 HollowMan6 closed this as not planned Won't fix, can't repro, duplicate, stale May 9, 2023
@HollowMan6 HollowMan6 pinned this issue May 9, 2023
@sjsadowski
Copy link
Author

Got it - I searched issues not discussions, sorry for the dupe but thanks for the quick response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants