Image break in PDF (paginated) export

chewzer's Avatar


30 Aug, 2022 03:41 PM


I'm trying to export an image dossier with one image for page but vertical images sometimes get split. There is a way to ensure that an image is always only on a single page, instead of spanning multiple pages? The images much smaller than the page, but based on the document flow, they end up at the bottom of the page and get split. I tried to modify css with page-break-inside: avoid code or break-inside:avoid but it doesn't works...

In attached image an exemple (image borders are just to help me testing css).


  1. Support Staff 1 Posted by Brett on 30 Aug, 2022 04:02 PM

    Brett's Avatar

    Unfortunately Marked's PDF output is at the mercy of the WebKit rendering engine, which (like most browsers) takes page-break rules as simple suggestions. Would it help to put intentional page breaks before each image? You could do this by inserting horizontal rules (* * *) and turning on "Replace horizontal rules with page breaks" in Preferences->Export. It all depends on the size and shape of the image as to whether that's a solution or not.

  2. 2 Posted by chewzer on 30 Aug, 2022 04:34 PM

    chewzer's Avatar

    Thank you Brett, I did it but it doesn't works (see attached file)... The goal was to use the same .md files to generate my website (with and at the same time to generate PDF portfolios... it seems that I have to wait...

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Already uploaded files

  • Captura_de_Pantalla_2022-08-30_a_las_17.40.56.png 1.57 MB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac