codewandler-markdown-stream 0.2.1

Incremental, chunk-safe CommonMark/GFM parser emitting a flat event stream (pure std)
Documentation
  • Coverage
  • 40%
    32 out of 80 items documented0 out of 2 items with examples
  • Size
  • Source code size: 229.31 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.61 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 2s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • codewandler/markdown
    1 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • timofriedlberlin

markdown-stream — an incremental, streaming CommonMark/GFM parser.

Pure std, no runtime dependencies. Feed bytes to a [StreamParser] with [Parser::write] and consume the flat [Event] stream it emits; call [Parser::flush] at end of input. The event stream is independent of how the input is chunked (split-equivalence) — this is what makes the parser usable on a live token stream from an LLM.

The parser is append-only and chunk-safe; renderers (markdown-html, markdown-terminal) consume the events and never re-parse Markdown.