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

Hi, can you fix the HTML tags display problems when export to PDF? #78

Open
arieltutu opened this issue Nov 20, 2024 · 0 comments
Open

Comments

@arieltutu
Copy link

arieltutu commented Nov 20, 2024

Big thanks for providing this amazing plugin! It has truly been a lifesaver!

I’ve just discovered that this issue is occurring with this plugin. Following is the original description from l1xnan/obsidian-better-export-pdf#346:

I would be super grateful if you could look into this problem ! 🥰🥰🥰🤗🤗


First off, thank you for this fantastic plugin! It’s a huge help, especially since exporting notes to PDF with emoji or Twemoji via Pandoc can be quite complicated and doesn’t always work as expected. Additionally, maintaining outline structure in PDF is really convenient.
I'm a programming noob. From what I understand, Pandoc converts Markdown to LaTeX (which lacks native emoji support) before generating a PDF, which often causes issues. See Pandoc official description: https://pandoc.org/MANUAL.html#creating-a-pdf


In plugin settings, I have toggled on "Print Background" already.

My Problem:

So I try to export my note with HTML <span> tag code that include inline text with multiple background colors inside a table. Well, <span> background-color works fine with plain text, but not within a table after exporting. Here’s how it looks in the Obsidian preview:
{F08FEB92-C632-4421-B104-60CF34FA847F}
P.S.: I tried using <mark> tags instead, but it only highlights text with a single background color (yellow) rather than multiple colors after rendering or exporting:
{67BD201A-F540-4427-ADED-6B047EDAEFEB}


Question:

Is it correct to assume that <span style="background-color: ..."> type anything </span>is unsupported inside a tale in the export?
My obsidian source mode:
{502195D9-E66F-4210-9A12-7DF8EC614456}

Here is what I get after <span> backgoud-color typing exporting:
{89371763-455F-41CC-960B-836D59198942}

Or if there are any possible solutions I can get to display inline text background colors inside a table?

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

1 participant