Core streaming parser that coordinates block detection, inline parsing, and callback-based event emission. Supports chunk-based streaming input for real-time LLM output rendering.
| Name | Signature |
|---|---|
new | new(options) -> parser |
new(
options) ->parser
Create a new streaming markdown parser
Returns a parser instance with feed(chunk), finish(), reset(), and
set_event_callback(fn) methods. Options:
on_event: callback function(event) invoked for each parser event
inline: parse inline elements (default true)
streaming_inline: emit inline events at safe boundaries (default true)