ChrisChinchilla / vscode-pandoc

Visual Studio Code extension lets you render markdown to pdf, word doc or html with pandoc
MIT License
26 stars 13 forks source link

Ignored pandoc_arg if OptString is defined #11

Open alfureu opened 3 years ago

alfureu commented 3 years ago

I try to define in the file itself the pandoc_arg. However, if there is anything written in the main settings' OptString element of the plugin, the pandoc_arg is simply ignored.

Would it be please possible to add these to the end of the OptString? So it also takes into consideration the settings made in pandoc_arg within the file?

alfureu commented 3 years ago

I must correct the reported issue. Anything is ignored in the output yaml header with this extension unfortunately:

For example, having anything set in the header for output

---
output:
  word_document:
    reference_docx: 
    pandoc_args: 
---

the extension ignores completely these settings. This means one cannot alter or add any settings, except in the extension Setting.

EDIT: I am trying to add a --lua-filter=/path/to/filter for example