Skip to content

Releases

Release v0.3.3

Choose a tag to compare

@github-actions github-actions released this 26 Nov 05:57
81a39fe

Fixed

  • Expose decoded email cleanup through email-body without requiring the MIME parser or Rust 1.98. The existing email feature still includes both APIs.

Release v0.3.2

Choose a tag to compare

@github-actions github-actions released this 26 Nov 04:57
93b05e5

Security

  • Prevent footnote references from becoming unintended link definitions, and
    keep link titles and destinations from exposing raw HTML through code spans.

  • Require url 2.5.9 or later to avoid nested blob: 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_content and limits; Python
    examples/python/, Node.js examples/node/ and WASM examples/wasm/,
    sharing sample files in examples/data/. Index: examples/README.md.

  • Python type stubs: the wheel ships markkit/__init__.pyi and py.typed, with
    typed Limits and Extraction results; PyPI metadata gains classifiers,
    requires-python and 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
    email feature 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, tool and json-schema
    enabled and shows feature badges; crate docs cover configuration, limits,
    the IR pipeline and features. Node.js index.d.ts documents 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 ships LICENSE and NOTICE. Python metadata
    declares License-Expression: MIT. NOTICE reproduces the BSD notices for the
    PDFium/Foxit fonts and Adobe CMaps embedded by PDF rendering (pdf-ocr).
  • SECURITY.md lists 0.3.x as supported, adds GitHub private vulnerability
    reporting, and covers the WASM package and agent tool.

Release v0.3.1

Choose a tag to compare

@github-actions github-actions released this 03 Nov 14:23
03e8271

Security

  • Bump calamine to 0.38 for RUSTSEC-2026-0436 (panic / unbounded allocation in
    its CFB/OLE2 parser on malformed XLS/XLSB). Downstream cargo audit no 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

Choose a tag to compare

@github-actions github-actions released this 01 Nov 03:01
65f6fcc

Added

  • markkit_cli library: run(args, &impl CliHost) runs the exact markkit CLI
    inside another program (used by bashkit's markkit builtin), with stdio, file
    reads, URL fetching and MCP supplied by the host.

Changed

  • Breaking: markkit-cli URL sources sit behind the new default
    native-http feature; builds with default-features = false must enable it.
  • CLI help and errors are plain text (clap color and suggestions off), and error
    output no longer appends a backtrace when RUST_BACKTRACE is set.
  • A closed stdout pipe now ends markkit extract with exit 0 instead of a panic.

Release v0.2.1

Choose a tag to compare

@github-actions github-actions released this 01 Nov 02:22
42dc590

Fixed

  • Build PyPI wheels in a manylinux2014 container so registry uploads remain
    portable when GitHub's ubuntu-latest image changes. Publication recovery can
    check out an exact release tag while keeping the trusted workflow on main.

Release v0.2.0

Choose a tag to compare

@github-actions github-actions released this 31 Oct 05:42
5dd2981

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, Node pdfOcrBackend, and Python
    pdf_ocr_backend select it; Tesseract remains the default. Pinned model setup
    and repeated scan comparisons report text quality, geometry, latency and memory.
    Breaking: exhaustive Rust MarkkitBuilder literals also need
    pdf_ocr_backend, pdf_ocr_detection_model and pdf_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 structured extract_document_sync.

  • just eval-pdf: 20 authored PDF scenes across default/layout modes, including
    column, table, wrapped-cell, tagging and list expectations.
    Breaking: exhaustive Rust MarkkitBuilder literals must include pdf_layout,
    pdf_remove_repeated_headers, pdf_ocr, and pdf_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_qa LLM 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 spreadsheet feature, via a new bounds-checked
    reader: values, shared strings, dates and durations, hidden-sheet skipping, row/column caps and
    the workbook title. Previously XLSB returned UnsupportedFormat.

  • markkit mcp: Model Context Protocol server over stdio exposing the markkit tool
    (tools/list, tools/call). URL fetching keeps the SSRF guard; --no-url keeps it offline,
    the extract limit flags and --max-output-chars bound each call.

  • EPUB input (epub feature, implies html, in all_formats; .epub, application/epub+zip, sniffed
    from the mimetype entry): spine chapters through the HTML parser, OPF title, DRM-encrypted books
    rejected. New Format::Epub, Error::EpubExtract, ExtractionStats::chapters, WarningCode::MissingChapter.

  • ODT input (odt feature, in all_formats; .odt, OpenDocument text content type, sniffed from the
    ODF mimetype): headings, Title style, bold/italic/strike, links, lists, tables, with the same
    bounded ZIP/XML reader as DOCX. New Format::Odt, Error::OdtExtract.

  • Email input (email feature, in all_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. New Format::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. New Format::Notebook, Error::NotebookExtract and
    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 by max_sheet_rows /
    max_sheet_cols (truncated_table warning). New Format::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_utf8 warning on lossy decode.

  • Markdown input (markdown feature, in all_formats; text/markdown, .md): re-parsed with
    pulldown-cmark and rendered back, so raw HTML never passes through. Front matter title: or the
    first # heading becomes Extraction::title. Available in the CLI, Python, Node and WASM packages; format serializes as
    "text" and "markdown".

  • PPTX support behind the new pptx feature (included in all_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 a hidden_slide_skipped
    warning unless include_hidden_content(true). Legacy .ppt is detected as the new Format::Ppt
    and rejected explicitly. Error::PptxExtract reports 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_document fills Extraction::title (Open Graph, JSON-LD or
    <title>) and the new Extraction::metadata (description, author, published date, language,
    canonical URL, site name, lead image) from <meta>, Open Graph, <link rel=canonical> and
    JSON-LD. markkit extract --json includes format, title and metadata.

  • IR v2: footnotes ([^1]), definition lists (Term / : definition), task lists (- [x]),
    figures with captions, table column alignment (:---:) and colspan/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 (pdf feature, on in the CLI all_formats build and the Python/Node bindings):
    the text layer becomes paragraphs, font-size headings and bullet lists, with /Title as
    Extraction::title and stats.pages. Pure Rust (hayro-syntax), no OCR. Fonts map through
    ToUnicode CMaps, simple-font encodings and /Differences. New warnings truncated_pdf,
    pdf_unmapped_font, pdf_no_text. Encrypted PDFs return UnsupportedFormat.

  • Limits fields max_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, ...),
    Python Limits(...) arguments and Node options (maxPdfPages, ...). PDF extraction also
    honours timeout and max_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_url uses
    the final URL after redirects. Absolute and fragment-only URLs are left unchanged.

  • Math: $`tex`$ and ```math blocks from MathML (application/x-tex annotation), KaTeX and MathJax output.

  • IR transforms: MarkkitBuilder::transform(..) runs Transform passes after parsing and before
    rendering, for every format. Built-ins transform::NormalizeHeadings and transform::DropImages;
    transform::from_fn for closures; Document::visit / visit_mut to 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 a registry::FormatParser that 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 new Error::Parser.

  • JSON Schema for the IR at schema/ir.schema.json; json-schema feature adds markkit::ir::json_schema().

  • Per-block provenance: MarkkitBuilder::track_sources(true) records a Source on each IR block
    (HTML element XPath, DOCX body block index, spreadsheet sheet and A1 range) for citations.

  • Markkit::parse_document / parse_document_sync return the IR plus metadata (ParsedDocument)
    for any supported format; ParsedDocument::render() produces the Extraction.

  • tool feature: markkit::tool::MarkkitTool, an LLM agent tool following the Everruns
    toolkit-library contract (builder, OpenAI tool definition, input/output ...

Read more

Release v0.1.1

Choose a tag to compare

@github-actions github-actions released this 22 Oct 16:25
8e68811

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.Z to main tags, creates the
    GitHub Release and publishes to crates.io (idempotent); manual dispatch from main also works

Release v0.1.0

Choose a tag to compare

@github-actions github-actions released this 13 Oct 12:50
65163ce

Added

  • Initial project structure
  • Core markdown extraction library (markkit crate)
  • CLI tool (markkit-cli crate)
  • Python bindings (markkit-python crate)
  • Node.js bindings (markkit-js crate)
  • Benchmark harness (markkit-bench crate)
  • LLM evaluation harness (markkit-eval crate)
  • 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() and parse_html() for non-async usage
  • CLI stdin support: --stdin flag and - source convention
  • Python bindings: extract_html_sync() and extract_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_sync taking a
    DocumentHint { content_type, file_name } and returning Extraction { markdown, title, format, warnings, stats }; extract_bytes now 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;
    new Format::Doc, Xls, Ods, Pptx variants (Format is now #[non_exhaustive])
  • DOCX → Markdown (docx feature): headings (Title/HeadingN/outline level), emphasis,
    hyperlinks, bulleted/numbered lists via numbering.xml, tables, line breaks, title from
    core properties
  • Spreadsheets → Markdown (spreadsheet feature): XLSX/XLSM, XLS, ODS via calamine; one
    ## Sheet section + table per non-empty sheet, row/column caps with truncated_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

  • docx feature now uses zip + quick-xml directly; docx-rs dependency removed
  • calamine upgraded to 0.36 (pulls quick-xml 0.41, clearing RUSTSEC-2026-0194/0195); zip upgraded to 8 (deflate only), shared with calamine
  • PDF extraction returns Error::UnsupportedFormat instead of an empty string
  • pdf feature is now a placeholder with no dependencies: unused pdf-extract removed
    (cleared RUSTSEC-2026-0187 in lopdf and unmaintained ttf-parser)
  • pyo3/pyo3-async-runtimes upgraded to 0.29 (RUSTSEC-2026-0176/0177); bench tabled
    upgraded to 0.22 (drops unmaintained proc-macro-error2)
  • CLI --file detects the format from the extension and file contents
  • HTML-only tests and examples are gated on the html feature so non-default feature
    sets (e.g. --no-default-features --features docx,spreadsheet) build and test cleanly