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
| Parameter | Type | Description |
|---|---|---|
state | MarkdownSerializerState | The current serializer state |
node | Node | The node to serialize |
parent | Node | The parent node containing this node |
index | number | The index of this node within its parent |
Returns
void