tessl install tessl/npm-marked@17.0.0A markdown parser built for speed
Marked uses a two-phase architecture that separates tokenization from rendering.
The Lexer tokenizes markdown text into a structured token tree:
The Parser walks the token tree and uses a Renderer to generate output:
Markdown Source
↓
[Preprocess Hook]
↓
Lexer (Tokenization)
↓
[ProcessAllTokens Hook]
↓
[WalkTokens Extension]
↓
Parser + Renderer
↓
[Postprocess Hook]
↓
HTML Output