The subsup mark sets superscript or subscript styling. This mark applies to text nodes.
1 2 3 4 5 6 7 8 9 10 11 12 13{ "type": "text", "text": "Hello world", "marks": [ { "type": "subsup", "attrs": { "type": "sub" } } ] }
| Name | Required | Type | Value |
|---|---|---|---|
| type | ✔ | string | "subsup" |
| attrs | ✔ | object | |
| attrs.type | ✔ | string | "sup" or "sub" |
Rate this page: