Rate this page:

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
3
4
5
6
7
8
9
{
  "type": "paragraph",
  "content": [
    {
      "type": "text",
      "text": "Hello world"
    }
  ]
}

Fields

NameRequiredTypeValue
typestring"paragraph"
contentarrayArray of zero or more nodes.

Content

content can take any inline mode.

Rate this page: