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

@ -31,6 +31,10 @@ export const normalizeOutputFiletype = (filetype: string): string => {
case "markdown_mmd":
case "markdown":
return "md";
// MinerU output formats - output as ZIP
case "md-t":
case "md-i":
return "zip";
default:
return lowercaseFiletype;
}