MarkdownConverter icon indicating copy to clipboard operation
MarkdownConverter copied to clipboard

Page break

Open josepindubond opened this issue 3 years ago • 2 comments

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

josepindubond avatar Nov 08 '22 10:11 josepindubond

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

neurolag avatar Nov 08 '22 11:11 neurolag

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

josepindubond avatar Nov 08 '22 14:11 josepindubond