Replies: 1 comment
-
By "ignore non-fatal errors," I assume you mean the error you get when the default file you specify isn't present? It seems you could easily write a little shell script wrapper that would check for the presence of this file and call pandoc with |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
My situation is this: I'm using Pandoc within Obsidian, and depending on where I am in my vault, sometimes I want to convert with specific options; other times, I want to use the defaults.
The way the Pandoc plugin in Obsidian works, I have to specify any command-line option (--defaults) in the global setting. If the file isn't present in a folder, the whole thing fails.
I would like the ability to set a default local config file and have Pandoc load it if it's there and apply whatever the rules of --defaults are. Otherwise, it uses the global defaults.
Another option would be an option to ignore non-fatal errors, but I fail to see how that could work across all use cases.
I looked at the docs and I don't see something that will allow me to do this, but I could be wrong.
Would it be useful to anyone other than me? If I wanted to add that to a local version of Pandoc, where would I look in the code? (Not saying I will do it, but if I can just replace the Pandoc binary with a version that does it… maybe?)
Thanks,
L
Beta Was this translation helpful? Give feedback.
All reactions