HtmlParserModule
Defined in: packages/speculator/src/parse/registry.ts:91
Interface for an HTML parser module.
Properties
Section titled “Properties”handles
Section titled “handles”handles:
string[]
Defined in: packages/speculator/src/parse/registry.ts:95
Element tags this parser can handle (e.g., ‘dfn’, ‘xref’, ‘a’)
name:
string
Defined in: packages/speculator/src/parse/registry.ts:92
order?
Section titled “order?”
optionalorder:number
Defined in: packages/speculator/src/parse/registry.ts:98
Priority order (lower number = higher priority, runs earlier)
Methods
Section titled “Methods”handleBlock()?
Section titled “handleBlock()?”
optionalhandleBlock(element,ctx):BlockHandlerResult
Defined in: packages/speculator/src/parse/registry.ts:101
Handle block-level element transformation
Parameters
Section titled “Parameters”element
Section titled “element”Element
Returns
Section titled “Returns”handleInline()?
Section titled “handleInline()?”
optionalhandleInline(element,ctx):InlineHandlerResult
Defined in: packages/speculator/src/parse/registry.ts:104
Handle inline-level element transformation
Parameters
Section titled “Parameters”element
Section titled “element”Element