Atlassian Marketplace
Mermaid Diagrams & Export for Confluence
Mermaid diagrams drawn sharp at full width, zoomable, in dark mode, and kept as pictures in exports.
What it does
- A diagram macro. Write a diagram as Mermaid text; the page shows the drawing.
- Enlarge. Open a diagram over the whole window to zoom and move, and download it as SVG or PNG.
- Exports. A page exported to PDF or Word holds the diagram as a picture.
Adding a diagram
- Edit a page and type
/mermaid, then choose Mermaid diagram. - The editor opens. Write the diagram on the left, or pick one of the examples under Start from an example and change it.
- The right side shows the drawing as you type. If the text does not parse, the last drawing stays, dimmed, and the reason is shown beneath it.
- Choose Save diagram, or press Ctrl or ⌘ + S.
To change a diagram later, edit the page, select the diagram and choose the pencil.
Reading a diagram
A diagram is drawn at the width of the page's column and follows your theme, light or dark. Point at it and choose Enlarge to open it over the whole window. There:
- + and −, the mouse wheel, or the plus and minus keys zoom;
- dragging or the arrow keys move it;
- Fit, or the zero key, shows all of it again;
- SVG and PNG download it.
Exporting a page
When a diagram is saved, its picture is attached to the page under a
name beginning with diagram-. Exporting the page to PDF or Word puts
that picture where the diagram stands. The picture is drawn on white,
in the light theme, at twice its shown size.
If the picture could not be attached, for example because you may not add attachments to the page, the editor says so and offers to save without it. The page then shows the diagram as always, and an export shows the diagram's text.
Do not delete the diagram- attachments of a page whose diagrams you
want in exports. Saving a diagram again makes its picture anew.
Searching
Search finds a page by the words in its diagrams: the text of a diagram is stored in the page, not with us.
Limits
- A copied page's diagrams are exported as pictures only after each has been saved once in the copy.
- Mermaid runs at its strictest setting. A diagram cannot carry script, and links inside a diagram are not followed.
Price
Free for sites of up to 10 users. Above that it is priced per user and billed by Atlassian with your other apps, after a 30 day trial. If a licence lapses, nothing you made is hidden: what is on your pages stays shown, and only making and changing are turned off.
Your data
Diagrams are drawn in your browser, inside Confluence. The app has no server of ours behind it and stores nothing; when a page is exported, Atlassian runs the app once per diagram to hand over its picture. See the privacy policy.
Help
Write to support@sigfrid.systems. Say what you did and what you saw; a diagram's text helps most.
Questions
What does Mermaid Diagrams & Export cost?
It is free for sites of up to 10 users. From 11 to 100 users it is 0.60 USD a user a month, less at each larger tier, and Atlassian bills it with your other apps. Atlassian gives every paid app a 30-day trial. There is no vendor account to create and no limit on the number of diagrams.
Does the diagram's text leave Confluence?
No. Diagrams are drawn in the reader's browser, inside Confluence, by the Mermaid library bundled with the app. The text is stored in the page, not with us: the app has no server of ours behind it and stores nothing. When a page is exported, Atlassian runs the app once per diagram to hand over its picture, and that step calls nothing else.
What permissions does it ask for, and why?
One scope, write:confluence-file, to attach a diagram's picture to
its page when you save it, so that PDF and Word exports can show the
diagram. It also asks Confluence to allow inline styles in its frame,
because a drawn Mermaid diagram carries its colors as styles inside its
own SVG.
What happens if our license lapses?
Every diagram already on a page is still drawn and still exported as a picture. Only saving is turned off: the editor says that the license has lapsed, and Save diagram stays off until it is renewed.
Does it work in dark mode?
Yes. A diagram is drawn in the reader's theme, light or dark. The picture attached for exports is always drawn on white, in the light theme.
Is there a version for Confluence Data Center or Server?
No. The app is built on Atlassian Forge and runs on Confluence Cloud only.
Why does my diagram show as text instead of a drawing?
The text does not parse as Mermaid. The page shows the text with the reason beneath it, starting "This diagram could not be drawn". Edit the diagram: in the editor, the last good drawing stays, dimmed, while the text does not parse, and the reason is shown under it, so you can see when your fix works.
Why does the PDF or Word export show the diagram's code?
The export uses the picture attached when the diagram was saved. If there is none, the export shows the text instead. Check that:
- the diagram was saved after it was added or changed;
- the page still has its
diagram-attachments; - the page is not a copy: a copied page's diagrams are exported as pictures only after each one has been saved once in the copy.
Saving the diagram again makes its picture anew.
Saving says the picture could not be attached. What do I do?
Read the reason the editor gives in brackets. One cause is that you may not add attachments to the page, which a space administrator can change. You can also choose Save without the picture. The page then shows the diagram as always, and an export shows its text.
Why does a link inside my diagram not open?
Mermaid runs at its strictest setting. A diagram cannot carry script, and links inside a diagram are not followed.
How do we get help?
Write to support from https://mart.sigfrid.systems/support/. Say what you did and what you saw, and copy any error message word for word. The diagram's text helps most.
Still stuck? Search every app's help in the help centre, or write to us.
More from Sigfrid Mart
-
Markdown Pages for Confluence
Import Markdown folders as page trees, edit pages as Markdown, and export pages to Markdown with their images.
-
OpenAPI Viewer for Confluence
OpenAPI and Swagger files as API documentation on a Confluence page, with nothing sent out.
-
Plain Text Mode for Jira
Edit Jira descriptions and comments as plain Markdown. Nothing rewrites what you type.
-
PlantUML & Graphviz Diagrams for Confluence
PlantUML, C4 and Graphviz diagrams drawn in your browser, with no rendering server.
-
Portal Request Details for Jira Service Management
Show customers custom fields, the assignee, SLA time left and linked requests on the portal.
-
Space Copy for Confluence
Copy a Confluence space, or into one, with its links leading to the copies.