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

Ignores the view of html tags and classes #201

Open
angrymidget4728 opened this issue Dec 28, 2023 · 2 comments
Open

Ignores the view of html tags and classes #201

angrymidget4728 opened this issue Dec 28, 2023 · 2 comments

Comments

@angrymidget4728
Copy link

angrymidget4728 commented Dec 28, 2023

Writing a book. Scene shifts are broken by a centered diamond icon (<center>♦</center>). Obsidian displays it fine. Pandoc ePub export ignores the center tag. Same goes for some special paragraphs that I decided to center (**<center>Sentence should be centered bold</center>**) but it ignores the center and only bolds it.

Tried doing <p class="cb">Paragraph</p> and adding a css snipped for center align bold weight, but didn't work. Same goes for div tag. It ignores the class attribute as a whole.

The only thing that worked so far is <div style="text-align: center; font-weight: bold;">Center bold para</div> but not only is this inconveniently wordy, but it also causes paragraph spacing (the default obsidian one line gap) to be ignored entirely.

I just want it to display however obsidian is translating and displaying it. Nothing more.

@devinat1
Copy link

devinat1 commented Jan 4, 2024

Also ignores the header view of this form: ![[Google Privacy Policy#Main Points]] #203

@AaronKnowls
Copy link

This is quite inconvenient.
The issue is that Pandoc, when exporting, changes the <center> tag into the <p> tag.
I have to fix this afterward with Calibre, using search and replace to change it back to what it was in Obsidian.
Is there a way to tell Pandoc not do perform that change?

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