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

Explicit page breaks #7

Open
leroycep opened this issue Sep 12, 2018 · 1 comment
Open

Explicit page breaks #7

leroycep opened this issue Sep 12, 2018 · 1 comment

Comments

@leroycep
Copy link
Owner

Seems like a useful feature to have, but CommonMark doesn't define any way to create page breaks. This stackoverflow post suggests using some html to do it:

<div style="page-break-after: always;"></div>

We could also try making extra long thematic breaks page breaks. I.E. five or more on a line = page break.

*****

Or two thematic breaks in a row:

***
***

I'm open to discussion on if and how explicit page breaks could be implemented.

@leroycep
Copy link
Owner Author

Added in 71cf9a4.

I went for HTML style page breaks. A caveat is that, currently, a pagebreak is only created when style is exactly page-break-after:always;. Any spaces or other style code will be ignored.

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

1 participant