Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with exporting to PDF #405

Open
l0drex opened this issue Oct 23, 2023 · 2 comments
Open

Problems with exporting to PDF #405

l0drex opened this issue Oct 23, 2023 · 2 comments
Assignees

Comments

@l0drex
Copy link

l0drex commented Oct 23, 2023

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
Copy link
Author

l0drex commented Oct 23, 2023

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

@Mandarancio Mandarancio self-assigned this Oct 23, 2023
@treemana
Copy link

treemana commented Feb 1, 2024

  • I encountered the same problem and found another way to convert markdown to PDF.
  • Let me share it with you.
  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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants