any2md 1.0.1 — --backend flag
Patch release. Adds an explicit backend-selection CLI flag.
What's new
--backend {docling,pymupdf4llm,mammoth} — Override the automatic backend choice. Useful when Docling extracts incorrectly on a specific input and you want to fall back to pymupdf4llm without uninstalling Docling.
# Default: auto-select (Docling preferred when installed)
any2md report.pdf
# Force pymupdf4llm even with Docling installed
any2md --backend pymupdf4llm report.pdf
# Force Docling (equivalent to existing --high-fidelity / -H)
any2md --backend docling report.pdfMismatched format/backend combinations error out per file (e.g., --backend pymupdf4llm on a DOCX prints an error and skips).
Why
Refs #13 — Docling occasionally drops list items on certain academic PDFs ("Parent element of the list item is not a ListGroup" warning). No upstream fix yet; users hitting this can now switch backends per-invocation.
Install
pip install --upgrade "any2md[high-fidelity]"
# or for the lightweight install:
pip install --upgrade any2mdCompatibility
- All v1.0.0 behavior unchanged when
--backendis not specified. --backend doclingis equivalent to the existing--high-fidelity/-Hflag (both are kept for now; consolidation may come in a future release).