Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Support for passing in a --defaults file to pandoc #531

Closed
pbsds opened this issue Aug 27, 2021 · 2 comments
Closed

Support for passing in a --defaults file to pandoc #531

pbsds opened this issue Aug 27, 2021 · 2 comments

Comments

@pbsds
Copy link

pbsds commented Aug 27, 2021

I request the ability to set a custom (defaults.yaml)[https://pandoc.org/MANUAL.html#default-files], much like how it is possible to set custom bibfiles and cslfiles which are searched for recursively.

With this addition, the preview could adapt to each project instead of having to configure settings such as filters globally.
This change will also partially sidestep #530

@lierdakil
Copy link
Collaborator

Hi. Sorry for the late response. It's a good call, but I'm currently very short on spare time, so resolving it might take a while. In the meantime, I can suggest a workaround. You can actually pass arbitrary arguments to pandoc. The option's in the settings. Pandoc is executed from the file's directory, which theoretically would allow you to pass --defaults defaults.yaml globally and just plop the defaults file next to the markdown file itself. I understand this is not a great option, but atm it's either this or nothing, I'm afraid.

@pbsds
Copy link
Author

pbsds commented Sep 7, 2021

I totally glossed over that option. Thanks.

@pbsds pbsds closed this as completed Oct 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants