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

Skip the rest of the page? #13

Open
ivanjaros opened this issue Jan 22, 2023 · 2 comments
Open

Skip the rest of the page? #13

ivanjaros opened this issue Jan 22, 2023 · 2 comments

Comments

@ivanjaros
Copy link

I want to put some content as the last page of the document, is there a way to tell the renderer to skip the rest of the current page and render the next page instead?

@stephenafamo
Copy link
Owner

There's nothing in the markdown spec for inserting page breaks and no common flavours have something similar, so this is something I will be reluctant to add to this package.

However, if you have a syntax you like and can write a goldmark parser for it, you can then write your own pdf node renderer too and pass it as an option to the PDF renderer.

@esnible
Copy link

esnible commented May 30, 2023

Is there an example of how to add a new node renderer?

For reference, because I was curious, here are how people are inserting page breaks in other Markdown tools

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

3 participants