The paragraph
node is a container for a block of formatted text delineated by a carriage return.
It's the equivalent of the HTML <p> tag.
paragraph
is a top-level block node.
1 2{ "type": "paragraph", "content": [ { "type": "text", "text": "Hello world" } ] }
Name | Required | Type | Value |
---|---|---|---|
type | ✔ | string | "paragraph" |
content | array | Array of zero or more nodes. | |
attrs | object | ||
attrs.localId | string | An ID to uniquely identify this node within the document. |
content
can take any inline mode.
Rate this page: