# Macros removed from the Cloud editor: storage format

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

Atlassian lists macros that can no longer be inserted in the Cloud editor and says existing ones migrate without any loss of data. The probes sent the macro keys from that list as storage, converted them to ADF and saved them back. Most stay as extension nodes, a few become native elements, and some disappear.

## Storage format

```xml
<ac:structured-macro ac:name="center"><ac:rich-text-body><p>center body</p></ac:rich-text-body></ac:structured-macro>
<ac:structured-macro ac:name="bgcolor"><ac:parameter ac:name="colour">yellow</ac:parameter><ac:rich-text-body><p>bgcolor body</p></ac:rich-text-body></ac:structured-macro>
<ac:structured-macro ac:name="copyright"></ac:structured-macro>
```

## As ADF (Confluence Cloud)

The ADF that Confluence Cloud builds for:

```xml
<ac:structured-macro ac:name="bgcolor"><ac:parameter ac:name="colour">yellow</ac:parameter><ac:rich-text-body><p>bgcolor body</p></ac:rich-text-body></ac:structured-macro>
```

```json
{
 "type": "doc",
 "content": [
  {
   "type": "panel",
   "attrs": {
    "panelColor": "#C0FFC0",
    "panelType": "custom"
   },
   "content": [
    {
     "type": "paragraph",
     "content": [
      {
       "text": "bgcolor body",
       "type": "text"
      }
     ]
    }
   ]
  }
 ],
 "version": 1
}
```

## Examples

Storage format sent:

```xml
<ac:structured-macro ac:name="bgcolor"><ac:parameter ac:name="colour">yellow</ac:parameter><ac:rich-text-body><p>bgcolor body</p></ac:rich-text-body></ac:structured-macro>
```

A legacy background colour macro. It converts to a custom panel with the colour kept, which keeps the look but changes the element.

Rendered view (HTML):

```html
<div class="conf-macro output-block" data-hasbody="true" data-macro-id="<id>" data-macro-name="bgcolor" style="background-color: #C0FFC0;">
    bgcolor body
</div>
```

Storage format after the round trip through ADF:

```xml
<ac:structured-macro ac:name="panel" ac:schema-version="1" ac:macro-id="<id>"><ac:parameter ac:name="containerLevel">panel_c1</ac:parameter><ac:parameter ac:name="bgColor">#C0FFC0</ac:parameter><ac:rich-text-body><p>bgcolor body</p></ac:rich-text-body></ac:structured-macro>
```

Sent to Confluence Cloud on 29 Nov 2026.

Storage format sent:

```xml
<ac:structured-macro ac:name="noformat"><ac:plain-text-body><![CDATA[preformatted *no* formatting]]></ac:plain-text-body></ac:structured-macro>
```

The legacy noformat macro. It becomes a code macro with the same body, which matches the documentation's statement that it becomes a native code snippet.

Rendered view (HTML):

```html
<div class="preformatted panel conf-macro output-block" data-hasbody="true" data-macro-id="<id>" data-macro-name="noformat" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>preformatted *no* formatting</pre>
</div></div>
```

Storage format after the round trip through ADF:

```xml
<ac:structured-macro ac:name="code" ac:schema-version="1" ac:macro-id="<id>"><ac:plain-text-body><![CDATA[preformatted *no* formatting]]></ac:plain-text-body></ac:structured-macro>
```

Sent to Confluence Cloud on 29 Nov 2026.

Storage format sent:

```xml
<ac:structured-macro ac:name="center"><ac:rich-text-body><p>center body</p></ac:rich-text-body></ac:structured-macro>
```

The legacy center macro. It stays a macro and stores unchanged, so the text stays centred.

Rendered view (HTML):

```html
<div class="conf-macro output-block" data-hasbody="true" data-macro-id="<id>" data-macro-name="center" style="text-align:center;"><p>center body</p></div>
```

Storage format after the round trip through ADF:

```xml
<ac:structured-macro ac:name="center" ac:schema-version="1" ac:macro-id="<id>"><ac:rich-text-body><p>center body</p></ac:rich-text-body></ac:structured-macro>
```

Sent to Confluence Cloud on 29 Nov 2026.

Storage format sent:

```xml
<ac:structured-macro ac:name="cheese"></ac:structured-macro>
```

The cheese macro, which prints a fixed sentence. It stays a macro and returns inside a paragraph.

Rendered view (HTML):

```html
I like cheese!
```

Storage format after the round trip through ADF:

```xml
<p><ac:structured-macro ac:name="cheese" ac:schema-version="1" ac:macro-id="<id>" /></p>
```

Sent to Confluence Cloud on 29 Nov 2026.

Storage format sent:

```xml
<ac:structured-macro ac:name="copyright"></ac:structured-macro>
```

The copyright symbol macro. The view shows the symbol in a superscript, and the macro does not survive the conversion.

Rendered view (HTML):

```html
<span class="$class conf-macro output-inline" data-hasbody="false" data-macro-id="<id>" data-macro-name="copyright" id="$id">
    <b> </b>
    <small>
        <sup>©</sup>
    </small>
</span>
```

Storage format after the round trip through ADF:

```xml
<p />
```

Sent to Confluence Cloud on 29 Nov 2026.

Storage format sent:

```xml
<ac:structured-macro ac:name="reg-tm"></ac:structured-macro>
```

The registered trademark macro. The view shows the symbol, and the macro does not survive the conversion.

Rendered view (HTML):

```html
<span class=" conf-macro output-inline" data-hasbody="false" data-macro-id="<id>" data-macro-name="reg-tm" id="">
    <b> </b>
    <small>
        <sup>®</sup>
    </small>
</span>
```

Storage format after the round trip through ADF:

```xml
<p />
```

Sent to Confluence Cloud on 29 Nov 2026.

Storage format sent:

```xml
<ac:structured-macro ac:name="htmlcomment"><ac:rich-text-body><p>htmlcomment body</p></ac:rich-text-body></ac:structured-macro>
```

The HTML comment macro. The view is an HTML comment, and the macro stays unchanged through ADF.

Rendered view (HTML):

```html
<!--<p>htmlcomment body</p>-->
```

Storage format after the round trip through ADF:

```xml
<ac:structured-macro ac:name="htmlcomment" ac:schema-version="1" ac:macro-id="<id>"><ac:rich-text-body><p>htmlcomment body</p></ac:rich-text-body></ac:structured-macro>
```

Sent to Confluence Cloud on 29 Nov 2026.

## What changes in conversion

- Kept as macros: align, center, highlight, strike, div, htmlcomment, span (bodied extensions with the original parameters) and cheese, privacy-mark, loremipsum, favpages, content-by-user, navmap, search (extensions). Their parameters and bodies came back unchanged, except that inline ones are wrapped in a paragraph.
- Rewritten to a native element: bgcolor becomes a panel macro with the parameters containerLevel panel_c1 and bgColor #C0FFC0, and noformat becomes a code macro with the same body.
- Removed: copyright, reg-tm, sm and tm convert to an empty paragraph. An info macro with no body does the same. The text or symbol the macro printed is gone.
- Changed by addition: fancy-bullets and chart come back with a rich-text-body that holds an empty paragraph, and the style macro comes back with a _parentId parameter.

## Where the documentation differs

Sent to Confluence Cloud, 29 Nov 2026:

```xml
<ac:structured-macro ac:name="copyright"></ac:structured-macro>
```

The documentation: The documentation says existing macros 'migrate from legacy to Cloud editor where applicable, without any loss of data', and that Copyright macros 'are still visible and editable' after conversion.

The actual result: The ADF that Confluence builds from the page holds only an empty paragraph, and saving it back gives <p />. The © that the macro printed is no longer on the page.

Sent to Confluence Cloud, 29 Nov 2026:

```xml
<ac:structured-macro ac:name="reg-tm"></ac:structured-macro>
```

The documentation: The documentation says Registered Trademark macros 'are still visible and editable' and that migration happens 'without any loss of data'.

The actual result: The macro converts to an empty paragraph (<p />). The ® that the macro printed is gone.

Sent to Confluence Cloud, 29 Nov 2026:

```xml
<ac:structured-macro ac:name="sm"></ac:structured-macro>
```

The documentation: The documentation says Service Mark macros 'are still visible and editable' and that migration happens 'without any loss of data'.

The actual result: The macro converts to an empty paragraph (<p />). The SM mark that the macro printed is gone.

Sent to Confluence Cloud, 29 Nov 2026:

```xml
<ac:structured-macro ac:name="tm"></ac:structured-macro>
```

The documentation: The documentation says Trademark macros 'are still visible and editable' and that migration happens 'without any loss of data'.

The actual result: The macro converts to an empty paragraph (<p />). The TM mark that the macro printed is gone.

## Pitfalls

- Content that the macro generated is lost when the macro is dropped, even if the page still saves without error. Check pages that use the symbol macros before they are edited in the Cloud editor.
- The style macro lost its body at the first save in storage, before any ADF conversion. Its view is an empty @media rule.
- The bgcolor probe with colour=yellow rendered background-color #C0FFC0 in the view, and the align probe with alignment=center rendered text-align: justify. The accepted values of those parameters were not probed.
- The documentation lists codeBlock as converting automatically to a code snippet. An empty codeBlock macro stayed a macro with the unknown-macro placeholder as its view. A codeBlock with a body was not probed.

## Questions and answers

### Do removed macros stop working on existing pages?

The documentation says no action is required and they continue to work. In the probes, most kept their storage form, and the symbol macros did not.

## Related

- [Unknown and empty macros](https://goingstellar.ro/reference/confluence-storage-format/unknown-macros/)
- [info, note, tip and warning macros](https://goingstellar.ro/reference/confluence-storage-format/info-note-tip-warning/)
- [panel macro](https://goingstellar.ro/reference/confluence-storage-format/panel-macro/)
- [noformat macro](https://goingstellar.ro/reference/confluence-storage-format/noformat/)
- [section and column macros](https://goingstellar.ro/reference/confluence-storage-format/section-column/)
- [html, iframe and widget macros](https://goingstellar.ro/reference/confluence-storage-format/html-iframe-widget/)

## Sources

- [Macros that are unavailable or have limited availability in the Cloud editor (Atlassian Support)](https://support.atlassian.com/confluence-cloud/docs/learn-which-macros-are-being-removed/)
- [Review macros only available in the legacy editor (Atlassian Support)](https://support.atlassian.com/confluence-cloud/docs/review-macros-only-available-in-the-legacy-editor/)
- [What are macros? (Atlassian Support, Confluence Cloud)](https://support.atlassian.com/confluence-cloud/docs/what-are-macros/)

