🦀 ClawHub
Markdown To Word Skill
by @runmanfm-bit
Convert Markdown files to well-formatted Word documents with support for headings, lists, tables, code blocks, images, math formulas, custom styles, template...
📋 Tips & Best Practices
#### 1. 缺少依赖
ModuleNotFoundError: No module named 'docx'
解决方案:
pip install python-docx
#### 2. 图片路径错误
FileNotFoundError: [Errno 2] No such file or directory: 'image.jpg'
解决方案:
--image-dir 参数指定图片目录#### 3. 样式不存在
KeyError: 'Heading 1'
解决方案:
--list-styles 查看可用样式#### 4. 编码问题
UnicodeDecodeError: 'utf-8' codec can't decode byte...
解决方案:
python md2docx.py --input input.md --output output.docx --encoding utf-8-sig
调试模式
python md2docx.py --input input.md --output output.docx --debug
TERMINAL
clawhub install markdown-to-word-skill