Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

all2md

English | 中文


English

Batch convert common document formats to Markdown. Powered by markitdown.

Supported Formats

Format Extension
Word .docx
PowerPoint .pptx
Excel .xlsx
PDF .pdf

Installation

pip install markitdown

Usage

Place all2md.py in the target folder, then run:

python all2md.py

The script scans the current directory for all supported files and generates a .md file for each.

Example

📁 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 .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

License

MIT

About

可以把pptx,docx,xlsx,pdf等常见文档格式做成markdown,本项目基于微软的markitdown

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages