dfinke / vscode-pandoc

Visual Studio Code extension lets you render markdown to pdf, word doc or html with pandoc
124 stars 36 forks source link

Setting additional pandoc options #5

Closed satokaz closed 8 years ago

satokaz commented 8 years ago

The default pandoc option of some can not be converted Markdown document. For example, to convert the multi-byte of the Markdown document that contains the Japanese will must have the appropriate option settings.

I need a mechanism to be set separately the options. It added the following features.

https://github.com/satokaz/vscode-pandoc/tree/pandoc_options

if so there is no problem with the implementation, I will do a pull request.

Setting additional pandoc options

  1. choose 'Preference -> UserSettings'
  2. Find: pandoc in Default Settings
  3. Copy and paste to settings.json

example:

//-------- Pandoc Option Configuration --------

// pandoc .pdf output option template that you would like to use
"pandoc.pdfOptString": "",

// pandoc .docx output option template that you would like to use
"pandoc.docxOptString": "",

// pandoc .html output option template that you would like to use
"pandoc.htmlOptString": ""

For more information please refer to the Pandoc User’s Guide.

dfinke commented 8 years ago

Thanks for the comment. At first glance it looks good. Let me review. Feel free to do a PR and we can review.

satokaz commented 8 years ago

ok, thanks.

dfinke commented 8 years ago

Thank you for the great update.