Textsize in print is to large and can not be changed.

Viewed 50

Hi,

I have a custom stylesheet with

body {
  font-family: "Cargan", "Cargan Regular", Georgia, -apple-system,
    BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell",
    "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  max-width: 50em;
}

It works ok in Marked 2.

In Marked 3 the font size is much larger. And the override font size in the PDF export window is ignored.

Also CSS for print is ignored:

@media print {
  font-size: 12pt;
}

Yours
derheap

PS: The image upload is not working. I select a PNG and the popup keeps complaining: ›The file can not be empty‹

3 Answers

Are you talking specifically about the font size in exported PDFs? I thought I had fixed the font size override. @print styles will have no effect on v3, as it no longer uses the print system to generate PDFs. I'll look at the font size override, though. I'm not sure what you're running into with PNG uploads, but could you create and attach a zip with your stylsheet, an example Markdown document, and any additional screenshots you think would help me fully replicate the issue?

Uploading Archiv.zip...
It’s a bit strange.

I changed the body selector to #wrapper and enlarged the font-size to 2 em as a demo.
The size is scaled down in the print preview, even if override is not checked. With override the font is in the same size. Which for my judement is not 9pt, more 12pt. Enlarging works.

How to attach a ZIP?