Skip to content

MarkdownParserModule

Defined in: parse/registry.ts:115

Markdown parser module for handling mdast nodes.

Parser modules are first-class modules that live in src/parse/. They handle specific mdast node types and emit SpecAST nodes.

handles: string[]

Defined in: parse/registry.ts:120

Node types this parser handles (e.g., [‘heading’])


name: string

Defined in: parse/registry.ts:117

Unique parser module name


optional order: number

Defined in: parse/registry.ts:126

Order for deterministic dispatch. Lower numbers run first. Default is 10.

optional handleBlock(node, ctx): Block | null

Defined in: parse/registry.ts:129

Handle a block-level node

RootContent

ParseContext

Block | null


optional handleInline(node, ctx): InlineHandlerResult

Defined in: parse/registry.ts:132

Handle an inline-level node

RootContent

ParseContext

InlineHandlerResult