Skip to content

Heading

header1 through header6 are block element nodes that represent six levels of headings.

Usage and Children

  • Their children directly contain text nodes and supported inline elements, such as links. Content following a heading remains in sibling blocks, rather than becoming its children.
  • The editor moves images out of header1 through header6 into a following paragraph.

Data Structure

{
  "id": "G1opTnrHRr6aX7qbJXZJiw",
  "type": "header1",
  "children": [
    {
      "id": "D_bLOntqQHSZ8lu9VJn_JQ",
      "text": "header content"
    }
  ]
}