miku-md2docx converts Markdown files into editable Word .docx files.
It is a local tool. Your Markdown file and local images are processed on your machine and are not uploaded to a server.
The conversion goal is document structure, not pixel-perfect Word layout.
Supported Markdown features include:
- paragraphs and headings
- bold, italic, strike, underline, inline code, and hard breaks
- external links and resolvable heading links
- bullet, numbered, nested, and task-list-like items
- Markdown tables
- fenced and indented code blocks
- blockquotes and horizontal rules
- local PNG, JPEG, GIF, and WebP images
- limited raw HTML:
<br>,<ins>,<a>, and<img>
Known limitations:
- raw HTML is not fully converted
- remote image URLs are not downloaded
- SVG images are not converted
- table alignment and merged cells are ignored
- template
.docxinput is not supported
The browser UI is maintained in the separated Web App repository:
This repository owns the Markdown to DOCX product core, CLI, and CLI release bundle. The Web App repository owns browser UI files, Single-file Web App generation, browser tests, and Web release assets.
Install dependencies once:
npm installConvert a Markdown file:
npm run cli -- ./sample.md --out ./sample.docxShow help or version:
npm run cli -- --help
npm run cli -- --versionThe initial first-cut development is complete. See TODO.md for remaining follow-up decisions.
Developer notes are in docs/development.md.