Free and open source · public domain
Convert from a terminal, a build script or a CI pipeline: the same Word document as the VS Code extension, with your template, a table of contents and the diagrams as shapes, SmartArt and charts your readers can edit.
--reference-doc takes your Word template, its styles, page, headers and footers; --toc adds a table of contents.
The output’s extension picks the format: a .docx, an .odt for LibreOffice, or a .pptx with one slide per diagram.
Exit codes a pipeline can test, and a .log next to the document that lists each warning with its diagram and its line in the Markdown.
With --sandbox, Pandoc reads no image, file, web address or network share the text names.
Install Node.js 18 or later and Pandoc (pandoc.org) if they are not on your computer yet.
Run one of the commands below in the folder of your Markdown file: npx fetches the command line the first time.
In a project, pin it instead: npm install --save-dev --save-exact @md2nativedocx/cli, then md2nativedocx report.md -o report.docx.
npx @md2nativedocx/cli report.md -o report.docx
npx @md2nativedocx/cli report.md -o report.docx --reference-doc template.docx --toc
npx @md2nativedocx/cli report.md -o report.odt
npx @md2nativedocx/cli deck.md -o deck.pptx