{"id":51026703,"url":"https://github.com/gitstq/markitdown-pro","last_synced_at":"2026-06-21T20:02:14.100Z","repository":{"id":361294083,"uuid":"1253918364","full_name":"gitstq/markitdown-pro","owner":"gitstq","description":"🚀 MarkItDown-Pro - Lightweight Document to Markdown Conversion Engine | 轻量级文档转Markdown转换引擎","archived":false,"fork":false,"pushed_at":"2026-05-30T00:13:19.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-30T02:11:06.869Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gitstq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-30T00:12:07.000Z","updated_at":"2026-05-30T00:13:09.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/gitstq/markitdown-pro","commit_stats":null,"previous_names":["gitstq/markitdown-pro"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/gitstq/markitdown-pro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitstq%2Fmarkitdown-pro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitstq%2Fmarkitdown-pro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitstq%2Fmarkitdown-pro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitstq%2Fmarkitdown-pro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gitstq","download_url":"https://codeload.github.com/gitstq/markitdown-pro/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitstq%2Fmarkitdown-pro/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34623906,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-21T02:00:05.568Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-21T20:02:13.468Z","updated_at":"2026-06-21T20:02:14.091Z","avatar_url":"https://github.com/gitstq.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# 🚀 MarkItDown-Pro\n\n**Lightweight Document to Markdown Conversion Engine**\n\n[![Python](https://img.shields.io/badge/Python-3.8+-blue.svg)](https://www.python.org/)\n[![License](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)\n[![Version](https://img.shields.io/badge/Version-1.0.0-orange.svg)]()\n[![Zero Dependencies](https://img.shields.io/badge/Zero-Dependencies-brightgreen.svg)]()\n\n[English](#english) | [简体中文](#简体中文) | [繁體中文](#繁體中文)\n\n\u003c/div\u003e\n\n---\n\n## English\n\n### 🎉 Introduction\n\n**MarkItDown-Pro** is a lightweight, zero-dependency CLI tool that converts various document formats to Markdown. Inspired by Microsoft's popular markitdown project, we've built a more focused, lightweight solution with broader format support.\n\n### ✨ Key Features\n\n- **🎯 Zero Dependencies** - Pure Python standard library for core functionality\n- **📄 Multi-Format Support** - PDF, DOCX, EPUB, HTML, CSV, XLSX, JSON, XML, and more\n- **⚡ High Performance** - Fast conversion with minimal resource usage\n- **🔧 Plugin Architecture** - Extensible converter system\n- **📊 Batch Processing** - Convert multiple files or entire directories\n- **🎨 Clean Output** - Well-formatted Markdown with preserved structure\n\n### 🚀 Quick Start\n\n#### Installation\n\n```bash\n# Install from PyPI (when published)\npip install markitdown-pro\n\n# Or install with optional dependencies\npip install markitdown-pro[all]      # All formats\npip install markitdown-pro[pdf]      # PDF support\npip install markitdown-pro[docx]     # Word support\npip install markitdown-pro[epub]     # E-book support\npip install markitdown-pro[xlsx]     # Excel support\n```\n\n#### Usage\n\n```bash\n# Convert a single file\nmarkitdown-pro document.pdf\n\n# Convert to specific output\nmarkitdown-pro input.docx -o output.md\n\n# Convert multiple files\nmarkitdown-pro *.csv\n\n# Convert directory recursively\nmarkitdown-pro documents/ --recursive\n\n# List supported formats\nmarkitdown-pro --list-formats\n```\n\n### 📖 Supported Formats\n\n| Format | Extension | Status | Dependencies |\n|--------|-----------|--------|--------------|\n| Plain Text | .txt | ✅ Native | None |\n| HTML | .html, .htm | ✅ Native | None |\n| JSON | .json | ✅ Native | None |\n| XML | .xml | ✅ Native | None |\n| CSV | .csv | ✅ Native | None |\n| Markdown | .md | ✅ Native | None |\n| PDF | .pdf | ✅ Optional | PyPDF2 |\n| Word | .docx | ✅ Optional | python-docx |\n| EPUB | .epub | ✅ Optional | ebooklib |\n| Excel | .xlsx, .xls | ✅ Optional | openpyxl |\n\n### 📦 API Usage\n\n```python\nfrom markitdown_pro import MarkItDownPro\n\n# Initialize converter\nconverter = MarkItDownPro()\n\n# Convert single file\nresult = converter.convert(\"document.pdf\")\nprint(result.markdown_content)\n\n# Batch conversion\nresults = converter.convert_batch([\"file1.csv\", \"file2.csv\"])\n\n# Directory conversion\nresults = converter.convert_directory(\"documents/\", recursive=True)\n```\n\n### 💡 Design Philosophy\n\nMarkItDown-Pro was designed with these principles:\n\n1. **Simplicity** - Easy to install, easy to use\n2. **Performance** - Fast conversion without bloat\n3. **Extensibility** - Plugin architecture for custom converters\n4. **Compatibility** - Works on Python 3.8+ across all platforms\n\n### 📄 License\n\nMIT License - see [LICENSE](LICENSE) file for details.\n\n---\n\n## 简体中文\n\n### 🎉 项目介绍\n\n**MarkItDown-Pro** 是一款轻量级、零依赖的 CLI 工具，可将各种文档格式转换为 Markdown。灵感来源于 Microsoft 热门的 markitdown 项目，我们构建了一个更专注、更轻量的解决方案，支持更广泛的格式。\n\n### ✨ 核心特性\n\n- **🎯 零依赖设计** - 核心功能纯 Python 标准库实现\n- **📄 多格式支持** - PDF、DOCX、EPUB、HTML、CSV、XLSX、JSON、XML 等\n- **⚡ 高性能** - 快速转换，资源占用极低\n- **🔧 插件架构** - 可扩展的转换器系统\n- **📊 批量处理** - 支持多文件或整个目录转换\n- **🎨 简洁输出** - 格式良好的 Markdown，保留文档结构\n\n### 🚀 快速开始\n\n#### 安装\n\n```bash\n# 从 PyPI 安装（发布后）\npip install markitdown-pro\n\n# 或安装带可选依赖的版本\npip install markitdown-pro[all]      # 所有格式\npip install markitdown-pro[pdf]      # PDF 支持\npip install markitdown-pro[docx]     # Word 支持\npip install markitdown-pro[epub]     # 电子书支持\npip install markitdown-pro[xlsx]     # Excel 支持\n```\n\n#### 使用方法\n\n```bash\n# 转换单个文件\nmarkitdown-pro document.pdf\n\n# 指定输出文件\nmarkitdown-pro input.docx -o output.md\n\n# 转换多个文件\nmarkitdown-pro *.csv\n\n# 递归转换目录\nmarkitdown-pro documents/ --recursive\n\n# 查看支持的格式\nmarkitdown-pro --list-formats\n```\n\n### 📖 支持格式\n\n| 格式 | 扩展名 | 状态 | 依赖 |\n|------|--------|------|------|\n| 纯文本 | .txt | ✅ 原生 | 无 |\n| HTML | .html, .htm | ✅ 原生 | 无 |\n| JSON | .json | ✅ 原生 | 无 |\n| XML | .xml | ✅ 原生 | 无 |\n| CSV | .csv | ✅ 原生 | 无 |\n| Markdown | .md | ✅ 原生 | 无 |\n| PDF | .pdf | ✅ 可选 | PyPDF2 |\n| Word | .docx | ✅ 可选 | python-docx |\n| EPUB | .epub | ✅ 可选 | ebooklib |\n| Excel | .xlsx, .xls | ✅ 可选 | openpyxl |\n\n### 📦 API 使用\n\n```python\nfrom markitdown_pro import MarkItDownPro\n\n# 初始化转换器\nconverter = MarkItDownPro()\n\n# 转换单个文件\nresult = converter.convert(\"document.pdf\")\nprint(result.markdown_content)\n\n# 批量转换\nresults = converter.convert_batch([\"file1.csv\", \"file2.csv\"])\n\n# 目录转换\nresults = converter.convert_directory(\"documents/\", recursive=True)\n```\n\n### 💡 设计理念\n\nMarkItDown-Pro 遵循以下设计原则：\n\n1. **简洁性** - 易于安装，易于使用\n2. **性能** - 快速转换，无冗余\n3. **可扩展性** - 插件架构支持自定义转换器\n4. **兼容性** - 支持 Python 3.8+，跨平台运行\n\n### 📄 开源协议\n\nMIT 许可证 - 详见 [LICENSE](LICENSE) 文件。\n\n---\n\n## 繁體中文\n\n### 🎉 專案介紹\n\n**MarkItDown-Pro** 是一款輕量級、零依賴的 CLI 工具，可將各種文件格式轉換為 Markdown。靈感來源於 Microsoft 熱門的 markitdown 專案，我們構建了一個更專注、更輕量的解決方案，支援更廣泛的格式。\n\n### ✨ 核心特性\n\n- **🎯 零依賴設計** - 核心功能純 Python 標準庫實現\n- **📄 多格式支援** - PDF、DOCX、EPUB、HTML、CSV、XLSX、JSON、XML 等\n- **⚡ 高效能** - 快速轉換，資源佔用極低\n- **🔧 外掛架構** - 可擴充套件的轉換器系統\n- **📊 批次處理** - 支援多檔案或整個目錄轉換\n- **🎨 簡潔輸出** - 格式良好的 Markdown，保留文件結構\n\n### 🚀 快速開始\n\n#### 安裝\n\n```bash\n# 從 PyPI 安裝（釋出後）\npip install markitdown-pro\n\n# 或安裝帶可選依賴的版本\npip install markitdown-pro[all]      # 所有格式\npip install markitdown-pro[pdf]      # PDF 支援\npip install markitdown-pro[docx]     # Word 支援\npip install markitdown-pro[epub]     # 電子書支援\npip install markitdown-pro[xlsx]     # Excel 支援\n```\n\n#### 使用方法\n\n```bash\n# 轉換單個檔案\nmarkitdown-pro document.pdf\n\n# 指定輸出檔案\nmarkitdown-pro input.docx -o output.md\n\n# 轉換多個檔案\nmarkitdown-pro *.csv\n\n# 遞迴轉換目錄\nmarkitdown-pro documents/ --recursive\n\n# 檢視支援的格式\nmarkitdown-pro --list-formats\n```\n\n### 📖 支援格式\n\n| 格式 | 副檔名 | 狀態 | 依賴 |\n|------|--------|------|------|\n| 純文字 | .txt | ✅ 原生 | 無 |\n| HTML | .html, .htm | ✅ 原生 | 無 |\n| JSON | .json | ✅ 原生 | 無 |\n| XML | .xml | ✅ 原生 | 無 |\n| CSV | .csv | ✅ 原生 | 無 |\n| Markdown | .md | ✅ 原生 | 無 |\n| PDF | .pdf | ✅ 可選 | PyPDF2 |\n| Word | .docx | ✅ 可選 | python-docx |\n| EPUB | .epub | ✅ 可選 | ebooklib |\n| Excel | .xlsx, .xls | ✅ 可選 | openpyxl |\n\n### 📦 API 使用\n\n```python\nfrom markitdown_pro import MarkItDownPro\n\n# 初始化轉換器\nconverter = MarkItDownPro()\n\n# 轉換單個檔案\nresult = converter.convert(\"document.pdf\")\nprint(result.markdown_content)\n\n# 批次轉換\nresults = converter.convert_batch([\"file1.csv\", \"file2.csv\"])\n\n# 目錄轉換\nresults = converter.convert_directory(\"documents/\", recursive=True)\n```\n\n### 💡 設計理念\n\nMarkItDown-Pro 遵循以下設計原則：\n\n1. **簡潔性** - 易於安裝，易於使用\n2. **效能** - 快速轉換，無冗餘\n3. **可擴充套件性** - 外掛架構支援自定義轉換器\n4. **相容性** - 支援 Python 3.8+，跨平臺執行\n\n### 📄 開源協議\n\nMIT 許可證 - 詳見 [LICENSE](LICENSE) 檔案。\n\n---\n\n\u003cdiv align=\"center\"\u003e\n\n**Made with ❤️ by MarkItDown-Pro Team**\n\n[Report Bug](https://github.com/gitstq/markitdown-pro/issues) · [Request Feature](https://github.com/gitstq/markitdown-pro/issues)\n\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitstq%2Fmarkitdown-pro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgitstq%2Fmarkitdown-pro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitstq%2Fmarkitdown-pro/lists"}