Node - listItem

Purpose

The listItem node represents an item in a list (either bulletList or orderedList), and contains the content for that item.

Example

1
2
3
4
5
6
7
8
9
10
11
12
13
14
{
  "type": "listItem",
  "content": [
    {
      "type": "paragraph",
      "content": [
        {
          "type": "text",
          "text": "Hello world"
        }
      ]
    }
  ]
}

Content

listItem is a block node in block node in top-level blocks group that contains other nodes from top-level blocks as children.

Fields

NameMandatoryTypeValueNotes
typestring"listItem"
contentarrayArray of one or more top-level blocks nodes where first node MUST be paragraph, mediaSingle or codeBlock only