markdown.buffer — Lilush API

←index

← markdown

Overview

Streaming buffer for chunk boundary handling in inline parsing. Buffers incomplete content at arbitrary chunk boundaries and emits at safe points using heuristics for unclosed delimiters and stale opener timeout.

Functions

NameSignature
newnew(options) -> buffer

new(options) -> buffer

Create a new streaming inline buffer

Returns a buffer with feed(chunk), flush(), reset(), get_buffer(), and set_emit(fn) methods. Options: