document-to-markdown
Skill4 starsChanged 36 days agoMITView on GitHub
将本地文档和网页文件转换为 Markdown,支持 PDF、DOCX、PPTX、XLSX/CSV、HTML、可 OCR 的图片,以及其他
4 other projects use a version of this.
Adopted by
Most recently taken up by
- donmangudata-ops/web-data-skillstheir own version, first seen Oct 25, 2026
- ubshreenath/document-to-markdowntheir own version, first seen Oct 25, 2026
- instrument-org/skillstheir own version, first seen Oct 22, 2026
- tanod-labs/tanod-mcptheir own version, first seen Oct 17, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- ubshreenath/document-to-markdown★ 2same name
- instrument-org/skills★ 1same name
- tanod-labs/tanod-mcp★ 1same name
- donmangudata-ops/web-data-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository29 other files it gives its agents.
- analysis-report-orchestratorSkill
- chatlab-analyzerSkill
- ecom-image-reverse-sop-shareSkill
- ecom-main-image-diagnosisSkill
- ecom-market-insight-tableSkill
- ecommerce-competitor-analyzerSkill
- ecommerce-data-analysis-workflowSkill
- ecommerce-review-analysisSkill
- ecom-one-photo-pageSkill
- ecom-page-plannerSkill
- ecom-product-assets-collectorSkill
- ecom-ranking-main-image-collectorSkill
- ecom-video-workflowSkill
- external-skill-adapterSkill
- feishu-project-weekly-reportSkill
- frontend-design-systemSkill
- full-spectrum-distillerSkill
- github-repo-dissectorSkill
- kolsprite-tiktok-opsSkill
- manim-hyperframes-videoSkill
- rpa-flow-architectSkill
- sellersprite-amazon-opsSkill
- top10stats-data-videoSkill
- video-producer-coreSkill
- webbridge-archive-publisherSkill
- web-collection-orchestratorSkill
- wechat-account-data-reviewSkill
- wechat-article-knowledge-packSkill
- wechat-group-insight-reportsSkill
The file
Files
文档转 Markdown
工作流程
- 先确认源文件路径存在,再选择输出位置。在 Codex 的无项目聊天里,面向用户交付的 Markdown 文件优先写入当前线程的
outputs/目录。 - 优先使用
scripts/convert_to_markdown.py;它会调用已安装的markitdown命令,并处理输出路径、批量转换和 PDF 断行清理。 - 转换完成后做一次快速质量检查:文件存在、大小不是空壳、文本不是大面积空白、没有明显乱码替换符,并抽看开头和结尾是否可读。
- 如实说明转换器警告。PDF 的字体边界警告通常不影响正文提取,只要 Markdown 文本完整即可。
脚本用法
单个文件转到指定 Markdown 路径:
python path/to/document-to-markdown/scripts/convert_to_markdown.py "input.pdf" -o "output.md" --keep-raw一个或多个文件转到文件夹:
python path/to/document-to-markdown/scripts/convert_to_markdown.py "a.pdf" "b.docx" -o "markdown/"批量转换某个目录:
python path/to/document-to-markdown/scripts/convert_to_markdown.py "docs/" -o "markdown/" --recursive常用选项:
--clean auto:只对 PDF 自动清理断行,这是默认值。--clean always:对所有转换结果都应用断行清理。--clean never或--no-clean:完全保留 MarkItDown 原始输出。--keep-raw:启用清理时,同时保留一份.raw.md原始转换稿,方便对照。
转换说明
.pdf、.docx、.pptx、.xlsx、.csv、.html、.htm、常见图片格式、音频格式和 URL,优先使用 MarkItDown。- 旧版
.doc可能需要先用 LibreOffice 或其他工具转成.docx。 - 扫描版 PDF 需要 OCR 支持。如果转换结果为空或几乎全是图片,说明需要 OCR;只有本机已安装可用 OCR 工具时再尝试。
- 加密文件或需要登录的网页,需要用户提供已导出的本地文件或合法访问材料;不要索要密码。
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

