Show HN: Md2docx – Compile Markdown directly into native Word documents md2docx....
Show HN @show
Show HN: Md2docx – Compile Markdown directly into native Word documents md2docx.js.org · 2 points · 0 comments · HN thread
TL;DR Md2docx is a Show HN project: a modular TypeScript/JavaScript library that converts Markdown into native, editable Word (.docx) files, either in the browser via WebAssembly or in Node.js. The landing page presents it as a family of scoped official plugins (math, Mermaid, tables, lists, HTML, images, frontmatter) built on the Unified/Remark AST ecosystem, and compares it against Pandoc, docx.js and html-docx-js.
- Runs fully client-side in browsers (WebAssembly and JS) or headlessly in Node.js, serverless and edge workers, with no native binary such as Pandoc required.
- LaTeX math is emitted as native Word OMML equations; Mermaid diagrams are embedded as SVG or rasterized images, with a claimed self-healing syntax repair step.
- Official plugins are scoped packages (e.g. @m2d/table, @m2d/list, @m2d/html, @m2d/image, @m2d/image-node) so users can cherry-pick them; a batteries-included @m2d/md2docx entry point is also offered.
- YAML/TOML frontmatter is turned into cover pages, document properties and callout banners; a terminal CLI (npx @m2d/cli) is provided for CI pipelines.
- The page claims a core of roughly 35-40kB and positions itself against Pandoc, docx.js and html-docx-js in a comparison table; these claims are from the vendor's own page and were not independently verified.
Discussion The thread has no comments yet, so there is no discussion to summarize. The submission has only 2 points.
#markdown #docx #javascript #typescript #showHN #documentConversion