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

Horizontal rule not rendering when exporting to simple pdf, works when exporting to .docx and .odt #5562

Closed
2 of 5 tasks
Noopss opened this issue Jan 13, 2025 · 3 comments
Closed
2 of 5 tasks
Labels
bug A bug that affects the functionality of Zettlr.

Comments

@Noopss
Copy link

Noopss commented Jan 13, 2025

Description

In a document, I typed "---" and "***" but none of them are making a horizontal rule when exporting as simple PDF.

Reproducing

Try to type --- or *** in a document, and then export to Simple PDF.

Zettlr version

3.4.1

Installation Method

From the Website or GitHub

Installation Method (Other)

No response

Your Platform

  • Windows
  • macOS
  • Linux

Architecture

  • Intel 64bit
  • ARM 64bit (includes Apple Silicon)

Operating System Version

Windows 11

Additional Information

No response

@Noopss Noopss added the bug A bug that affects the functionality of Zettlr. label Jan 13, 2025
Copy link

boring-cyborg bot commented Jan 13, 2025

Thanks so much for opening up your first issue here! 🎉 We will respond soon
to help fix your issue or address your request, so please keep your
notifications turned on so that you can answer any additional questions we may
have.

We want to make Zettlr better for everyone, but we cannot guarantee to
implement a feature request, and cannot provide any ETA on when we are able to
get to your issue.

NOTE: Please do not share screen captures of buggy behavior on YouTube. If
you have uploaded a video on YouTube and linked it already, don't worry!
But we would like to ask you to remove the video from YouTube, and upload it
directly to GitHub instead, by editing your comment.
Read more here.

@nathanlesage
Copy link
Member

Found the reason: The horizontal rule in the default HTML template (provided by Pandoc) uses CSS background instead of border to display. However, when printing in a browser, usually the setting "Print background" is off.

I opened a PR upstream to Pandoc to propose a change for this: jgm/pandoc#10535

I cannot promise that John and the team agrees with this change, however. Should they decline this PR, you will have to adapt your own template instead of using the default one.

Since this is not caused by Zettlr, I will close this issue here. Please refer to the PR to get updates.

@nathanlesage
Copy link
Member

Quick update: The PR has been merged, so once the update is released, Zettlr updates to it, AND releases an update, this will work out of the box. Until then, please use a modified template.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug that affects the functionality of Zettlr.
Projects
None yet
Development

No branches or pull requests

2 participants