//! Markdown parsing: source text -> `Document`.
//!
//! `ast` holds the types, `block` the block-level parser (with `list` and
//! `table` split out to keep files small), `inline` the span-level parser.
//! Everything here is safe, allocation-only Rust with no I/O.
// The renderer and pager (later rolls) consume these; in a binary crate a
// `pub use` re-export on its own does not count as a use.
pub use ;
/// Parse a markdown document. A leading `---` YAML frontmatter block is
/// treated as metadata and skipped.
///
/// The source is normalised first (see [`sanitize::clean`]): CRLF becomes LF
/// and control characters are neutralised, so no untrusted byte in the file can
/// reach the terminal as an escape sequence.