Step: pandoc¶
Transformation step that converts Pandoc-compatible document formats.
Currently, we use version 3.6.4. For more information, please refer to the official documentation.
Input¶
Gets a file from the previous step (otherwise it fails), format needs to be specified using from option.
Output¶
Results in a document in desired format specified using to option.
Options¶
from= specification of the input format (passed to Pandoc via--from, see docs)to= specification of the output format (passed to Pandoc via--to, see docs)(optional)
args= additional command line arguments passed to pandoc(optional, experimental)
filters= additional Pandoc filters to be used, need to be located under/pandoc/filtersdirectory (or other set byPANDOC_FILTERSenvironment variable), comma separated(optional, experimental)
template= Pandoc template to be used, need to be located under/pandoc/templatesdirectory (or other set byPANDOC_TEMPLATESenvironment variable)
Example¶
{
"name" : "pandoc",
"options" : {
"from" : "html",
"to" : "docx",
"args": "--filter=pandoc-docx-pagebreakpy --reference-doc=src/reference.docx",
"filters": "docx-pagebreak.lua, docx-toc.lua"
}
}