MarkdownUnitParser
Defined in: packages/speculator/src/parse/markdown/parser.ts:35
Markdown unit parser implementation using handler registry
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new MarkdownUnitParser(
registry):MarkdownUnitParser
Defined in: packages/speculator/src/parse/markdown/parser.ts:46
Parameters
Section titled “Parameters”registry
Section titled “registry”ParseHandlerRegistry = defaultRegistry
Returns
Section titled “Returns”MarkdownUnitParser
Properties
Section titled “Properties”format
Section titled “format”
readonlyformat:"markdown"
Defined in: packages/speculator/src/parse/markdown/parser.ts:36
Format this parser handles
Implementation of
Section titled “Implementation of”Methods
Section titled “Methods”parse()
Section titled “parse()”Call Signature
Section titled “Call Signature”Defined in: packages/speculator/src/parse/markdown/parser.ts:55
Parse markdown composed string to AST blocks Overload 1: New API with content string and SourceMapper Overload 2: Legacy API with SourceUnit-like object (backwards compat for tests)
Parameters
Section titled “Parameters”content
Section titled “content”string
sourceMapper
Section titled “sourceMapper”SourceMapper
Returns
Section titled “Returns”Implementation of
Section titled “Implementation of”Call Signature
Section titled “Call Signature”Defined in: packages/speculator/src/parse/markdown/parser.ts:56
Parse markdown composed string to AST blocks Overload 1: New API with content string and SourceMapper Overload 2: Legacy API with SourceUnit-like object (backwards compat for tests)
Parameters
Section titled “Parameters”content
Section titled “content”string
string
format
Section titled “format”string
sideFiles?
Section titled “sideFiles?”Record<string, string>
startLine
Section titled “startLine”number