Skip to content

Interface: NodeJSON ​

A node in the JSON document format.

Properties ​

PropertyTypeDescription
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?stringThe text of a text node.
typestringNode type name, e.g. 'paragraph' or 'text'.