Block Types¶
This page documents all supported block types for structured content.
Paragraph¶
Basic text content.
JSON:
Renders to:
Heading¶
H1-H6 headings.
JSON:
Renders to:
Table¶
Tables with headers and rows.
JSON:
{
"type": "table",
"headers": ["Name", "Role", "Status"],
"rows": [
["Alice", "Lead", "Active"],
["Bob", "Developer", "Active"]
]
}
Renders to:
<table>
<tbody>
<tr>
<th>Name</th>
<th>Role</th>
<th>Status</th>
</tr>
<tr>
<td>Alice</td>
<td>Lead</td>
<td>Active</td>
</tr>
<tr>
<td>Bob</td>
<td>Developer</td>
<td>Active</td>
</tr>
</tbody>
</table>
Note: Headers are rendered as <th> in the first row of <tbody>. Confluence Storage Format does NOT support <thead>.
Tables with Macros¶
Cells can contain macros:
{
"type": "table",
"headers": ["Service", "Status"],
"rows": [
["API", {"macro": {"name": "status", "params": {"colour": "Green", "title": "OK"}}}]
]
}
Bullet List¶
Unordered lists.
JSON:
Renders to:
Numbered List¶
Ordered lists.
JSON:
Renders to:
Macro¶
Confluence macros.
Status Macro¶
JSON:
Renders to:
<ac:structured-macro ac:name="status">
<ac:parameter ac:name="colour">Green</ac:parameter>
<ac:parameter ac:name="title">OK</ac:parameter>
</ac:structured-macro>
Available colors: Grey, Red, Yellow, Green, Blue
Info Macro¶
JSON:
{
"type": "macro",
"name": "info",
"params": {"title": "Note"},
"body": "This is important information."
}
Warning Macro¶
JSON:
Code Macro¶
JSON:
{
"type": "macro",
"name": "code",
"params": {"language": "python"},
"body": "print('Hello, World!')"
}
Code Block¶
Shorthand for code macro.
JSON:
Renders to:
<ac:structured-macro ac:name="code">
<ac:parameter ac:name="language">go</ac:parameter>
<ac:plain-text-body><![CDATA[fmt.Println("Hello")]]></ac:plain-text-body>
</ac:structured-macro>
Horizontal Rule¶
Divider line.
JSON:
Renders to: