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
Properties
Section titled “Properties”| Property | Type | Defined in |
|---|---|---|
attr | (name, value) => string | index.ts:22 |
blocks | Record<string, BlockRenderer> | index.ts:25 |
classFor | (type) => string | index.ts:23 |
classPrefix | string | index.ts:24 |
escape | (value) => string | index.ts:21 |
marks | Record<string, MarkRenderer> | index.ts:26 |
options | HTMLSerializerOptions | index.ts:27 |
renderBlock | (node) => string | index.ts:17 |
renderBlocks | (nodes) => string | index.ts:18 |
renderInline | (spans) => string | index.ts:19 |
renderText | (span) => string | index.ts:20 |