Free and open source · public domain
A document you hand on has to open, look right and be safe. Here is what md2nativedocx checks before any version is released, the standards it follows, and what it never does.
Every change converts a set of sample documents and checks them with Microsoft’s Open XML SDK, against the schema Word enforces; .odt files are checked against the OpenDocument schema. The diagrams md2nativedocx draws must pass without a single error.
A change to how a diagram looks is opened in desktop Word, and in LibreOffice for .odt, before it is released. The two do not always agree, so passing tests is not enough.
The tests run on all three systems on every change, with the same pinned version of Pandoc everywhere.
Labels may come from anyone, an AI assistant included. Each one is escaped before it enters the document, and the diagram reader is tested with masses of random input, not only with examples.
md2nativedocx does not write its own Markdown reader. Pandoc, the reference document converter, reads headings, lists, tables, footnotes, task lists, LaTeX formulas and YAML front matter, and writes them as Word styles and equations.
Of the 541 official examples of Mermaid 12.3.0, 517 (95%) convert without a single remark, and none fails. On every change, each one is also compared with what Mermaid itself reads, node by node and link by link.
.docx and .pptx follow Office Open XML (ECMA-376), .odt follows OpenDocument 1.3 (OASIS). Diagrams become what Word and PowerPoint make themselves: shapes with attached connectors, SmartArt, and charts with their data.
The site and the VS Code extension speak six languages. Labels in any script, accented, Cyrillic or Chinese, are measured to fit their boxes, Chinese characters at their full width, and checked in desktop Word.
This site converts in your browser, and its pages are not allowed to contact any other site. The Word add-in converts inside Word; its pages load nothing from elsewhere but Microsoft’s Office.js, which Microsoft requires of every add-in. The VS Code extension, the command line and the MCP server convert on your own machine.
No macro, no script, no link that Word or LibreOffice would follow to fetch something: the mechanism behind the Follina attack is left out of every file md2nativedocx writes.
Pandoc is the official release of its authors, checked against its published fingerprint before it runs, on this site and in the VS Code extension. PlantUML is never run: its text is read by md2nativedocx’s own code, and an !include is not followed.
All of md2nativedocx is public domain (CC0) and on GitHub. Its npm packages are published by GitHub Actions with provenance, never from someone’s computer.
A diagram type not drawn yet becomes a visible note in the document, and each conversion lists its remarks: an option ignored, an icon a document cannot show.
Tell us on GitHub. A diagram that came out wrong becomes a test, so the same mistake cannot come back unnoticed.