The text node holds general document text.
The HTML equivalent is any bare text to be displayed, such as would be found inside a paragraph. Except where otherwise noted, text nodes can be augmented with any of several marks to enhance how they are displayed.
Empty text nodes are not permitted; a non-empty text property must be provided.
Implementation Note: In the Java library, most nodes that are frequently used with simple paragraph and text nodes also provide methods that accept String values for convenience. Where these are available, they implicitly wrap the strings in text and paragraph nodes as required.
1 2p(text("Hello world"));
1 2 3 4 5 6 7 8 9 10{ "type": "paragraph", "content": [ { "type": "text", "text": "Hello world" } ] }
Hello world
| Confluence | Jira |
|---|---|
| ✅ | ✅ |
texttext node have to belong to the same list. For example, code is only a CodeTextMark and em is only a FormattedTextMark, so they cannot be used together. The link is in both lists, so it can be combined with either of them.↩︎text node have to belong to the same list. For example, code is only a CodeTextMark and em is only a FormattedTextMark, so they cannot be used together. The link is in both lists, so it can be combined with either of them.↩︎Rate this page: