Wiki
Clone wikiadf-builder-java / mark-subsup
Mark: subsup
Usage
Description
The subsup
mark sets superscript or subscript styling.
Example
Java
p( text("Hello "), text("world").sub(), text(", what's "), text("up").sup(), text("?") )
ADF
{ "type": "paragraph", "content": [ { "type": "text", "text": "Hello " }, { "type": "text", "text": "world", "marks": [ { "type": "subsup", "attrs": { "type": "sub" } } ] }, { "type": "text", "text": ", what's " }, { "type": "text", "text": "up", "marks": [ { "type": "subsup", "attrs": { "type": "sup" } } ] }, { "type": "text", "text": "?" } ] }
Result
Hello world, what's up?
Compatibility
Products
Confluence | Jira |
---|---|
✅ | ✅ |
Nodes
Marks
❌ code
Structure
- type -
subsup
- attrs
- type –
sub
|sup
- type –
Updated