UnitParser
Defined in: parse/types.ts:21
Interface for format-specific unit parsers
Both markdown and HTML parsers implement this interface, allowing the orchestrator to route units to the correct parser.
Properties
Section titled “Properties”format
Section titled “format”
readonlyformat:SourceFormat
Defined in: parse/types.ts:23
Format this parser handles
Methods
Section titled “Methods”parse()
Section titled “parse()”Defined in: parse/types.ts:31
Parse a source unit into AST blocks
Parameters
Section titled “Parameters”Source unit to parse
Returns
Section titled “Returns”Array of top-level blocks/sections