# Confluence storage format reference: XHTML, macros, ADF

URL: https://goingstellar.ro/reference/confluence-storage-format/

Confluence keeps every page in two forms. The storage format is the XHTML-based markup of Confluence Data Center and of the body.storage representation in the Confluence Cloud REST API: plain HTML tags plus Confluence elements such as ac:structured-macro, ac:link and ri:page. ADF, the Atlassian Document Format, is the JSON that the Confluence Cloud editor works with and that the REST API returns as body.atlas_doc_format.

This reference has one page per element: text and HTML, lists and tasks, links and mentions, images, tables and layouts, emoticons and dates, the formatting macros (info, panel, code, expand, status, table of contents), the content and report macros, and the legacy macros that the Cloud editor no longer offers. Each page shows the storage markup, how the same thing is made in the editor, the ADF node and the HTML that Confluence renders.

Every example was saved to a Confluence Cloud page on 29 Nov 2026 as storage format, read back as storage, view and ADF, then saved again as ADF and read as storage a second time. The pages say plainly what does not survive that round trip. All the cases are collected on [What's lost converting Confluence storage format to ADF](https://goingstellar.ro/reference/confluence-storage-format/conversion-losses/).

To find the pages that use a given macro before you convert them, see the [CQL macro field](https://goingstellar.ro/reference/cql/macro-field/) in the [CQL reference](https://goingstellar.ro/reference/cql/).

Every example that came back changed is collected on one page: [What's lost converting Confluence storage format to ADF](https://goingstellar.ro/reference/confluence-storage-format/conversion-losses/).

## Text and headings

- [<code> inline code](https://goingstellar.ro/reference/confluence-storage-format/monospace.md): How the code element is stored on Confluence Cloud, the ADF code mark, and why bold inside inline code is lost in an ADF round trip.
- [<h1> to <h6> headings](https://goingstellar.ro/reference/confluence-storage-format/headings.md): Storage syntax for h1 to h6 headings on Confluence Cloud, the id the view adds, what happens to h7, and how bold and alignment survive an ADF save.
- [<small>, <big> and font size](https://goingstellar.ro/reference/confluence-storage-format/small-big-font-size.md): The small and big elements and a font-size span in Confluence storage: the documentation lists them, but an ADF save removes all three.
- [<strong>, <em>, <b> and <i>](https://goingstellar.ro/reference/confluence-storage-format/bold-italic.md): How strong, em, b and i are stored on Confluence Cloud, why an ADF save rewrites b and i, and what happens to nested bold italic text.
- [<sup> and <sub>](https://goingstellar.ro/reference/confluence-storage-format/superscript-subscript.md): The sup and sub elements on Confluence Cloud: storage syntax, the ADF subsup mark, and the sm service mark macro that disappears in an ADF round trip.
- [<u> underline](https://goingstellar.ro/reference/confluence-storage-format/underline.md): The u element in Confluence storage format: syntax from the docs, how it maps to the ADF underline mark, and what a multi-mark paragraph looks like.
- [Strikethrough](https://goingstellar.ro/reference/confluence-storage-format/strikethrough.md): Strikethrough in Confluence storage: the documented span style, s, del, strike and the strike macro, and which of them an ADF save keeps.
- [Text color](https://goingstellar.ro/reference/confluence-storage-format/text-color.md): How a span with a color style is stored on Confluence Cloud: rgb values, hex and named colours, the ADF textColor mark and the font tag that is dropped.
- [Text highlight](https://goingstellar.ro/reference/confluence-storage-format/background-highlight.md): How highlighted text is stored on Confluence Cloud: the background-color span, the ADF backgroundColor mark, and the legacy highlight and bgcolor macros.

## Paragraphs and structure

- [<blockquote>](https://goingstellar.ro/reference/confluence-storage-format/block-quote.md): The blockquote element with a nested paragraph on Confluence Cloud: documented syntax, the ADF blockquote node, and the info panel as a boxed alternative.
- [<pre> preformatted text](https://goingstellar.ro/reference/confluence-storage-format/preformatted.md): What the pre element and the noformat macro become on Confluence Cloud: stored as written, but an ADF save turns them into inline code or a code macro.
- [<time> dates](https://goingstellar.ro/reference/confluence-storage-format/dates.md): A Confluence date is a self-closing time element with an ISO datetime attribute. Covers how it renders, the ADF timestamp mapping and dates in tasks.
- [Alignment and indentation](https://goingstellar.ro/reference/confluence-storage-format/alignment-indentation.md): Alignment and indent in Confluence storage: text-align and margin-left styles, the ADF alignment and indentation marks, and the align and center macros.
- [Entities and special characters](https://goingstellar.ro/reference/confluence-storage-format/entities-special-characters.md): How mdash, ndash, nbsp, copy and escaped markup are stored on Confluence Cloud, and why the copyright and trademark macros vanish in an ADF save.
- [HTML that storage format drops](https://goingstellar.ro/reference/confluence-storage-format/unsupported-html.md): What happens to font, div, comments, script, h7 and the html macro on Confluence Cloud: what storage removes at save and what an ADF save removes later.
- [Inline comment markers](https://goingstellar.ro/reference/confluence-storage-format/inline-comments.md): ac:inline-comment-marker wraps commented text with an ac:ref id. See how it renders, how it maps to an ADF annotation mark and what stays after a save.
- [Paragraphs, line breaks and <hr>](https://goingstellar.ro/reference/confluence-storage-format/paragraphs-line-breaks.md): How p, br and hr are stored on Confluence Cloud, the ADF hardBreak and rule nodes, and what happens to text sent without a paragraph.
- [Placeholders and template variables](https://goingstellar.ro/reference/confluence-storage-format/placeholders-variables.md): ac:placeholder instruction text and at:var template variables in Confluence storage format, and what is kept or lost when a page is saved from the editor.

## Lists and tasks

- [<ac:task-list> task lists](https://goingstellar.ro/reference/confluence-storage-format/task-lists.md): Task lists use ac:task-list, ac:task, ac:task-status and ac:task-body. See the ids Confluence adds, dates in tasks and the ADF taskList node.
- [<ul> and <ol> lists](https://goingstellar.ro/reference/confluence-storage-format/bullet-numbered-lists.md): Bulleted and numbered lists are plain ul and ol elements in storage format. See start values, line breaks and what the ADF round trip rewrites.
- [Nested and mixed lists](https://goingstellar.ro/reference/confluence-storage-format/nested-lists.md): Nest a ul or ol inside an li to build sub-lists, mix bullets under numbers, and place lists in table cells. Tested storage and ADF results.

## Links

- [<a href> external links](https://goingstellar.ro/reference/confluence-storage-format/external-links.md): External links are plain a href elements. See which attributes survive an ADF save: title and target are dropped, mailto and rich bodies are kept.
- [<ac:link> to a page](https://goingstellar.ro/reference/confluence-storage-format/page-links.md): Link to another page with ac:link and ri:page. Covers content title, space key, link bodies and what happens when the target page is missing.
- [Anchor links](https://goingstellar.ro/reference/confluence-storage-format/anchor-links.md): The ac:anchor attribute on ac:link jumps to an anchor on the same or another page. See the plain a href form and how both are rewritten in ADF.
- [Link bodies: plain text and rich](https://goingstellar.ro/reference/confluence-storage-format/link-bodies.md): ac:plain-text-link-body takes CDATA text and ac:link-body takes a limited set of markup or an image. Tested rich text, escaping and the ADF conversion.
- [Links to attachments](https://goingstellar.ro/reference/confluence-storage-format/attachment-links.md): Link to a file attached to a page with ac:link and ri:attachment, or show it with the view file macro. Tested conversion and missing-file behaviour.
- [Smart links: inline, card and embed](https://goingstellar.ro/reference/confluence-storage-format/smart-links.md): Smart links are a href elements with data-card-appearance set to inline, block or embed. Tested storage output and the ADF card nodes.
- [Space, blog post, content and shortcut links](https://goingstellar.ro/reference/confluence-storage-format/space-blog-shortcut-links.md): ac:link also accepts ri:space, ri:blog-post, ri:content-entity and ri:shortcut. Tested rendering and ADF conversion of each, including unresolved targets.
- [User links and mentions](https://goingstellar.ro/reference/confluence-storage-format/user-links-mentions.md): A mention is an ac:link containing ri:user with an account id. Tested account-id and legacy userkey forms, the ADF mention node and the profile macro.

## Images and attachments

- [<ac:image> from a URL](https://goingstellar.ro/reference/confluence-storage-format/external-images.md): Show an image from another site with ac:image and ri:url. Tested width and alignment, the ADF external media node and what an editor save adds.
- [Attached images](https://goingstellar.ro/reference/confluence-storage-format/attached-images.md): Show a file attached to the page with ac:image and ri:attachment. Tested conversion to the ADF file media node and the attributes Confluence adds.
- [Image attributes](https://goingstellar.ro/reference/confluence-storage-format/image-attributes.md): Which ac:image attributes Confluence renders and which an ADF save keeps. Tested width, align, border, alt, title, class, style and thumbnail.

## Tables

- [Cell background colours](https://goingstellar.ro/reference/confluence-storage-format/table-cell-colours.md): Set a cell background colour in Confluence storage format with data-highlight-colour, and why an inline style colour is lost in the editor round trip.
- [Lists, paragraphs and tables in cells](https://goingstellar.ro/reference/confluence-storage-format/content-in-cells.md): What a Confluence table cell can hold in storage format: lists, paragraphs, nested tables and a nested expand, and how the editor round trip rewrites them.
- [Merged cells](https://goingstellar.ro/reference/confluence-storage-format/merged-cells.md): Merge table cells in Confluence storage format with rowspan and colspan, and see which span attributes the Cloud editor round trip keeps or drops.
- [Table width, layout and numbered rows](https://goingstellar.ro/reference/confluence-storage-format/table-width-layout.md): Table width in Confluence storage format: data-layout, data-table-width, colgroup widths, relative-table and number columns, and what the round trip keeps.
- [Tables](https://goingstellar.ro/reference/confluence-storage-format/tables.md): How a Confluence table is written in storage format with table, tbody, tr, th and td, and what the Cloud editor round trip adds or flattens.

## Page layouts

- [<ac:layout> page layouts](https://goingstellar.ro/reference/confluence-storage-format/page-layouts.md): Page layouts in storage format: ac:layout, ac:layout-section types, ac:layout-cell counts, and how a wrong cell count or a late layout is converted.

## Emoticons

- [<ac:emoticon> and emoji](https://goingstellar.ro/reference/confluence-storage-format/emoticons.md): ac:emoticon takes a name in storage format; the editor adds emoji id, shortname and fallback. Unknown names and ADF emoji convert differently.

## Macros

- [anchor macro](https://goingstellar.ro/reference/confluence-storage-format/anchor-macro.md): The anchor macro in storage format, its unnamed parameter, how to link to it with ac:anchor, and the loss on links to other pages.
- [children and pagetree macros](https://goingstellar.ro/reference/confluence-storage-format/children-pagetree.md): How the children (child items) and pagetree (content tree) macros are written, which parameters survive saving, and how ADF rewrites them.
- [code macro](https://goingstellar.ro/reference/confluence-storage-format/code-macro.md): The code macro in storage format: language, title, collapse, linenumbers, firstline and theme, with the CDATA body and what ADF keeps.
- [code macro languages](https://goingstellar.ro/reference/confluence-storage-format/code-languages.md): Which language values the code macro accepts, what the stored page highlights with, and how language names change in ADF.
- [details and detailssummary (page properties)](https://goingstellar.ro/reference/confluence-storage-format/page-properties.md): The page properties macro (details) wraps a key/value table and detailssummary reports it from other pages; storage, view and ADF behaviour.
- [excerpt, excerpt-include and include macros](https://goingstellar.ro/reference/confluence-storage-format/excerpt-include.md): How the excerpt, excerpt-include and include macros are written in storage format, the hidden parameter, and how they map to ADF extensions.
- [expand macro](https://goingstellar.ro/reference/confluence-storage-format/expand.md): The expand macro in storage format: the title parameter, the default label, and how it maps to the ADF expand node without changes.
- [html, iframe and widget macros](https://goingstellar.ro/reference/confluence-storage-format/html-iframe-widget.md): What happens when the html, iframe and widget macros are saved: html is kept but not rendered, iframe and widget saves fail with a 500 error.
- [info, note, tip and warning macros](https://goingstellar.ro/reference/confluence-storage-format/info-note-tip-warning.md): Storage syntax of the four coloured call-out macros, the title and icon parameters, and how each one maps to an ADF panel type.
- [jira and jirachart macros](https://goingstellar.ro/reference/confluence-storage-format/jira-macros.md): How the jira (work items) and jirachart macros are stored: key, jqlQuery, columns, maximumIssues, jql, and what ADF does to them.
- [Macros removed from the Cloud editor](https://goingstellar.ro/reference/confluence-storage-format/legacy-macros.md): How the macros listed as removed from the Cloud editor behave in storage and ADF, and which ones lose content in conversion.
- [noformat macro](https://goingstellar.ro/reference/confluence-storage-format/noformat.md): The noformat macro and its nopanel parameter in storage format, and why a save from the Cloud editor turns it into a code macro.
- [panel macro](https://goingstellar.ro/reference/confluence-storage-format/panel-macro.md): The panel macro and its title, border and colour parameters in storage format, and which of them survive a save from the Cloud editor.
- [Reporting macros (content by label, recently updated, attachments...)](https://goingstellar.ro/reference/confluence-storage-format/report-macros.md): Content by label, recently updated, attachments, tasks report and change history macros: storage syntax, withheld views and ADF conversion.
- [section and column macros](https://goingstellar.ro/reference/confluence-storage-format/section-column.md): How section and column macros convert to page layouts (ac:layout) in ADF, with width handling and the one-cell section that cannot convert.
- [status macro](https://goingstellar.ro/reference/confluence-storage-format/status.md): The status lozenge in storage format: colour, title and subtle parameters, colours that render, and the ADF status node.
- [toc and toc-zone macros](https://goingstellar.ro/reference/confluence-storage-format/table-of-contents.md): The toc and toc-zone macros in storage format: heading levels, style, type, outline and exclude, and how both map to ADF extension nodes.
- [Unknown and empty macros](https://goingstellar.ro/reference/confluence-storage-format/unknown-macros.md): What Confluence stores and renders for unknown macro names, macros missing required parameters, and macros with no body.

## General

- [REST API body representations](https://goingstellar.ro/reference/confluence-storage-format/rest-api-representations.md): How body.storage, body.view and body.atlas_doc_format relate in the Confluence Cloud content API, shown with saved and read-back probes.
- [Storage format vs ADF](https://goingstellar.ro/reference/confluence-storage-format/storage-vs-adf.md): Storage format is the XHTML Confluence keeps; ADF is the JSON of the Cloud editor. What is kept, rewritten or dropped when a page goes between them.

