Node - doc

Purpose

The doc node is the root container node representing a document.

Example

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

Fields

NameRequiredTypeValue
typestring"doc"
contentarrayAn array of zero or more nodes.
versioninteger1

Content

content takes zero or more top-level block nodes.

Version

version represents the version of the ADF specification used in the document.

Rate this page: