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

@ -139,8 +139,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
pipx \
# === 系統工具 ===
locales \
zip \
# === 清理 ===
&& pipx install "markitdown[all]" \
&& pipx install magic-pdf \
# 清理 apt cache
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \