pypi / docling-core
docling-core
What changed in docling-core 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-24.
2 breaking1 new APIs and options3 behavior and defaults11 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initdocling-core 217 changes
Breaking changes 2
DAG-shaped documents and oversized tables are rejected to prevent DoS.
Local filesystem paths and file:// URIs are no longer read by default. Trusted documents can enable them with DOCLINGCORE_ALLOW_IMAGE_FILE_URI=true, allow_local_images=True, or doc.load_local_images().
New APIs and options 1
Adds partial DocLang 0.8 support, including multiple captions.
Behavior and default changes 3
Accepts calendar MIME types.
Accepts the application/zip MIME type.
Accepts the .cv MIME type.
Fixes and other changes 11
Restores the non-MathML block formula fallback.
Escapes code text in HTML output.
Escapes hyperlink destinations and skips unsupported schemes during serialization.
Fixes integer PNG exports.
Adds support for Pillow 13.
Code fences are now longer than any backtick run inside the code, preventing backticks in code from breaking the fence.
Section header depth is capped at six heading levels.
Tags that are not cue spans are ignored instead of causing the cue to be dropped.
The chunker now respects token limits for contextualized tables.
Formatting and hyperlinks are placed inside the <p> and <hN> tags.
Deduplicates row indices when removing rows.