Headers and footers crop body text

Viewed 11

First, dear Brett, thanks for your impressive work – of which most things works like a charm.

  1. My problem is page breaks in Exported Paginated PDF. Sometimes they appear within lines of text, cropping body text or masked by headers and footers. (I had to do some extensive manual editing to get a readable document. Changing the margins, paddings etc. did not help.)

  2. Also, the setting of the font for headers and footers in export preferences seems to be lost in the export dialog with the need to re-set it every time.

  3. Sometimes page breaks splits a bullet point from the rest of the line but not sure this is caused by a faulty CSS or a bug in Marked.

Best,
P-D

1 Answers

Thanks for the prompt reply.

I'm using the attached CSS that was developed with some struggle in collaboration with Codex. Funny thing was that an exported paginated PDF May, 28 was perfectly fine (or at least I didn't notice any issues). Then I had to edit the same document and exported it again, and it had several issues with the headers and footers, interfering with the body text. (In the meantime I updated Marked to new versions when it was released.)

Now, I have manually edited my draft (in Drafts) so the PDF looks OK, but I copied the Markdown text and removed the manual
etc. to get it back to the more problematic state. Please, see pages 6, 8, 14, 15.

Also, I forgot in the previous message: ab brevitation did not appear correctly in the PDF, even though it looks fine in the preview window.

PULS.css

PULS: Forskningsprofilen – delrapport 1 – 2026-06-05.pdf

Test document for Brett and Marked.pdf