Skip to main content

Integrate Pandoc as Markdown Converter

· One min read
Niko Lee
Programmer

Convert Markdown files to Microsoft Word docs using Pandoc.

Creating a template

pandoc -o ~/.pandoc/custom-reference.docx --print-default-data-file reference.docx

Using the template

/usr/local/bin/pandoc \
-f markdown {{vault_path}}/docs/workflows/stand-alone_workflows/{{file_name}} \
--reference-doc=/Users/nikolee/.pandoc/rhs-draft-reference.docx \
-t docx \
-o {{vault_path}}/../exports/draft/docx/{{title}}.docx \
--toc --number-sections

Step 1:

Step 2:

Step 3: