goldmark-pdf
goldmark-pdf copied to clipboard
Skip the rest of the page?
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?
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.
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
-
<div style="page-break-after: always"></div>
HTML; https://markdownmonster.west-wind.com/docs/_5ne1ccv4t.htm -
\newpage
Pandoc via LaTex; https://stackoverflow.com/questions/16965490/pandoc-markdown-page-break -
***
PDFKit; http://pdfkit.org/docs/