Interface: NodeJSON
A node in the JSON document format.
Properties
| Property | Type | Description |
|---|---|---|
attrs? | Record<string, unknown> | Node attributes, e.g. level for a heading. |
content? | NodeJSON[] | Child nodes. Omitted for leaf nodes and empty blocks. |
marks? | MarkJSON[] | Marks applied to a text node. |
text? | string | The text of a text node. |
type | string | Node type name, e.g. 'paragraph' or 'text'. |