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.
Properties
Section titled “Properties”handles
Section titled “handles”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
order?
Section titled “order?”
optionalorder:number
Defined in: parse/registry.ts:126
Order for deterministic dispatch. Lower numbers run first. Default is 10.
Methods
Section titled “Methods”handleBlock()?
Section titled “handleBlock()?”
optionalhandleBlock(node,ctx):Block|null
Defined in: parse/registry.ts:129
Handle a block-level node
Parameters
Section titled “Parameters”RootContent
Returns
Section titled “Returns”Block | null
handleInline()?
Section titled “handleInline()?”
optionalhandleInline(node,ctx):InlineHandlerResult
Defined in: parse/registry.ts:132
Handle an inline-level node
Parameters
Section titled “Parameters”RootContent