MarkdownParserModule
Defined in: packages/speculator/src/parse/registry.ts:72
Interface for a Markdown parser module.
Properties
Section titled “Properties”handles
Section titled “handles”handles:
string[]
Defined in: packages/speculator/src/parse/registry.ts:76
Node types this parser can handle (e.g., ‘paragraph’, ‘text’, ‘html’)
name:
string
Defined in: packages/speculator/src/parse/registry.ts:73
order?
Section titled “order?”
optionalorder:number
Defined in: packages/speculator/src/parse/registry.ts:79
Priority order (lower number = higher priority, runs earlier)
Methods
Section titled “Methods”handleBlock()?
Section titled “handleBlock()?”
optionalhandleBlock(node,ctx):BlockHandlerResult
Defined in: packages/speculator/src/parse/registry.ts:82
Handle block-level transformation
Parameters
Section titled “Parameters”RootContent
Returns
Section titled “Returns”handleInline()?
Section titled “handleInline()?”
optionalhandleInline(node,ctx):InlineHandlerResult
Defined in: packages/speculator/src/parse/registry.ts:85
Handle inline-level transformation
Parameters
Section titled “Parameters”RootContent