Repository navigation
pdf-book-to-llm v0.3.0
book2md is now verified on the real Docling models, on every push. The README's old caveat — that Docling's layout, table and code models had never been exercised — no longer applies.
Added
- End-to-end tests with real models. CI builds a three-page sample book (headed prose, a bordered table, a code listing, and a raster figure with a caption), runs the installed
book2mdcommand on it with the locked Docling version, and checks:- a
.mdand a.pngper page, each starting with its<!-- PAGE n -->marker; - heading and paragraph text survive;
- the table becomes a Markdown table with every row;
- the listing lands in a fenced code block;
- the figure becomes
<!-- image -->, with its caption kept; - PNG width follows
--scale, and--pages 2-3writes<book>_p2-3/with PDF page numbers kept; - a start page past the end, or a file that isn't a PDF, fails with one line and writes nothing.
- a
- The converted sample pages are uploaded as a CI artifact, so you can see real output for each commit.
- CI also runs on
milestone-*branches, so heavy changes go green beforemainmoves.
Observed in real output
- Code blocks are detected and fenced, but indentation may come back as tabs, and no language tag is set.
Tested
- 48 unit tests on Linux, macOS and Windows, plus 10 end-to-end tests with real Docling models (about 50 s in CI with cached weights).
Assets
| File | What |
|---|---|
book2md-0.3.0-py3-none-any.whl |
Wheel |
book2md-0.3.0.tar.gz |
Source distribution |
SHA256SUMS |
Checksums |