Going Stellar

Home/Confluence storage format reference

Confluence storage format

Block quote (blockquote) in Confluence storage format

A block quote is a blockquote element that holds one or more paragraphs. It maps to the ADF blockquote node and comes back unchanged. For a boxed callout the info panel is the nearest structure.

Storage format

<blockquote><p>block quote</p></blockquote>

As ADF (Confluence Cloud)

The ADF that Confluence Cloud builds for:

<blockquote><p>block quote</p></blockquote>
{
 "type": "doc",
 "content": [
  {
   "type": "blockquote",
   "content": [
    {
     "type": "paragraph",
     "content": [
      {
       "text": "block quote",
       "type": "text"
      }
     ]
    }
   ]
  }
 ],
 "version": 1
}

Examples

Storage format sent

<blockquote><p>block quote</p></blockquote>

A quoted passage, written with the paragraph inside the element as the documentation does.

Rendered view (HTML)

<blockquote><p>block quote</p></blockquote>

Storage format after the round trip through ADF

<blockquote><p>block quote</p></blockquote>

Sent to Confluence Cloud on .

Storage format sent

ADF:{"content": [{"attrs": {"panelType": "info"}, "content": [{"content": [{"text": "info panel", "type": "text"}], "type": "paragraph"}], "type": "panel"}], "type": "doc", "version": 1}

A callout that should stand out more than a quote. An ADF info panel is stored as an info macro with a rich text body.

Rendered view (HTML)

<div class="confluence-information-macro confluence-information-macro-information conf-macro output-block" data-hasbody="true" data-macro-id="<id>" data-macro-name="info"><span class="aui-icon aui-icon-small aui-iconfont-info confluence-information-macro-icon"> </span><div class="confluence-information-macro-body"><p>info panel</p></div></div>

Storage format after the round trip through ADF

<ac:structured-macro ac:name="info" ac:schema-version="1" ac:macro-id="<id>"><ac:parameter ac:name="containerLevel">panel_c1</ac:parameter><ac:rich-text-body><p>info panel</p></ac:rich-text-body></ac:structured-macro>

Sent to Confluence Cloud on .

Storage format sent

<div><p>in a div</p></div>

A generic wrapper is not a quote. The div is kept in storage but disappears after an ADF save.

Rendered view (HTML)

<div><p>in a div</p></div>

Storage format after the round trip through ADF

<p>in a div</p>

Sent to Confluence Cloud on .

What changes in conversion

  • blockquote with a paragraph child maps to the ADF blockquote node and is written back with the same two elements.
  • No attributes were probed on the element, so nothing is known about styles on a blockquote.

Pitfalls

  • Wrap the text in a paragraph. The documentation puts a p inside the element, and the probe followed that form.
  • A div around text does not create a quote or any other block that the Cloud editor recognises.

Questions and answers

Does a block quote survive an ADF save?

Yes. The blockquote and its paragraph came back unchanged.

Sources

  1. Confluence storage format (Atlassian Documentation)
  2. Atlassian Document Format: document structure (Atlassian Developer)

Markdown version · All storage format pages