Skip to content

How to export markdown file to word docx file

Export markdown to word docx file

Install Pandoc

Install pandoc from https://pandoc.org/installing.html

modify style

  1. export default style docx, open it.
pandoc -o custom-reference.docx --print-default-data-file reference.docx
  1. modify header style

  2. modify table style

Select table, click Table Design on top bar.
Select Table Normal

  1. save docx file

Export markdown file to docx file

  1. config vscode settings
    add --reference-doc="custom-reference.docx" to "Docx Opt String"

  2. exoprt markdown to docx file