Skip to content

any2md 1.0.1 — --backend flag

Choose a tag to compare

@rocklambros rocklambros released this 26 Apr 21:38

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.pdf

Mismatched 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 any2md

Compatibility

  • All v1.0.0 behavior unchanged when --backend is not specified.
  • --backend docling is equivalent to the existing --high-fidelity / -H flag (both are kept for now; consolidation may come in a future release).