This program allows you to transform Markdown into a Word document.
This project converts Markdown files into Microsoft Word (.docx) documents.
It preserves common block and inline-level elements (headings, lists, links, images, code blocks, emphasis, tables) and provides a small CLI to control input, output and templates.
- Fast: Processes large Markdown files quickly and efficiently.
- Accurate: Preserves formatting for headings, lists, links, images, code blocks, emphasis, and tables.
- CLI Tool: Simple command-line interface for easy integration into workflows.
- Cross-platform: Works on Windows, macOS, and Linux.
To begin, install all dependencies in the project:
npm installThen, build the CLI by running:
npm run buildNext, link the CLI globally:
npm linkOnce linked, you can execute the CLI from your terminal:
md-to-docxYou can also run this locally without linking the CLI globally.
npm run devWhen you run the program you will be prompted to provide:
- Input file: path to the Markdown file to convert (required).
This project is licensed under the MIT License. See the LICENSE file for more info.