markdown.parser — Lilush API

←index

← markdown

Overview

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.

Functions

NameSignature
newnew(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: