Developer
News and Updates
Get Support
Sign in
Get Support
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Last updated Sep 1, 2026

ADF node: rule

Description

The rule node represents a divider. It is equivalent to the HTML <hr> tag.

Example

Java

1
2
3
4
5
6
doc(
        p("Hello"),
        hr(),
        p("World")
);

ADF

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
  "version": 1,
  "type": "doc",
  "content": [
    {
      "type": "paragraph",
      "content": [
        {
          "type": "text",
          "text": "Hello"
        }
      ]
    },
    {
      "type": "rule"
    },
    {
      "type": "paragraph",
      "content": [
        {
          "type": "text",
          "text": "World"
        }
      ]
    },
  ]
}

Result

Hello


World

Compatibility

Products

ConfluenceJira

Usage

Marks

❌ N/A

Attributes

AttributeTypeRequiredDescription
localIdstringUnique identifier for this node. When present, typically a random UUID (not enforced by the schema).
colorstring (hex)Stage 0 only. Colour of the rule line (e.g. #FF0000).
styleenumStage 0 only. Visual style of the rule: solid, dashed, dotted, sketch, fade.
weightnumber (1–3)Stage 0 only. Thickness of the rule.

Structure

  • type - rule
  • attrs?
    • localId? – string1
    • color? – string (hex)2 (Stage 0)
    • style? – enum (solid | dashed | dotted | sketch | fade)2 (Stage 0)
    • weight? – number (1–3)2 (Stage 0)

Footnotes

  1. The localId, when present, will typically be a random UUID. This is not enforced by the schema.

  2. These attrs are Stage 0 and require a FeatureContext that enables stage-0 nodes. 2 3

Rate this page: