军舰

Markitdown Converter

Officev1.0.0
By 军舰Updated 2026-05-11markitdown-converter@clawhub_wang-junjian/markitdown-converter
DocumentsPDF#PDF#批量#文档

According to AlphaMoat, as of 2026-09, Markitdown Converter has 1,607 downloads and 1 stars — ranked #4,698 of 5,078 AI skills overall, and #376 of 435 in Office.

Installs
174
Downloads
1.6K
Stars
1
Overall Rank
#4,698
Top 93% overall · Top 87% in Office
PlatformInstallsDownloadsStarsComments
ClawHub ↗251.1K1-
SkillHub ↗1741.6K1—

Platforms count differently and update at different times.

What this skill does

The documentation lists PDF, Office, HTML, image, and text inputs, with batch conversion and best-effort image extraction. Conversion may not preserve every layout or image; process sensitive files in an isolated environment, use a virtual environment, and inspect outputs and dependencies.

Profile published 2026-10-27

What you can do with it

  • Convert an individual document for later search
  • Organize a batch file-conversion workflow
  • Check image extraction and format preservation

When to use it

  • When extracting text from documents or converting to Markdown
  • When file rights, output location, and sensitive-data handling are confirmed

Example prompts

Generated from the skill’s documentation as examples; not results of actual runs.

Convert this file to Markdown and report missing content; do not overwrite the original, and state the output path first.

Monthly Trend

Downloads1.6K
1819471.7K2026-03 · Downloads 2872026-05 · Downloads 5862026-06 · Downloads 7112026-07 · Downloads 9402026-08 · Downloads 1.1K2026-09 · Downloads 1.6K26-0326-09
Stars1
0112026-03 · Stars -2026-05 · Stars 12026-06 · Stars 12026-07 · Stars 12026-08 · Stars 12026-09 · Stars 126-0326-09

The counting method changed in 2026-09: skills with the same name are now counted separately by author, and the full catalog is covered. Dashed lines show months before the change; they are not compared with later months, and no growth is computed across the change. Other skills share this name; figures from before the change are attributed to this one, which currently has the most downloads.

MonthDownloadsMoMStars
2026-091.6K—1
2026-081.1K+18.3%1
2026-07940+32.2%1
2026-06711+21.3%1
2026-05586—1
2026-03287—-

SKILL.md (original)

The author’s original file, shown as plain text without edits or review by AlphaMoat. Links are not clickable; check commands before running them. Fetched 2026-10-23.

3.0 KB · ClawHub v1.0.0
---
name: markitdown-converter
description: 使用微软 markitdown 库将多种文档格式(PDF、DOC、DOCX、PPT、HTML等)转换为 Markdown。支持批量转换、保留格式、图片提取等功能。使用场景:(1) "把这个 PDF 转成 Markdown",(2) "批量转换这个文件夹里的文档",(3) "提取文档中的图片"。
---

# MarkItDown 文档转换技能

使用微软的 markitdown 库将各种文档格式转换为 Markdown。

## 支持的格式
Show all (134 lines)

- PDF (.pdf)
- Word 文档 (.doc, .docx)
- PowerPoint 演示文稿 (.ppt, .pptx)
- Excel 电子表格 (.xlsx)
- HTML 文件 (.html, .htm)
- 图片文件 (通过 OCR)
- 纯文本文件
- 等等...

## 快速开始

### 单个文件转换

```python
from markitdown import MarkItDown

md = MarkItDown()
result = md.convert("document.pdf")
print(result.text_content)
```

### 使用提供的脚本

```bash
# 转换单个文件
python3 scripts/convert.py input.pdf output.md

# 批量转换文件夹
python3 scripts/batch_convert.py input_folder/ output_folder/

# 提取文档中的图片
python3 scripts/extract_images.py document.pdf images_folder/
```

## 详细用法

### 单个文件转换

使用 `scripts/convert.py`:

```bash
python3 scripts/convert.py <input_file> [output_file]
```

如果不指定输出文件,会自动生成 `.md` 文件。

### 批量转换

使用 `scripts/batch_convert.py`:

```bash
python3 scripts/batch_convert.py <input_directory> <output_directory>
```

会递归处理目录中的所有支持的文件。

### 图片提取

使用 `scripts/extract_images.py`:

```bash
python3 scripts/extract_images.py <input_file> <output_directory>
```

从文档中提取所有图片并保存到指定目录。

## 脚本说明

- `scripts/convert.py` - 单个文件转换脚本
- `scripts/batch_convert.py` - 批量转换脚本
- `scripts/extract_images.py` - 图片提取脚本

每个脚本都有 `--help` 选项查看详细参数。

## 安装依赖

### Python 版本要求

markitdown 需要 Python 3.10 或更高版本。

检查 Python 版本:
```bash
python3.12 --version  # 或 python3.11, python3.13
```

### 安装 markitdown

使用 Python 3.10+ 安装:

```bash
# 使用 Python 3.12(推荐)
python3.12 -m pip install --user --break-system-packages "markitdown[all]"

# 或使用虚拟环境
python3.12 -m venv markitdown-env
source markitdown-env/bin/activate
pip install "markitdown[all]"
```

### 可选:系统依赖

某些格式转换可能需要额外的系统依赖:

- **PDF 处理**: `brew install poppler` (macOS) 或 `apt install poppler-utils` (Linux)
- **OCR**: `brew install tesseract` (macOS) 或 `apt install tesseract-ocr` (Linux)

## 验证安装

```bash
python3.12 -c "from markitdown import MarkItDown; print('安装成功!')"
```

## 使用脚本

所有脚本都支持使用特定 Python 版本运行:

```bash
# 使用 Python 3.12 运行
python3.12 scripts/convert.py input.pdf output.md
python3.12 scripts/batch_convert.py input_folder/ output_folder/
python3.12 scripts/extract_images.py document.pdf images_folder/
```

Popular in Office

Data month: 2026-09 · Downloads, stars and installs are aggregated monthly from public skill registries (ClawHub, SkillHub). See methodology.