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

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

Open tonygrr opened this issue 3 years ago • 1 comments

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

tonygrr avatar Jun 27 '21 10:06 tonygrr

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.

  • [ ] Note to self: update the docs to mention this fix

OliverBalfour avatar Jun 27 '21 12:06 OliverBalfour