| name | markdown-to-docx |
| description | Converts Markdown files (.md, .markdown) to DOCX using the markdown-docx npm package. Supports single and batch conversions, automatically generates output filenames, and creates Microsoft Word documents from Markdown content. |
Markdown to DOCX Converter
Overview
Convert Markdown files to Microsoft Word DOCX format using the markdown-docx npm package. Supports single file and batch conversions with automatic output file naming.
Quick Start
Single file conversion:
python scripts/convert_md_to_docx.py -i document.md
This creates document.docx in the same directory.
Batch conversion:
python scripts/convert_md_to_docx.py -i file1.md file2.md file3.md
Each file is converted to DOCX in its original location.
Custom output location:
python scripts/convert_md_to_docx.py -i document.md -o output/mydoc.docx
Batch to specific directory:
python scripts/convert_md_to_docx.py -i *.md -o output_docs/
Workflow
When a user requests markdown to DOCX conversion:
- Identify input files - Confirm which markdown file(s) to convert
- Determine output naming - Use auto-naming unless user specifies custom names
- Run conversion - Execute the script with appropriate parameters
- Report results - Inform user of success and output file location(s)
Common Use Cases
Convert a single markdown file
User: "Convert README.md to DOCX"