obsidian-pandoc icon indicating copy to clipboard operation
obsidian-pandoc copied to clipboard

Ignores the view of html tags and classes

Open angrymidget4728 opened this issue 1 year ago • 2 comments

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.

angrymidget4728 avatar Dec 28 '23 12:12 angrymidget4728

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

devinat1 avatar Jan 04 '24 01:01 devinat1

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?

AaronKnowls avatar Jan 22 '24 11:01 AaronKnowls