Repository navigation
Releases
Release v0.3.3
Fixed
- Expose decoded email cleanup through
email-bodywithout requiring the MIME parser or Rust 1.98. The existingemailfeature still includes both APIs.
Release v0.3.2
Security
-
Prevent footnote references from becoming unintended link definitions, and
keep link titles and destinations from exposing raw HTML through code spans. -
Require
url2.5.9 or later to avoid nestedblob:URL origin stack overflow
(RUSTSEC-2026-0592).
Added
-
Rust decoded email body extraction with clean/full views, omission spans,
conservative quote/signature removal and shared extraction budgets. -
Runnable examples for every surface, run in CI: Rust
documents,convert
(DOCX/XLSX/PDF or your own files),main_contentandlimits; Python
examples/python/, Node.jsexamples/node/and WASMexamples/wasm/,
sharing sample files inexamples/data/. Index:examples/README.md. -
Python type stubs: the wheel ships
markkit/__init__.pyiandpy.typed, with
typedLimitsandExtractionresults; PyPI metadata gains classifiers,
requires-pythonand project URLs. -
docs/pdf.md: PDF text, tables, layout geometry, OCR and limits in one guide.
Changed
-
Refresh PDF/OCR, MIME, archive, CLI and native Node dependencies; the optional
emailfeature now requires Rust 1.98 or later (Breaking: MSRV increase
for email-enabled builds). -
Docs overhaul: rewritten root, PyPI, npm and WASM READMEs (API tables,
result fields, options, limits, errors); getting-started guide rewritten.
Rust snippets in the README and guides are now compiled as doctests. -
docs.rs builds with every format,
http_client,toolandjson-schema
enabled and shows feature badges; crate docs cover configuration, limits,
the IR pipeline and features. Node.jsindex.d.tsdocuments every option and
result field. -
Releases now publish PyPI and npm (native + WASM) together with crates.io.
Fixed
- Every published package (crates.io crates, PyPI wheel/sdist,
@everruns/markkit,
@everruns/markkit-wasm) now shipsLICENSEandNOTICE. Python metadata
declaresLicense-Expression: MIT.NOTICEreproduces the BSD notices for the
PDFium/Foxit fonts and Adobe CMaps embedded by PDF rendering (pdf-ocr). SECURITY.mdlists 0.3.x as supported, adds GitHub private vulnerability
reporting, and covers the WASM package and agent tool.
Release v0.3.1
Security
- Bump calamine to 0.38 for RUSTSEC-2026-0436 (panic / unbounded allocation in
its CFB/OLE2 parser on malformed XLS/XLSB). Downstreamcargo auditno longer
flags markkit. markkit's own XLS pre-scan and XLSB reader stay in place.
Changed
- Dependency refresh: cfb 0.16 plus semver-compatible lockfile updates (zip 9.3,
napi 3.16, wasm-bindgen 0.2.130, aws-lc-rs 1.19 and others).
Release v0.3.0
Added
markkit_clilibrary:run(args, &impl CliHost)runs the exactmarkkitCLI
inside another program (used by bashkit'smarkkitbuiltin), with stdio, file
reads, URL fetching and MCP supplied by the host.
Changed
- Breaking:
markkit-cliURL sources sit behind the new default
native-httpfeature; builds withdefault-features = falsemust enable it. - CLI help and errors are plain text (clap color and suggestions off), and error
output no longer appends a backtrace whenRUST_BACKTRACEis set. - A closed stdout pipe now ends
markkit extractwith exit 0 instead of a panic.
Release v0.2.1
Fixed
- Build PyPI wheels in a manylinux2014 container so registry uploads remain
portable when GitHub'subuntu-latestimage changes. Publication recovery can
check out an exact release tag while keeping the trusted workflow onmain.
Release v0.2.0
Fixed
-
Prevent raw HTML escaping code blocks inside task lists and nested definitions.
Task bodies now start below their checkbox; definitions render as GFM lists
below each term, preserving code blocks without requiring a definition-list extension.
Nested lists beginning with an empty item are separated from preceding text. Hard
breaks inside headings and link labels are flattened so they cannot close the
container before later inline code. Redundant nested bold, italic and
strikethrough wrappers no longer emit delimiters that close their outer span,
and adjacent bracketed nodes cannot combine with following text into a link. -
PDF stream guards honor escaped dictionary keys and bound compressed prefixes
before image filters, including when OCR is disabled. -
Footnote bodies cannot become unsafe reference-link destinations in Markdown readers
without footnote support. Bodies start after a blank line and remain valid footnotes
in readers that support them (nightly renderer fuzz regression).
Added
-
Optional Rust OCR backend (
pdf-ocr-ocrs) using ocrs/RTen and explicit local
ONNX model paths. CLI--ocr-backend ocrs, NodepdfOcrBackend, and Python
pdf_ocr_backendselect it; Tesseract remains the default. Pinned model setup
and repeated scan comparisons report text quality, geometry, latency and memory.
Breaking: exhaustive RustMarkkitBuilderliterals also need
pdf_ocr_backend,pdf_ocr_detection_modelandpdf_ocr_recognition_model. -
PDF layout, reading order and table extraction: glyph-positioned words,
column reconstruction, ruled tables with merged cells, conservative borderless
tables and wrapped cells; bold/italic, numbered lists, tagged heading roles and
ActualText; optional repeated header/footer removal. Layout JSON includes
source runs/words and semantic blocks/lines/cells linked to IR provenance. -
Opt-in native PDF OCR (
pdf-ocr, CLI--ocr) with Rust Hayro rendering and installed Tesseract,
bounded raster size/output/deadline and configurable languages. WASM now supports
PDF text/layout/tables; Node and Python expose layout and native OCR options.
Python gains structuredextract_document_sync. -
just eval-pdf: 20 authored PDF scenes across default/layout modes, including
column, table, wrapped-cell, tagging and list expectations.
Breaking: exhaustive RustMarkkitBuilderliterals must includepdf_layout,
pdf_remove_repeated_headers,pdf_ocr, andpdf_ocr_language; builder methods
and..Default::default()remain valid. -
Public WCXB and AgentDocBench evaluations through Mira (
just eval-public), with
pinned/verified corpora, a release-build baseline regression gate, per-type/format
quality and conversion timings. PR/push runs use a fixed slice; nightly runs cover
the full development selection after excluding 139 upstream dev/test duplicates. -
markkit_qaLLM eval (just eval-llm): models answer 23 questions about the eval pages from
markkit markdown, main-content markdown or raw HTML, scored on correct answers with token usage
per input. Targets: Meta Muse Spark 1.3 contributor via OpenRouter and Claude Sonnet 5.5;
key-gated (OPENROUTER_API_KEY,ANTHROPIC_API_KEY, from Doppler). -
XLSB (Excel binary workbook) support in the
spreadsheetfeature, via a new bounds-checked
reader: values, shared strings, dates and durations, hidden-sheet skipping, row/column caps and
the workbook title. Previously XLSB returnedUnsupportedFormat. -
markkit mcp: Model Context Protocol server over stdio exposing themarkkittool
(tools/list,tools/call). URL fetching keeps the SSRF guard;--no-urlkeeps it offline,
theextractlimit flags and--max-output-charsbound each call. -
EPUB input (
epubfeature, implieshtml, inall_formats;.epub,application/epub+zip, sniffed
from themimetypeentry): spine chapters through the HTML parser, OPF title, DRM-encrypted books
rejected. NewFormat::Epub,Error::EpubExtract,ExtractionStats::chapters,WarningCode::MissingChapter. -
ODT input (
odtfeature, inall_formats;.odt, OpenDocument text content type, sniffed from the
ODFmimetype): headings, Title style, bold/italic/strike, links, lists, tables, with the same
bounded ZIP/XML reader as DOCX. NewFormat::Odt,Error::OdtExtract. -
Email input (
emailfeature, inall_formats;.eml,message/rfc822): subject as title, From /
To / Cc / Date, plain-text body (HTML alternative converted when there is no plain part) and an
attachment list. NewFormat::Eml,Error::EmailExtract,ExtractionStats::attachments,WarningCode::EncodingProblem. -
Jupyter notebook input (
.ipynb,application/x-ipynb+json, nbformat 4), always on: Markdown
cells, code cells as fenced blocks tagged with the kernel language, text outputs and ANSI-free
tracebacks; images/HTML outputs skipped. NewFormat::Notebook,Error::NotebookExtractand
ExtractionStats::cells. -
CSV and TSV input (
text/csv,text/tab-separated-values,.csv,.tsv), always on: one GFM
table, RFC 4180 quoting,;/|/tab delimiter detection, bounded bymax_sheet_rows/
max_sheet_cols(truncated_tablewarning). NewFormat::Tsv. -
Plain text input (
text/plain,.txt), always on: paragraphs and hard breaks through the IR,
UTF-8/UTF-16 BOM decoding, control characters dropped,invalid_utf8warning on lossy decode. -
Markdown input (
markdownfeature, inall_formats;text/markdown,.md): re-parsed with
pulldown-cmark and rendered back, so raw HTML never passes through. Front mattertitle:or the
first#heading becomesExtraction::title. Available in the CLI, Python, Node and WASM packages;formatserializes as
"text"and"markdown". -
PPTX support behind the new
pptxfeature (included inall_formats, so in the CLI and the
Python/Node bindings): one## Slide N: <title>section per slide with bullets, text boxes,
tables, hyperlinks and speaker notes. Hidden slides are skipped with ahidden_slide_skipped
warning unlessinclude_hidden_content(true). Legacy.pptis detected as the newFormat::Ppt
and rejected explicitly.Error::PptxExtractreports malformed presentations. -
Nightly cargo-fuzz targets for every parser and the renderer (
crates/markkit/fuzz,just fuzz,
.github/workflows/fuzz.yml), each checking the output-safety oracle. -
HTML page metadata:
extract_documentfillsExtraction::title(Open Graph, JSON-LD or
<title>) and the newExtraction::metadata(description, author, published date, language,
canonical URL, site name, lead image) from<meta>, Open Graph,<link rel=canonical>and
JSON-LD.markkit extract --jsonincludesformat,titleandmetadata. -
IR v2: footnotes (
[^1]), definition lists (Term/: definition), task lists (- [x]),
figures with captions, table column alignment (:---:) andcolspan/rowspan(laid out on a
grid; GFM has no spans). HTML maps GitHub and Pandoc footnote markup,<dl>, checkbox list items,
<figure>/<figcaption>and table spans/alignment. Row-header<th>cells in table bodies are
no longer dropped. -
Document.ir_version(markkit::ir::IR_VERSION = 2) is serialized with the IR JSON. -
PDF extraction (
pdffeature, on in the CLIall_formatsbuild and the Python/Node bindings):
the text layer becomes paragraphs, font-size headings and bullet lists, with/Titleas
Extraction::titleandstats.pages. Pure Rust (hayro-syntax), no OCR. Fonts map through
ToUnicodeCMaps, simple-font encodings and/Differences. New warningstruncated_pdf,
pdf_unmapped_font,pdf_no_text. Encrypted PDFs returnUnsupportedFormat. -
Limitsfieldsmax_pdf_pages(10 000),max_pdf_stream_size(64 MiB) and
max_pdf_decoded_size(256 MiB), also on the builder, as CLI flags (--max-pdf-pages, ...),
PythonLimits(...)arguments and Node options (maxPdfPages, ...). PDF extraction also
honourstimeoutandmax_output_size. -
Relative URL resolution: links, images and metadata URLs resolve against the new
MarkkitBuilder::base_url(CLI--base-url) and the page's<base href>;extract_urluses
the final URL after redirects. Absolute and fragment-only URLs are left unchanged. -
Math:
$`tex`$and```mathblocks from MathML (application/x-texannotation), KaTeX and MathJax output. -
IR transforms:
MarkkitBuilder::transform(..)runsTransformpasses after parsing and before
rendering, for every format. Built-instransform::NormalizeHeadingsandtransform::DropImages;
transform::from_fnfor closures;Document::visit/visit_mutto walk the tree. -
Declarative HTML element rules:
MarkkitBuilder::html_rule(".note", ElementAction::BlockQuote { .. })
maps elements by CSS selector to skip / unwrap / heading / paragraph / block quote (with title) /
code / emphasis / text, before the built-in mapping. CLI:markkit extract --rules rules.json. -
Pluggable parsers:
MarkkitBuilder::parser(..)registers aregistry::FormatParserthat handles
detected formats (e.g. PDF or CSV) or claims inputs by content, before the built-ins. Its IR goes
through transforms and the shared renderer; panics become the newError::Parser. -
JSON Schema for the IR at
schema/ir.schema.json;json-schemafeature addsmarkkit::ir::json_schema(). -
Per-block provenance:
MarkkitBuilder::track_sources(true)records aSourceon each IR block
(HTML element XPath, DOCX body block index, spreadsheet sheet and A1 range) for citations. -
Markkit::parse_document/parse_document_syncreturn the IR plus metadata (ParsedDocument)
for any supported format;ParsedDocument::render()produces theExtraction. -
toolfeature:markkit::tool::MarkkitTool, an LLM agent tool following the Everruns
toolkit-library contract (builder, OpenAI tool definition, input/output ...
Release v0.1.1
Security
- Upgrade the HTTP, spreadsheet and ZIP dependency graph to patched TLS and archive releases.
- Track the workspace lockfile so CI audits the same resolution used by CLI and binding builds.
Library consumers must refresh their application lockfiles to receive transitive TLS fixes;
a dependency library's lockfile is not inherited. - Run JavaScript build and packaging workflows on Node.js 24.22.1.
- Include the generated JavaScript loader and native binary in npm packages and verify installed package loading.
- Scope npm native artifacts explicitly to Linux x64/glibc; other platforms are not included in this release.
- Verify Python wheel metadata and native extraction before upload; the wheel publisher targets Linux x64/CPython 3.12.
Changed
- Release automation: merging
chore(release): prepare vX.Y.Zto main tags, creates the
GitHub Release and publishes to crates.io (idempotent); manual dispatch from main also works
Release v0.1.0
Added
- Initial project structure
- Core markdown extraction library (
markkitcrate) - CLI tool (
markkit-clicrate) - Python bindings (
markkit-pythoncrate) - Node.js bindings (
markkit-jscrate) - Benchmark harness (
markkit-benchcrate) - LLM evaluation harness (
markkit-evalcrate) - HTML → Markdown pipeline via canonical IR (
ir.rs,html/parser.rs,render/markdown.rs)- Full element mapping: headings, paragraphs, lists (nested), blockquotes, code blocks, tables (GFM), inline formatting, links, images, thematic breaks, line breaks
- Configurable CSS include/exclude selectors
- Depth limiting (MAX_DEPTH=200) to prevent stack overflow
- Whitespace normalization with inter-element space preservation
- Non-content element stripping (script, style, iframe, form, svg, etc.)
- Resource limit enforcement (max input size)
- Canonical IR with serde JSON serialization support
- Sync API:
extract_html_sync()andparse_html()for non-async usage - CLI stdin support:
--stdinflag and-source convention - Python bindings:
extract_html_sync()andextract_html_sync_with_options()with keyword args - JS bindings:
extract_html_sync()synchronous function - Specs: IR specification, threat model, comprehensive HTML extraction spec, examples spec
- Examples:
basic.rs,custom_selectors.rs,ir_access.rs,configuration.rs - Test fixtures: 9 paired input/output HTML→Markdown fixture files
- Bytes-in document API:
Markkit::extract_document/extract_document_synctaking a
DocumentHint { content_type, file_name }and returningExtraction { markdown, title, format, warnings, stats };extract_bytesnow delegates to it - Format detection:
Format::detect(content type → extension → magic bytes),
Format::sniff(ZIP part names, OLE2 streams,%PDF, HTML),Format::from_file_name;
newFormat::Doc,Xls,Ods,Pptxvariants (Formatis now#[non_exhaustive]) - DOCX → Markdown (
docxfeature): headings (Title/HeadingN/outline level), emphasis,
hyperlinks, bulleted/numbered lists via numbering.xml, tables, line breaks, title from
core properties - Spreadsheets → Markdown (
spreadsheetfeature): XLSX/XLSM, XLS, ODS via calamine; one
## Sheetsection + table per non-empty sheet, row/column caps withtruncated_sheet
warnings, hidden sheets skipped by default - Office-document safety limits: ZIP entry count, per-entry and total decompressed size,
spreadsheet grid pre-scan (max_spreadsheet_cells), XML depth cap; fuzz-style tests
Changed
docxfeature now useszip+quick-xmldirectly;docx-rsdependency removedcalamineupgraded to 0.36 (pulls quick-xml 0.41, clearing RUSTSEC-2026-0194/0195);zipupgraded to 8 (deflate only), shared with calamine- PDF extraction returns
Error::UnsupportedFormatinstead of an empty string pdffeature is now a placeholder with no dependencies: unusedpdf-extractremoved
(cleared RUSTSEC-2026-0187 in lopdf and unmaintainedttf-parser)pyo3/pyo3-async-runtimesupgraded to 0.29 (RUSTSEC-2026-0176/0177); benchtabled
upgraded to 0.22 (drops unmaintainedproc-macro-error2)- CLI
--filedetects the format from the extension and file contents - HTML-only tests and examples are gated on the
htmlfeature so non-default feature
sets (e.g.--no-default-features --features docx,spreadsheet) build and test cleanly