BlockMarkdownParseContext
type BlockMarkdownParseContext = { index: number; lines: readonly string[]; parseInline: TextSpan[];};Defined in: blocks.ts:176
Cursor over the markdown input, exposed to BlockDescriptor.fromMarkdown.
Implementations typically inspect lines[index] and may peek further
lines (lines[index + n]) for multi-line shapes.
Properties
Section titled “Properties”| Property | Modifier | Type | Defined in |
|---|---|---|---|
index | readonly | number | blocks.ts:178 |
lines | readonly | readonly string[] | blocks.ts:177 |
Methods
Section titled “Methods”parseInline()
Section titled “parseInline()”parseInline(line): TextSpan[];Defined in: blocks.ts:180
Render an inline markdown line into TextSpans (handles built-in marks).
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
line | string |
Returns
Section titled “Returns”TextSpan[]