Developer
Documentation
Resources
Get Support
Sign in
Developer
Get Support
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Developer
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Last updated Oct 17, 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: