markitdown-converter
统一文档格式转换器,支持 DOCX ↔ MD、PDF/PPTX/XLSX/HTML → MD → DOCX。
Skill by Murchey
Chalk Labs
Need help deploying markitdown-converter?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/murchey-markitdown-converter
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: documents, spreadsheets, presentations, frontend
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/markitdown-converter
What's inside
- Skill name
markitdown-converter- Description
- 统一文档格式转换器,支持 DOCX ↔ MD、PDF/PPTX/XLSX/HTML → MD → DOCX。
- License
- GPL-3.0
- Instructions
- 150 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (2)
- SKILL.md
- markitdown_converter.py · scripts/
SKILL.md (first lines)
# Document Converter
统一文档格式转换器,集成 markitdown 和 pandoc,支持双向转换。
**输入**:多种文档格式(.md, .docx, .pdf, .pptx, .xlsx, .html 等)
**输出**:Markdown 或 DOCX 文件
---
# 转换逻辑
| 输入格式 | 输出格式 | 使用引擎 | 说明 |
|---------|---------|---------|------|
| `.md` / `.txt` | `.docx` | pandoc | 支持数学公式(LaTeX → MathML) |
| `.docx` | `.md` | markitdown | 保留标题、列表、表格结构 |
| `.pdf` | `.md` | markitdown | 文本提取、OCR(可选) |
| `.pptx` | `.md` | markitdown | 幻灯片内容、备注 |
| `.xlsx` | `.md` | markitdown | 表格数据 |
| `.html` | `.md` | markitdown | 网页内容 |
| 任意格式 | `.docx` | markitdown + pandoc | 两步转换:先转 MD,再转 DOCX |
---
# 调用方式
## 命令行
```bash
# MD → DOCX
python SKILLS/markitdown-converter/scripts/markitdown_converter.py input.md output.docx
# DOCX → MD
python SKILLS/markitdown-converter/scripts/markitdown_converter.py document.docx output.md
# PDF → MD
python SKILLS/markitdown-converter/scripts/markitdown_converter.py report.pdf output.md
# PDF → DOCX(两步转换)
python SKILLS/markitdown-converter/scripts/markitdown_converter.py report.pdf output.docx
```
## Python API
```python
import sys
sys.path.insert(0, 'SKILLS/markitdown-converter/scripts')
from markitdown_converter import MarkItDownConverter
converter = MarkItDownConverter()
# MD → DOCX
result = converter.convert('input.md', 'output.docx')
# DOCX → MD
result = converter.convert('document.docx', 'output.md')
# 任意格式 → DOCX
result = converter.convert_to_docx('report.pdf', 'output.docx')
```
---
# API 方法
| 方法 | 说明 | 参数 |
|------|------|------|
| `convert(input, output)` | 智能转换(自动判断方向) | 输入路径、输出路径(可选) |
| `convert_to_docx(input, output)` | 任意格式 → DOCX | 输入路径、输出路径(可选) |
| `extract_text(input)` | 提取纯文本 | 输入路径 |
| `get_metadata(input)` | 获取元数据 | 输入路径 |
| `batch_convert(in_dir, out_dir)` | 批量转换 | 输入目录、输出目录 |
---
# 功能特性
## Markdown → DOCX
| 特性 | 说明 |
|------|------|
| **数学公式** | 自动检测 LaTeX 公式,转换为 MathML |
| **表格** | 支持 Markdown 表格 |
| **代码块** | 支持围栏代码块 |
| **标题** | 自动转换为 Word 标题样式 |
| **列表** | 支持有序/无序列表 |
## DOCX/其他格式 → Markdown
| 特性 | 说明 |
|------|------|
| **多格式支持** | DOCX、PDF、PPTX、XLSX、HTML 等 |
| **结构保留** | 保留标题、列表、表格、链接 |
| **元数据提取** | 自动提取标题、字数、表格数等 |
---
# 依赖要求
## 必需依赖
- **markitdown** - 多格式 → Markdown 转换
- 安装:`pip install 'markitdown[all]'`
## 可选依赖
- **pandoc** - Markdown → DOCX 转换
- 安装:`winget install JohnMacFarlane.Pandoc`
- 仅在需要 MD → DOCX 转换时使用
---
# 输出格式
```json
{
"success": true,
"input_path": "document.docx",
"output_path": "document.md",
"content": "# 标题\n\n正文内容...",From Murchey/doc-form-master, GPL-3.0.
More from Murchey/doc-form-master
- 0.512score
custom-format-manager
Murchey
自定义格式配置管理器,提供WEB界面管理格式模板配置
SkillCFreshness: C★ 4Claude Code +9 - 0.512score
docx-parser
Murchey
DOCX 结构解析,构建统一 AST。
SkillCFreshness: C★ 4Claude Code +9 - 0.512score
footnote-processor
Murchey
脚注和尾注格式处理器,支持学术论文脚注/尾注标准化
SkillCFreshness: C★ 4Claude Code +9 - 0.512score
margin-manager
Murchey
页边距管理,支持党政机关公文和学术论文标准。
SkillCFreshness: C★ 4Claude Code +9 - 0.512score
table-processor
Murchey
表格格式化处理(对齐、边框、单元格格式、题注、图片保护)
SkillCFreshness: C★ 4Claude Code +9 - 0.510score
note-complement
Murchey
文档标注功能,集成在 preview-design 预览界面中,用户可点击页面元素添加修改建议。
SkillCFreshness: C★ 4Claude Code +9 - 0.479score
formula-protection
Murchey
数学公式保护。
SkillCFreshness: C★ 4Claude Code +9 - 0.479score
image-layout
Murchey
图片布局优化。
SkillCFreshness: C★ 4Claude Code +9 - 0.479score
xml-safety
Murchey
XML 安全校验。
SkillCFreshness: C★ 4Claude Code +9 - 0.479score
pdf-export
Murchey
DOCX 转 PDF 导出。
SkillCFreshness: C★ 4Claude Code +9 - 0.479score
preview-design
Murchey
设计预览与用户确认。
SkillCFreshness: C★ 4Claude Code +9 - 0.479score
zero-format-normalizer
Murchey
零格式文档格式化。
SkillCFreshness: C★ 4Claude Code +9
Signals
- Stars
- 4
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Jun 15, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- GPL-3.0
- Repository
- github.com/Murchey/doc-form-master
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Murchey
- 0.512score
margin-manager
Murchey
页边距管理,支持党政机关公文和学术论文标准。
SkillCFreshness: C★ 4Claude Code +9 - 0.512score
table-processor
Murchey
表格格式化处理(对齐、边框、单元格格式、题注、图片保护)
SkillCFreshness: C★ 4Claude Code +9 - 0.512score
custom-format-manager
Murchey
自定义格式配置管理器,提供WEB界面管理格式模板配置
SkillCFreshness: C★ 4Claude Code +9 - 0.512score
footnote-processor
Murchey
脚注和尾注格式处理器,支持学术论文脚注/尾注标准化
SkillCFreshness: C★ 4Claude Code +9 - 0.512score
docx-parser
Murchey
DOCX 结构解析,构建统一 AST。
SkillCFreshness: C★ 4Claude Code +9 - 0.510score
note-complement
Murchey
文档标注功能,集成在 preview-design 预览界面中,用户可点击页面元素添加修改建议。
SkillCFreshness: C★ 4Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get markitdown-converter running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
markitdown-converter skill. Agent Mart. https://agentmart.dev/skills/murchey-markitdown-converter (last updated 2026-10-24)