markdown.events — Lilush API

←index

← markdown

Overview

Callback-based event emitter for the markdown parser. Invokes handlers immediately as events occur, enabling true streaming rendering. Events carry type, tag, optional text, and optional attrs fields.

Functions

NameSignature
newnew(on_event) -> emitter

new(on_event) -> emitter

Create a new event emitter