| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| README.md | 2026-02-07 | 3.4 kB | |
| v1.0.11 source code.tar.gz | 2026-02-07 | 14.7 MB | |
| v1.0.11 source code.zip | 2026-02-07 | 14.7 MB | |
| Totals: 3 Items | 29.4 MB | 0 | |
This release adds support for GitHub-Flavored Markdown (GFM) table rendering, enhances error handling for interruption scenarios, and includes important bug fixes and dependency updates.
What's Changed
Features
- GFM Table Support: Added intelligent conversion of HTML tables to GitHub-Flavored Markdown format in https://github.com/oomol-lab/pdf-craft/pull/345
- Simple tables are automatically converted to clean GFM pipe table syntax
- Complex tables (with colspan, rowspan, or multiple tbody sections) gracefully fall back to HTML format to preserve structure
- Prevents data loss from unsupported table features in GFM format
- Added comprehensive test coverage for various table scenarios
-
New dependency:
markdownifylibrary for table conversion -
Enhanced InterruptedError API: Added public properties to
InterruptedErrorfor better error introspection in https://github.com/oomol-lab/pdf-craft/pull/346 - New
kindproperty exposes the interruption type (abort or token limit exceeded) - New
meteringproperty provides direct access to OCR token usage data OCRTokensMeteringis now exported from the public API for convenience- Enables users to programmatically handle different interruption scenarios and track resource consumption
Bug Fixes
- Fixed Error Propagation: Corrected handling of critical error types during page extraction in https://github.com/oomol-lab/pdf-craft/pull/343
AbortErrorandTokenLimitErrornow propagate correctly instead of being wrapped inOCRError- Ensures interruption signals are properly received and handled by calling code
- Prevents masking of user-initiated abort operations and token limit violations
Dependencies
- EPUB Generator Update: Upgraded
epub-generatordependency to fix MathML property declaration bug in https://github.com/oomol-lab/pdf-craft/pull/344 - Fixes https://github.com/Moskize91/epub-generator/issues/22: OPF files incorrectly declared
mathmlproperty when LaTeX-to-MathML conversion failed, causing EPUBCheck validation failures - EPUB files now pass validation by only declaring MathML properties when actual MathML content exists
Migration Notes
InterruptedError Changes
If you're catching InterruptedError exceptions, you can now access detailed information about the interruption:
:::python
from pdf_craft import transform_markdown, InterruptedError, InterruptedKind
try:
transform_markdown(
pdf_path="input.pdf",
markdown_path="output.md",
)
except InterruptedError as error:
# New in v1.0.11: Access interruption details
if error.kind == InterruptedKind.ABORT:
print("User aborted the operation")
elif error.kind == InterruptedKind.TOKEN_LIMIT_EXCEEDED:
print(f"Token limit exceeded: {error.metering.input_tokens} input tokens used")
# Access token usage statistics
print(f"Total tokens: {error.metering.input_tokens + error.metering.output_tokens}")
Table Rendering
Tables in your PDF documents will now be converted to GFM format when possible, making them more readable in markdown viewers. Complex tables will automatically fall back to HTML to preserve their structure.
Full Changelog: https://github.com/oomol-lab/pdf-craft/compare/v1.0.10...v1.0.11