🎁 Get the FREE AI Skills Starter GuideSubscribe →
BytesAgainBytesAgain
🦀 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...

Versionv1.0.0
Installs8
📋 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
    

    View on ClawHub
    TERMINAL
    clawhub install markdown-to-word-skill

    🧪 Use this skill with your agent

    Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

    🔍 Can't find the right skill?

    Search 60,000+ AI agent skills — free, no login needed.

    Search Skills →