Skip to content

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.

PropertyModifierTypeDefined in
indexreadonlynumberblocks.ts:178
linesreadonlyreadonly string[]blocks.ts:177
parseInline(line): TextSpan[];

Defined in: blocks.ts:180

Render an inline markdown line into TextSpans (handles built-in marks).

ParameterType
linestring

TextSpan[]