Adding a setting field for global arguments (feedback wanted) #176
FeralFlora
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
Global arguments are indeed more difficult to control and are suitable for advanced users who are very familiar with pandoc. They can be added and given red text warnings. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I thought it would be useful to be able to add global arguments, or arguments that are applied across all command templates. This could be for things like:
--toc
--number-sections
-M colorlinks="true"
-M title="${currentFileName}"
-M reference-section-title:="Bibliography"
This makes it easier to add and maintain certain arguments that are generally desired.
Therefore, I implemented this locally:
And it works! Whatever you put into the global arguments gets applied to every command template.
However, it's difficult to imagine arguments that you'd truly want across all commands, because many commands cannot be applied to all output formats. Therefore, I guess it would be necessary to have some way to blacklist or whitelist which command templates should have the global arguments included, and which shouldn't.
This could, for example, be done with a toggle next to the other buttons by each command template:
However, I am not sure what the best approach is. Therefore, I just wanted to put this idea out there and get some feedback, before I open a PR with this feature.
Beta Was this translation helpful? Give feedback.
All reactions