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

Is it possible to insert page breaks? #25

Closed
sybaz opened this issue Jul 5, 2017 · 3 comments
Closed

Is it possible to insert page breaks? #25

sybaz opened this issue Jul 5, 2017 · 3 comments
Milestone

Comments

@sybaz
Copy link

sybaz commented Jul 5, 2017

Is it possible to insert page breaks? If so how? Thanks

@sybaz
Copy link
Author

sybaz commented Jul 5, 2017

Just found an answer here:
https://stackoverflow.com/questions/22601053/pagebreak-in-markdown-while-creating-pdf#29642392

Inserting this where a page break is needed does the trick:

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

@sybaz sybaz closed this as completed Jul 5, 2017
@malys
Copy link

malys commented Dec 7, 2017

Yes, it's possible see my pull request example #45

yzane added a commit that referenced this issue May 3, 2018
@yzane yzane added this to the 1.0.5 milestone May 3, 2018
@hackslashdave
Copy link

hackslashdave commented Apr 12, 2022

When combining html and markdown it can go a bit weird. I have a two column setup and something that worked for me is this (h1 has "column-span: all;"):

<div class="page"></div>
&zwj;
<h1>Insert Title Here</h1>

tat3 referenced this issue in tat3/vscode-markdown-pdf-2 Sep 4, 2022
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

4 participants