feat: integrate MinerU document to Markdown converter

- Add MinerU converter engine (src/converters/mineru.ts)
- Support md-t (table as Markdown) and md-i (table as image) output formats
- Input formats: pdf, ppt, pptx, xls, xlsx, doc, docx
- Output as ZIP archive containing Markdown and images
- Update Dockerfile to install magic-pdf via pipx
- Add zip utility for archive creation
- Update normalizeFiletype to map md-t/md-i to zip extension
- Add comprehensive tests for MinerU converter
- Update README with MinerU documentation
This commit is contained in:
Your Name 2026-01-21 12:10:49 +08:00
parent e577658231
commit e5ca364563
6 changed files with 383 additions and 4 deletions

View file

@ -165,11 +165,23 @@ docker compose up -d
| Pandoc | 文件 | 100+ |
| Calibre | 電子書 | 40+ |
| Inkscape | 向量圖 | 20+ |
| MinerU | 文件→MD | 2 |
完整列表 → [docs/converters.md](docs/converters.md)
---
## MinerU
ConvertX 內建 MinerU 轉換引擎,可將文件轉換為 Markdown。
- md-t
- md-i
輸出格式為 ZIP。
---
## 語言支援
支援 **65 種語言**,包含繁體中文、簡體中文、英文、日文、韓文等。
@ -214,10 +226,10 @@ docker compose up -d
docker compose --profile api up -d
```
| 服務 | 端口 | 說明 |
| ---------- | ---- | ----------------- |
| Web UI | 3000 | 網頁介面 |
| API Server | 3001 | REST & GraphQL |
| 服務 | 端口 | 說明 |
| ---------- | ---- | -------------- |
| Web UI | 3000 | 網頁介面 |
| API Server | 3001 | REST & GraphQL |
### API 文件