The subsup
mark sets superscript or subscript styling. This mark applies to text
nodes.
1 2{ "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: