OliverBalfour / obsidian-pandoc

Pandoc document export plugin for Obsidian (https://obsidian.md)
MIT License
684 stars 58 forks source link

[bug] Incorrect export files in word format, containing mathematical formulas: #44

Open tonygrr opened 3 years ago

tonygrr commented 3 years ago

Thank you for your work, this is a great plugin.

Incorrect export files in word format, containing mathematical formulas (extra characters in front of formulas that are taken from the variable index): Pasted image 20210627131630

However, if you export directly through pandoc, there is no problem: Pasted image 20210627131725

OliverBalfour commented 3 years ago

Sorry about this! One way to fix this issue is to set the Export files from HTML or markdown? setting to Markdown in the plugin settings.

By default this plugin uses the HTML displayed in Obsidian as input to Pandoc, which is how things like DataView tables work. However, the math equation support in Pandoc for HTML imports is often a little patchy. So if you change that setting, it will use Pandoc normally with markdown and you won't have as many formatting issues. However, this will remove support Obsidian specific markdown features. Unfortunately for now it's a choice between good formatting and getting Obsidian features.

If you have any further issues / questions, please let me know.