Macros¶
atlcli provides extensive Confluence macro support with bidirectional conversion between markdown and Confluence Storage Format.
Panel Macros¶
Info Panel¶
With title:
Note Panel¶
Warning Panel¶
Tip Panel¶
Custom Panel¶
Full control over panel styling:
::: panel title="Custom Panel" bgColor="#f0f0f0" borderColor="#ccc" borderStyle="solid"
Custom styled panel content.
:::
Options:
| Option | Description |
|---|---|
title | Panel title |
bgColor | Background color (hex) |
borderColor | Border color (hex) |
borderStyle | solid, dashed, none |
Expand/Collapse¶
Basic Expand¶
Expanded by Default¶
Table of Contents¶
With options:
Options:
| Option | Description |
|---|---|
minLevel | Minimum heading level (default: 1) |
maxLevel | Maximum heading level (default: 6) |
style | none, disc, circle, square |
Code Blocks¶
Standard fenced code blocks are converted to Confluence code macros:
With title:
With line numbers:
Supported Languages¶
JavaScript, TypeScript, Python, Java, Go, Rust, C, C++, C#, Ruby, PHP, SQL, Bash, YAML, JSON, XML, HTML, CSS, and many more.
Status Macro¶
Inline status labels:
{status:green}Approved{status}
{status:yellow}In Review{status}
{status:red}Rejected{status}
{status:blue}In Progress{status}
{status:grey}Draft{status}
Colors: green, yellow, red, blue, grey
Anchor Macro¶
Create link anchors:
Jira Integration¶
Single Issue¶
JQL Query¶
Options:
| Option | Description |
|---|---|
columns | Columns to display |
count | Show count only |
cache | Cache duration |
Page Structure¶
Children Macro¶
List child pages:
With options:
Options:
| Option | Description |
|---|---|
depth | How many levels deep |
sort | title, created, modified |
reverse | Reverse sort order |
style | none, disc, circle, square |
Page Tree¶
Display page tree navigation:
Recently Updated¶
Content by Label¶
Layout Macros¶
Section and Column¶
::: section
::: column width=50%
Left column content.
:::
::: column width=50%
Right column content.
:::
:::
Excerpt¶
Mark content for reuse:
Include Excerpt¶
Include excerpt from another page:
Media Macros¶
Gallery¶
Display attached images as gallery:
Attachments List¶
List page attachments:
Multimedia¶
Embed video or audio:
Widget/Embed¶
Embed external content:
Confluence Wiki Syntax¶
For compatibility, Confluence wiki attachment syntax is also supported:
!image.png! <!-- Inline image -->
!image.png|alt=Description! <!-- Image with alt text -->
!document.pdf! <!-- File download link -->
Unknown Macros¶
Macros that atlcli doesn't recognize are preserved as-is. This ensures no information loss during sync:
On push, this is converted to Confluence's storage format and preserved. On pull, it's converted back exactly.
Conversion Details¶
| Direction | Process |
|---|---|
| Push | Markdown → Confluence Storage Format (XHTML) |
| Pull | Storage Format → Markdown |
Round-Trip Safety¶
All supported macros round-trip cleanly:
- Pull page with macros → Markdown
- Edit markdown
- Push back → Identical macro rendering
Unsupported Macros¶
Some complex macros render to placeholder text with a note:
Best Practices¶
- Use standard markdown when possible (tables, code blocks, lists)
- Reserve macros for Confluence-specific features (panels, toc, jira)
- Test round-trips for complex pages before relying on sync
- Check preview with
atlcli wiki docs previewbefore pushing