Flayms / Markdown2Pdf

.NET library for converting markdown to PDF.
https://www.nuget.org/packages/Markdown2Pdf/
MIT License
5 stars 1 forks source link

Add placeholder for manual page break #43

Open INOPIAE opened 5 months ago

INOPIAE commented 5 months ago

Add a placeholder for manual page break so a manual page break can be added for the pdf output instead of using

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

in markdown document.

Flayms commented 5 months ago

What do you mean with placeholder?

INOPIAE commented 5 months ago

May be somthing similar to <!--TOC--> e.g. <!--pbr--> and replace the placeholder during HTML creation with <div style="page-break-after: always"></div>

Flayms commented 1 month ago

I am not super convinced by this tbh. It's a feature that's neither in any Markdown spec nor exists in any other parser. While the <div style="page-break-after: always"></div> is quite bulky, it's at least a common and documented way of inserting page breaks, that would work with other converters as well. That's also why I changed the TOC placeholder a bit, to do it similarly as other parsers.