Developer
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 Nov 18, 2025

Mark - subsup

Purpose

The subsup mark sets superscript or subscript styling. This mark applies to text nodes.

Example

1
2
{
  "type": "text",
  "text": "Hello world",
  "marks": [
    {
      "type": "subsup",
      "attrs": {
        "type": "sub"
      }
    }
  ]
}

Fields

NameRequiredTypeValue
typestring"subsup"
attrsobject
attrs.typestring"sup" or "sub"

Rate this page: