obsidian-pandoc
obsidian-pandoc copied to clipboard
Ignores the view of html tags and classes
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.
Also ignores the header view of this form: ![[Google Privacy Policy#Main Points]] #203
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?