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 mark: subsup

Mark

Usage

Description

The subsup mark sets superscript or subscript styling.

Example

Java

1
2
3
4
5
6
7
8
p(
   text("Hello "),
   text("world").sub(),
   text(", what's "),
   text("up").sup(),
   text("?")
)

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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
    "type": "paragraph",
    "content": [
        {
            "type": "text",
            "text": "Hello "
        },
        {
            "type": "text",
            "text": "world",
            "marks": [
                {
                    "type": "subsup",
                    "attrs": {
                        "type": "sub"
                    }
                }
            ]
        },
        {
            "type": "text",
            "text": ", what's "
        },
        {
            "type": "text",
            "text": "up",
            "marks": [
                {
                    "type": "subsup",
                    "attrs": {
                        "type": "sup"
                    }
                }
            ]
        },
        {
            "type": "text",
            "text": "?"
        }
    ]
}

Result

Hello world, what’s up?

Compatibility

Products

ConfluenceJira

Nodes

Marks

code

Structure

  • type - subsup
  • attrs
    • type – sub | sup

Rate this page: