GitHub-flavored Markdown in Confluence: how tables, task lists, alerts, code blocks and details convert

Updated 2 December 2026 · 7 min read

Short answer: Confluence stores pages as Atlassian Document Format (ADF), so a Markdown importer translates each GitHub-flavored Markdown element into an ADF node: tables become table nodes, task lists become taskList, alerts become panel nodes, fenced code becomes codeBlock and <details> blocks become expand. Most elements convert one to one. The edge cases are tables inside alerts, Mermaid diagrams, images and table alignment.

What does GitHub-flavored Markdown become in Confluence?

GitHub-flavored Markdown (GFM) is the dialect GitHub renders: CommonMark plus extensions such as tables, task lists and strikethrough, along with GitHub's alert callouts. Confluence Cloud stores page content as ADF, a JSON tree of typed nodes, so an importer has to map every Markdown element to a node. This table shows how Folio for Confluence maps each element.

GitHub MarkdownADF nodeResult in ConfluenceBehavior to know
Headings # to ######heading (level 1 to 6)HeadingsA first H1 that matches the page title is removed, because Confluence already shows the title
Bold, italic, strikethroughText with strong, em or strike marksFormatted textNone
Inline codeText with the code markInline codeADF lets code combine only with link, so bold or italic inside code is dropped
Bullet and numbered listsbulletList, orderedListListsNesting is kept
Task lists - [ ]taskList, taskItemAction itemsState is TODO or DONE; no assignee
Tablestable, tableRow, tableHeader, tableCellTableFirst row becomes the header; alignment markers are dropped
Fenced codecodeBlock with a languageCode snippetLanguage must be one Prism supports, otherwise plain text
Alerts [!NOTE]panel with a panelTypePanelTables are placed just after the panel
<details> and <summary>expand with a titleExpandThe open attribute is not kept
BlockquoteblockquoteQuoteNone
Horizontal ruleruleDividerNone
ImagesNoneText such as [Image: alt]Folio does not convert images yet
Footnotes [^1]Text with the subsup mark, plus an orderedListSuperscript [1] and a numbered list at the endNumbered in order of first use; the markers are not clickable
HTML commentsNoneDroppedThe text is not kept

The sections below cover the elements with edge cases.

How do GitHub tables convert to Confluence tables?

A GFM table becomes an ADF table of tableRow nodes. The first row turns into tableHeader cells and every later row into tableCell nodes. This Markdown:

| Plan | Seats | Notes          |
|:-----|------:|----------------|
| Free | 10    | Community      |
| Team | 50    | Priority `chat` |

becomes a Confluence table with a header row (Plan, Seats, Notes) and two body rows. A few rules apply:

  • Every row is padded to the width of the widest row, so a short row never breaks the table.
  • Each cell holds one paragraph. Bold, italic, inline code, links and <br> line breaks work inside a cell. GFM cannot put lists or several paragraphs in a cell, so nothing is lost there.
  • An escaped pipe (\|) becomes a literal pipe character in the cell.
  • The alignment colons in the separator row (:---, ---:) are not carried over, so the importer sets no column alignment.

Keep long prose out of table cells. A wide table of sentences is hard to read in Confluence just as it is on GitHub.

How do GitHub alerts convert to Confluence panels?

A GitHub alert is a blockquote whose first line is a marker such as [!NOTE]. GitHub's syntax guide defines five types: NOTE, TIP, IMPORTANT, WARNING and CAUTION. Confluence has five preset panel types: Info, Note, Success, Warning and Error, which you insert with /panel (see Atlassian's guide to page elements). In ADF, a panel node carries a panelType attribute with the values info, note, warning, success and error.

The two sets do not line up exactly, so every converter has to choose a pairing. Folio uses this one:

GitHub alertADF panelTypeConfluence panel
[!NOTE]infoInfo
[!TIP]successSuccess
[!IMPORTANT]noteNote
[!WARNING]warningWarning
[!CAUTION]errorError

Other converters pair the types differently, so check the mapping if you compare tools. A few syntax details:

  • The marker must be on the first line of the blockquote. It is not case sensitive, so [!note] works.
  • An unknown marker such as [!CUSTOM] stays a plain blockquote, with the marker text visible.
  • An older bold-label quote such as > **Note** is an ordinary blockquote, not an alert.

The main edge case is what a panel can hold. The panel reference page lists paragraphs, headings and lists, and the full ADF JSON schema also accepts code blocks, task lists and dividers, but never tables. Since version 3.11.0, Folio keeps what the schema allows:

  • Fenced code blocks, task lists and horizontal rules stay inside the panel.
  • A table ends the panel. The table is placed directly after it, and any alert text after the table continues in a second panel of the same type.

GitHub itself advises against nesting alerts inside other elements. Keep an alert short, and put large tables after it, outside the quote.

How do task lists convert to Confluence action items?

A line starting with - [ ] becomes a taskItem with the state TODO, and - [x] becomes a taskItem with the state DONE. Consecutive task items sit in one taskList, and nested checkboxes stay nested. In Confluence they are action items, the same element you get by typing /action or [] followed by a space in the editor.

A list that mixes checkboxes and plain items cannot be a single ADF list, so Folio splits it into separate bullet and task lists in the original order. If you want one visual list, make every item a checkbox.

How do fenced code blocks convert, and which languages work?

A fenced block becomes a codeBlock node. Its optional language attribute must be a language that Prism supports, and ADF renders text or an unsupported value as plain monospaced text. Folio cleans the fence label before it sets the attribute:

  • Only the first word of the info string is used, so ts title="auth.ts" is read as ts.
  • Common aliases map to Prism names: ts to typescript, sh to bash, yml to yaml, py to python, js to javascript, html to xml.
  • Unknown languages, text and fences with no label are saved without a language and render as plain text.
  • A mermaid fence becomes a plain code block. Confluence shows the diagram source as text and does not draw it.

Inline code uses the ADF code mark, which can be combined only with a link mark. That is why **`code`** keeps the code styling and loses the bold.

How do details blocks convert to Confluence expand macros?

A <details> block becomes an ADF expand node, the same element as the /expand command in the Confluence editor. The text of <summary> becomes the expand title, and the title defaults to Details when there is no summary.

The body is read as Markdown. On GitHub, Markdown inside <details> only renders when there is a blank line after </summary> and before </details>, so this layout works in both places:

<details>
<summary>Rollback steps</summary>

1. Revert the deploy.
2. Clear the cache.

</details>

This produces an expand titled Rollback steps that contains a numbered list. Since version 3.11.0, Folio also renders the body as Markdown when the blank lines are missing, so **bold** and lists still convert even where GitHub would show them literally. Two more details:

  • The open attribute is not carried over, so you cannot mark an expand as open by default from Markdown.
  • Nested <details> blocks are flattened into the outer expand.

Which Markdown elements do not convert, or convert only partly?

  • Images. Folio does not fetch images. Each one becomes an italic placeholder such as [Image: architecture diagram], linked when the image URL is external.
  • Diagrams. Mermaid and similar fences become plain code blocks.
  • Footnotes. Markers become superscript [1] and the notes become a numbered list at the end of the page, but the markers do not link to the notes.
  • Raw HTML. Scripts, styles and comments are removed, and badges become linked text.
  • Alignment, nested details and tables in alerts. Alignment is dropped, nested details are flattened, and tables move just outside the alert, as described above.

Write for the subset that converts cleanly, then check the result. Folio converts to native ADF and runs on Confluence Cloud only.

How do you test conversion before a large import?

  1. Create one Markdown file that contains each element from the table above.
  2. Open Space apps → Folio for Confluence in a scratch space and drop the file on the Import tab. Review the preview and import it.
  3. Compare the Confluence page with this guide, and fix problems in the Markdown source, for example by moving a large table out of an alert.
  4. Re-import. Folio updates the same page in place, and the page history keeps the earlier version.

Fix issues in the source rather than on the Confluence page. A re-import writes the page body from the Markdown again, so hand edits are replaced, although they stay in the page history.

FAQ

Are imported checklists interactive, and do they appear in people's task lists?

They become Confluence action items that you can tick on the page. Folio creates them without an assignee or a due date. Atlassian says that items assigned to someone appear in that person's task list, so unassigned imported items stay on their page until you assign them.

What happens to Mermaid diagrams in Markdown?

A Mermaid fence becomes a plain code block, because Confluence's code block shows the text and does not draw a diagram. The source stays readable on the page. To keep a rendered diagram, attach an exported image by hand or use a Marketplace app that renders Mermaid.

What happens to HTML in a README, such as badges and centered images?

Folio sanitizes it. A linked badge becomes linked text such as [CI], scripts, styles and comments are removed, simple inline tags such as b, i, code, kbd and a keep their formatting or link, and any other HTML is reduced to its text.

What happens to a list that mixes checkboxes and plain bullets?

Folio splits it into separate lists in the original order: a bullet list, then a task list, then another bullet list. ADF keeps task items in their own list type, so they cannot be mixed into a bullet list.