[go: up one dir, main page]

Developer
Documentation
Resources
Get Support
Sign in
Developer
Get Support
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Developer
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Last updated Oct 3, 2025

Node - orderedList

Purpose

The orderedList node is a container for a numbered list of items. It's the ordered equivalent of bulletList.

Type

orderedList is a top-level block node.

Example

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

Fields

NameRequiredTypeValue
typestring"orderedList"
contentarrayAn array of nodes
attrsobject
attrs.orderintegerA positive integer greater than or equal to 0

Content

content can contain one or more listItem nodes.

Attributes

order defines the number of the first item in the list. For example, 3 would mean the list starts at number three. When not specified, the list starts from 1.

Rate this page: