Node - listItem

Purpose

The listItem node represents an item in a list.

Type

listItem is a child block node of:

Example

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

Fields

NameRequiredTypeValue
typestring"listItem"
contentarrayAn array of one or more nodes.

Content

content must contain at least one of the following nodes:

Rate this page: