fabiocolacio / Marker

🖊 A gtk3 markdown editor
GNU General Public License v3.0
832 stars 75 forks source link

Problems with exporting to PDF #405

Open l0drex opened 11 months ago

l0drex commented 11 months ago

When exporting to pdf, I noticed some problems:

Unclickable Links

Links are styled correctly, but you can't click on them to open them.

Code blocks are cut

When a code block gets too long, the preview allows you to scroll through it. When exporting to pdf, the code block gets cut and since you can't interact with it the content becomes invisible. Instead, the code block should soft wrap the lines on export.

Detail elements don't show their content

Contents of detail tags are invisible when not expanded in the preview. Weirdly, if I expand it in the preview, it is also exported as expanded in the pdf. Here is an example detail tag:

<details>
<summary>Click to see more details</summary>

Content that should be visible in the exported pdf
</details>
l0drex commented 11 months ago

(For anyone looking for a quick solution, obsidian can export to PDF without these problems, except for the details tag)

treemana commented 8 months ago
  1. Export the .html file from markdown.
  2. Open the .html file with a web browser (Chrome, Firefox, etc.).
  3. Print the page to a PDF file.