Going Stellar

Home/Confluence storage format reference

Confluence storage format

Small, big and font size in Confluence storage format

The storage format documentation lists small and big elements for text size. Storage keeps and renders them, and so it does a font-size span. ADF has no size mark, so an ADF save leaves plain text.

Storage format

<small>small text</small>
<big>big text</big>
<span style="font-size: 20px;">font size</span>

Examples

Storage format sent

<p><small>small text</small></p>

Smaller text as written in the documentation. It renders small, but the ADF read-back has no mark.

Rendered view (HTML)

<p><small>small text</small></p>

Storage format after the round trip through ADF

<p>small text</p>

Sent to Confluence Cloud on .

Storage format sent

<p><big>big text</big></p>

Larger text as written in the documentation. It follows the same pattern as small.

Rendered view (HTML)

<p><big>big text</big></p>

Storage format after the round trip through ADF

<p>big text</p>

Sent to Confluence Cloud on .

Storage format sent

<p><span style="font-size: 20px;">font size</span></p>

A font-size style on a span. Storage normalises 20px to 20.0px and the view keeps it, but an ADF save drops the span.

Rendered view (HTML)

<p><span style="font-size: 20.0px;">font size</span></p>

Storage format after the round trip through ADF

<p>font size</p>

Sent to Confluence Cloud on .

What changes in conversion

  • small, big and the font-size span are all kept by storage, but the ADF generated from them is plain text. After an ADF save the text is back at normal size.
  • A font size is rewritten with one decimal place on save, so 20px becomes 20.0px.
  • No ADF mark for size exists in the probes, so there is no editor-native way to produce these three forms.

Pitfalls

  • Size formatting written through the API does not last. Any later edit in the Cloud editor flattens it.
  • Use a heading when the point is hierarchy, since heading levels do survive.

Questions and answers

Can Confluence Cloud keep a custom font size?

Not through an ADF save. The font-size span was removed in the probe.

Sources

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

Markdown version · All storage format pages