Skip to content

BlockMarkdownContext

type BlockMarkdownContext = {
depth: number;
serializeInline: (spans) => string;
spans: TextSpan[];
};

Defined in: blocks.ts:189

PropertyTypeDescriptionDefined in
depthnumberNesting depth (0 = top-level).blocks.ts:195
serializeInline(spans) => stringRender an inline span array (with marks) as inline markdown text.blocks.ts:191
spansTextSpan[]The block’s raw text spans (with marks intact). Empty for atomic / non-text blocks.blocks.ts:193