streamdown-parser
Streaming markdown parser for the streamdown terminal renderer.
Overview
A line-oriented streaming markdown parser designed for real-time rendering:
- Streaming design - Parses line-by-line as content arrives
- LLM-friendly - Handles partial/incomplete markdown gracefully
- Full CommonMark support - Headings, code blocks, lists, tables, etc.
- Think blocks - Special
<think>tag support for LLM output
Usage
[]
= "0.1"
use Parser;
let mut parser = new;
for line in markdown.lines
Features
- Headings (ATX style)
- Fenced code blocks with language detection
- Ordered and unordered lists (nested)
- Tables with alignment
- Blockquotes
- Inline formatting (bold, italic, code, links)
- Think blocks for LLM reasoning
Part of Streamdown
This is a component of streamdown-rs, a streaming markdown renderer for modern terminals.
License
MIT