Skip to content

RenderContext

type RenderContext = {
attr: (name, value) => string;
blocks: Record<string, BlockRenderer>;
classFor: (type) => string;
classPrefix: string;
escape: (value) => string;
marks: Record<string, MarkRenderer>;
options: HTMLSerializerOptions;
renderBlock: (node) => string;
renderBlocks: (nodes) => string;
renderInline: (spans) => string;
renderText: (span) => string;
};

Defined in: index.ts:16

PropertyTypeDefined in
attr(name, value) => stringindex.ts:22
blocksRecord<string, BlockRenderer>index.ts:25
classFor(type) => stringindex.ts:23
classPrefixstringindex.ts:24
escape(value) => stringindex.ts:21
marksRecord<string, MarkRenderer>index.ts:26
optionsHTMLSerializerOptionsindex.ts:27
renderBlock(node) => stringindex.ts:17
renderBlocks(nodes) => stringindex.ts:18
renderInline(spans) => stringindex.ts:19
renderText(span) => stringindex.ts:20