Markdown → DOCX converter (local, no server). Supports Mermaid/Graphviz/Vega/HTML/SVG rendering, math, and code highlighting.
npm install @cloudgeek/md2docxMarkdown → DOCX converter (local, no server). Supports Mermaid/Graphviz/Vega/HTML/SVG rendering, math, and code highlighting.
``bash`
npx @cloudgeek/md2docx input.md output.docx
List themes:
`bash`
npx @cloudgeek/md2docx --list-themes
Use a theme:
`bash`
npx @cloudgeek/md2docx input.md output.docx --theme academic
`bash`
npm run node:dev -- ./demo/test.md
This package depends on puppeteer. On first install, Puppeteer downloads a compatible “Chrome for Testing” build (cached under your user directory). Set PUPPETEER_SKIP_DOWNLOAD=1 to skip download and use a system Chrome via PUPPETEER_EXECUTABLE_PATH.
`bash``
npm publish