Batch convert common document formats to Markdown. Powered by markitdown.
| Format | Extension |
|---|---|
| Word | .docx |
| PowerPoint | .pptx |
| Excel | .xlsx |
.pdf |
pip install markitdownPlace all2md.py in the target folder, then run:
python all2md.pyThe script scans the current directory for all supported files and generates a .md file for each.
📁 my_docs/
├── report.docx
├── slides.pptx
├── data.xlsx
└── all2md.py
After running:
📁 my_docs/
├── report.docx
├── report.md ← generated
├── slides.pptx
├── slides.md ← generated
├── data.xlsx
├── data.md ← generated
└── all2md.py
批量将常见文档格式转换为 Markdown。基于 markitdown。
| 格式 | 扩展名 |
|---|---|
| Word | .docx |
| PowerPoint | .pptx |
| Excel | .xlsx |
.pdf |
pip install markitdown将 all2md.py 放到目标文件夹,然后运行:
python all2md.py脚本会扫描当前目录下所有支持的文件,转换后生成同名 .md 文件。
📁 my_docs/
├── report.docx
├── slides.pptx
├── data.xlsx
└── all2md.py
运行后:
📁 my_docs/
├── report.docx
├── report.md ← 生成
├── slides.pptx
├── slides.md ← 生成
├── data.xlsx
├── data.md ← 生成
└── all2md.py
MIT