Markdown in Confluence: paste, open a .md file, draw Mermaid
Markdown can go into Confluence in two main ways: use the free built-in editor to paste Markdown and convert it into native page content, or use an app when you want to keep the Markdown as Markdown. Confluence Cloud handles pasted Markdown fairly well, but Mermaid code blocks stay as plain code and there is no built-in .md file import.
Two ways at a glance
| What matters | Paste into the editor (built in, free) | Markdown + Mermaid element |
|---|---|---|
| Result | Native Confluence text | The Markdown drawn as one page section |
| Mermaid blocks | Stay as plain code | Drawn as diagrams |
| Open a .md file | No, copy and paste the text | Yes, or drop the file in |
| Confluence search | Finds the text | Does not find text inside the element |
| Edit later | Inline, like any page text | Edit the element and change the Markdown |
How does pasting Markdown into the Confluence editor work?
Pasting Markdown into the Confluence editor is the free built-in option in Confluence Cloud. Confluence converts common Markdown into native page formatting such as headings, lists, links, and basic code blocks, so the result can be edited inline like normal page content. Pasting Markdown is a good fit for short notes and docs that people will keep editing in Confluence. Mermaid fences are a limit here, because ```mermaid blocks stay as code instead of drawing a diagram. A whole README with many tables or repo-focused formatting may also need cleanup after paste.
Why do mermaid code blocks not draw in Confluence?
Mermaid code blocks do not draw in the standard Confluence editor because Confluence Cloud does not turn ```mermaid fences into diagrams on its own. Mermaid text pasted into a page becomes a plain code block, which is fine for raw source but not for readers who need the diagram. A Forge app such as Markdown + Mermaid for Confluence can draw Mermaid inside the Markdown block instead. The app supports Mermaid 12.3.0 and common diagram types such as flowcharts, sequence diagrams, Gantt, class, state, ER, mind maps, timelines, and pie charts.
How can I show a whole README or .md file in one block?
Showing a whole README or .md file in one block is useful when you want page output to stay close to the source file. Markdown + Mermaid for Confluence opens a full-screen editor from /Markdown, with source text on the left and live preview on the right. People can paste text from a repo, from ChatGPT or Claude, open a .md file from a computer, or drop a file into the text area. YAML front matter at the top is hidden, and saved output stays editable later by opening the element again.
When should I choose native conversion or keep Markdown?
Native conversion is better when Confluence search and normal inline page editing matter most. Markdown pasted into the standard editor becomes native Confluence content, so teams can edit sections directly and search can find the text as part of the page. Keeping Markdown is better when source fidelity matters, when people may want to copy the text back into a repo later, or when Mermaid diagrams must render from the same document. Keeping Markdown also helps when a README uses fenced code blocks, task lists, and repo-style structure that should stay grouped together.
How do I keep Markdown docs readable on a Confluence page?
Readable Markdown in Confluence starts with clear headings and modest formatting. Markdown + Mermaid for Confluence can show a contents box when a document has 3 or more headings, so heading structure matters for long docs such as runbooks and project plans. Short tables are usually easier to read than very wide tables, especially on smaller screens. Task lists work well for checklists, and fenced code blocks are clearer when each block stays focused on one snippet. External image links will show as links, so important visuals may need embedded data images or Mermaid diagrams.
Try it here
Last updated 17 November 2026.