Wiki

Clone wiki

adf-builder-java / node-doc

Node: doc

Description

The doc node is the root container node representing an ADF document.

Example

Java

doc(p(
        text("Hello "),
        text("world").strong()
));

ADF

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

Result

Hello world

Compatibility

Products

Confluence Jira

Usage

  • Root node of every valid document

Marks

❌ N/A

Structure

  • type - doc
  • version - 1
  • content - array(DocContent...)

Updated