//! The streaming parser contract.
use crateEvent;
/// An incremental, chunk-safe Markdown parser.
///
/// Feed bytes with [`write`](Parser::write) and drain the returned events; call
/// [`flush`](Parser::flush) at end of input to close any open blocks. The emitted event stream is
/// **independent of how the input is split** across `write` calls (split-equivalence) — the single
/// most important invariant of this library.