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: