๐ฆ ClawHub
Markdown to Word (.docx) Converter
by @krabww
Convert Markdown files to formatted Word (.docx) documents with automatic template style detection. Use this skill whenever the user mentions converting Mark...
๐ก Examples
Basic conversion (default Chinese typesetting)
python3 scripts/md_to_docx.py input.md -o output.docx
With template (auto-extract formatting)
python3 scripts/md_to_docx.py input.md -o output.docx -t template.doc
When Invoked as a Skill
When the user asks to convert a Markdown file to Word:
1. Identify the input file โ the user will typically specify a .md file path
2. Check for a template โ ask if they have a .doc/.docx template, or check if one exists in common locations (docs/, templates/)
3. Ensure dependencies are installed:
pip3 install python-docx
npm list -g @mermaid-js/mermaid-cli 2>/dev/null || npm install -g @mermaid-js/mermaid-cli
4. Run the script from the skill's scripts/ directory:
python3 /scripts/md_to_docx.py -o [-t ]
5. Report results โ tell the user the output path and whether all Mermaid diagrams rendered successfullyTERMINAL
clawhub install md-to-docx