Open mgmeyers opened 3 years ago
Hi,
Have you tried using \
as an escape ?
--reference-doc=/Users/matt/Library/Mobile Documents/iCloud~md~obsidian/Documents/Knowledge\ Garden/Templates/essay-template.docx
@Limezy Yeah, but no luck. The value of "Extra Pandoc arguments" is split on space characters before it's sent to the command line, so escaping that space has no effect.
I can confirm this. I did find a workaround for (path) spaces in plugin settings Please test it.
workaround for (path) spaces in plugin settings
I think you're missing another '\'. It should be placed in front of "Documents" of "Mobile Documents" like:
--reference-doc=/Users/matt/Library/Mobile\ Documents/iCloud~md~obsidian/Documents/Knowledge\ Garden/Templates/essay-template.docx
I use a reference document with pandoc like so:
But because "Extra Pandoc arguments" are split on spaces, the plugin sees this as three arguments rather than one.
https://github.com/OliverBalfour/obsidian-pandoc/blob/master/pandoc.ts#L141
This throws the error: