tag:support.markedapp.com,2011-09-11:/discussions/problems/168974-paginated-pdf-output-regularily-ends-a-page-with-a-headingMarked: Discussion 2022-07-05T13:20:35Ztag:support.markedapp.com,2011-09-11:Comment/548928822022-07-05T13:20:35Z2022-07-05T13:20:35ZPaginated PDF output regularily ends a page with a heading.<div><p>This isn't terribly avoidable. Marked is basically printing a web page to PDF, meaning any print directions are limited to what CSS WebKit understands. I can tell it to put a page break before every header, but that would cause a lot more disruption (though there's the option to do that with h1/h2). I could use JavaScript to group all headers with their next paragraph or list and then request no page break within that container, but again, that would lead to unpredictable results in areas where it currently lays out fine. It's not an easy problem to solve.</p>
<p>-Brett</p></div>Brett