Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/).

## [Unreleased]

### Security

- 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/`,
Expand Down
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ clap = { version = "4", default-features = false, features = ["derive", "std", "
reqwest = { version = "0.13", default-features = false, features = ["rustls", "json"] }

# HTML parsing
url = "2"
url = "2.5.9" # RUSTSEC-2026-0592: bound nested blob URL origin handling.
scraper = "0.29"
ego-tree = "0.11"
schemars = "1"
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ packages ship with all formats, OCR and URL fetching. The WASM package covers
HTML, PDF text and layout, DOCX, spreadsheets, Markdown, CSV/TSV, notebooks and
text, without URL fetching or OCR.

Rust callers with already-decoded email alternatives can use
[`email::extract_body`](https://docs.rs/markkit/latest/markkit/email/fn.extract_body.html)
with the `email` feature. It returns clean/full views and byte spans for omitted
trailing quotes or mobile signatures, preserving forwarded and interleaved replies.
Text stays plain text; HTML fallback requires `html` and becomes Markdown. Treat
both views as untrusted content. See the runnable [email example](examples/email_body.rs).

## Quick start

### Rust
Expand Down
5 changes: 5 additions & 0 deletions crates/markkit/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -164,3 +164,8 @@ required-features = ["docx", "spreadsheet", "pdf"]
[[bench]]
name = "extraction"
harness = false

[[example]]
name = "email_body"
path = "../../examples/email_body.rs"
required-features = ["email"]
48 changes: 21 additions & 27 deletions crates/markkit/fuzz/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading