Skip to content

Type Editor


Type Editor / @type-editor/markdown / types/NodeSerializerFunc / NodeSerializerFunc

Type Alias: NodeSerializerFunc()

ts
type NodeSerializerFunc = (state, node, parent, index) => void;

Defined in: types/NodeSerializerFunc.ts:14

A function type for serializing ProseMirror nodes to Markdown.

Parameters

ParameterTypeDescription
stateMarkdownSerializerStateThe current serializer state
nodeNodeThe node to serialize
parentNodeThe parent node containing this node
indexnumberThe index of this node within its parent

Returns

void