The backgroundColor mark sets background color styling for text.
1 2 3 4 5 6p( text("Hello "), text("world").backgroundColor("#006600"), text("!") )
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26{ "type": "paragraph", "content": [ { "type": "text", "text": "Hello " }, { "type": "text", "text": "world", "marks": [ { "type": "backgroundColor", "attrs": { "color": "#00FF00" } } ] }, { "type": "text", "text": "!" } ] }
| Confluence | Jira |
|---|---|
| ✅ | ✅ |
❌ code
backgroundColor/^#[0-9a-fA-F]{6}$/Rate this page: