The textColor mark sets foreground color styling for text.
1 2 3 4 5 6p( text("Hello "), text("world").textColor("#00FF00"), 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": "textColor", "attrs": { "color": "#00FF00" } } ] }, { "type": "text", "text": "!" } ] }
| Confluence | Jira |
|---|---|
| ✅ | ✅ |
❌ code
textColor/^#[0-9a-fA-F]{6}$/Rate this page: