mdwright-document 0.1.1

Recognised Markdown document facts with stable source coordinates
Documentation

mdwright-document

docs.rs

Recognised Markdown document facts with stable source coordinates, for mdwright.

This crate owns Markdown parsing for the whole workspace. It invokes pulldown-cmark behind a containment boundary that catches the parser's known panics on malformed input and turns them into structured errors, and produces typed Document facts: headings, list groups, link definitions, frontmatter, code/HTML exclusions, inline atoms, wrappable paragraphs, table sites, and the structural ranges the formatter rewrites against. Every downstream crate (mdwright-format, mdwright-lint, mdwright-config) consumes these facts; none of them sees pulldown events directly.

Bytes-in / facts-out is the entire contract. Formatting decisions, lint rules, and configuration policy belong to the other crates.

Status

Pre-1.0. Public items are whatever lib.rs re-exports; breaking changes ship without deprecation warnings.

Use it

[dependencies]
mdwright-document = "0.1"
use mdwright_document::Document;

See also

License

Licensed under MIT or Apache-2.0, at your option.