Node - paragraph

Purpose

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.

Type

paragraph is a top-level block node.

Example

1
2
{
  "type": "paragraph",
  "content": [
    {
      "type": "text",
      "text": "Hello world"
    }
  ]
}

Fields

NameRequiredTypeValue
typestring"paragraph"
contentarrayArray of zero or more nodes.
attrsobject
attrs.localIdstringAn ID to uniquely identify this node within the document.

Content

content can take any inline mode.

Rate this page: