manuth / MarkdownConverter

Provides the functionallity to convert Markdown-files to html, png, or pdf using vscode.
MIT License
37 stars 11 forks source link

Page break #204

Open josepindubond opened 1 year ago

josepindubond commented 1 year ago

Hi, is it possible to add a page break to the pdf conversion? Thanks

manuth commented 1 year ago

Hello @josepindubond I'm terribly sorry, looks like I missed it to add a remark on this on the README page.

MarkdownConverter provides the page-break and the no-page-break classes for taking control over page breaks.

Page 1

<div class="page-break"></div>

Page 2
<div class="no-page-break">

This section won't contain any page break.

</div>

For further customization, you can use CSS attributes such as break-after, break-before and break-inside in order to do so.

I will leave this issue open until I added remarks on this in the README file

josepindubond commented 1 year ago

Thanks, The page-break and no-page-break not work in my document. For now, I'm using css attributes.