Data Migration
This article covers how to move macro content between pages, export diagrams and equations as images, what happens when the app is uninstalled, and how to migrate from other diagram tools.
Copying Macro Content Between Pages
Using the Copy Source Button
The easiest way to reuse macro content on another page:
- View the published page containing the macro you want to copy
- Hover over the rendered macro to reveal the hover toolbar
- Click Copy Source - the raw Mermaid code or LaTeX is copied to your clipboard
- Navigate to the destination page and open it in edit mode
- Insert the appropriate macro type (Diagrams, LaTeX Block, or LaTeX Inline)
- Paste the copied source into the Source panel
- Confirm it renders correctly in the Preview panel
- Click Save, then Publish the page
Copying an Entire Page
Because macro content is stored in the Confluence page storage format:
- Using Confluence's Copy page feature copies all macros and their content along with the page
- The copied page will have the same diagrams and equations as the original
- Each macro can then be independently edited on the copied page
Exporting Diagrams as PNG or SVG
From the Fullscreen Viewer
- View the published page
- Hover over a Diagrams macro and click Fullscreen
- In the fullscreen overlay, right-click on the rendered diagram
- Select Save image as... (PNG) or Copy image to use it elsewhere
For LaTeX Equations
- View the published page
- Hover over a LaTeX Block macro and click Fullscreen
- Right-click the rendered equation and save as image
Tip: For higher-quality exports, zoom in before capturing the image. The rendered output is vector-based (SVG internally) so it scales cleanly.
What Happens When the App Is Uninstalled
When a Confluence administrator uninstalls LaTeX Formulas & Diagrams:
| Scenario | What Happens |
|---|---|
| Macro content on pages | The raw Mermaid/LaTeX source remains in the page storage format - it is not deleted |
| Rendering | Macros will no longer render - the macro body will appear as an unrecognized macro placeholder |
| Re-installing the app | If the app is reinstalled, all macros resume rendering from the saved source content |
| Content recovery | The source can be recovered via Confluence's page history or via the Confluence REST API |
Key point: Uninstalling the app does not destroy your content. Your Mermaid and LaTeX source remains in the page. Reinstalling the app restores full rendering.
Migrating from Other Diagram Tools
Migrating from PlantUML
PlantUML and Mermaid are different diagramming languages. Direct syntax conversion is not automatic.
| PlantUML Diagram | Mermaid Equivalent | Migration Notes |
|---|---|---|
@startuml ... @enduml sequence | sequenceDiagram | Arrow syntax differs: -> vs ->>; participant declaration is optional in Mermaid |
@startuml ... @enduml class | classDiagram | Attribute and method syntax differs |
@startuml ... @enduml activity | flowchart TD | PlantUML activity maps to Mermaid flowchart with decision nodes |
@startuml ... @enduml component | block-beta or flowchart | No direct equivalent - use flowchart nodes for components |
Migration approach for PlantUML:
- Export or copy the PlantUML source from your existing tool
- Identify the diagram type
- Rewrite using the equivalent Mermaid syntax (use the Samples dropdown for starting templates)
- Test in the Diagrams macro editor Preview panel before saving
Comparison with draw.io (diagrams.net)
| Feature | LaTeX Formulas & Diagrams | draw.io for Confluence |
|---|---|---|
| Diagram input method | Code-based (Mermaid text) | GUI drag-and-drop |
| Math/formula support | Native | Limited (via text boxes) |
| Version history | Via Confluence page history | Via Confluence page history |
| Export | PNG via browser save | PNG, SVG, PDF |
| Best for | Code-defined precise diagrams, math-heavy docs | Visual freeform diagrams |
When to choose LaTeX Formulas & Diagrams over draw.io:
- Your team is comfortable writing Mermaid or LaTeX
- You need exact, reproducible diagrams from code (version-controlled source)
- You need mathematical formulas alongside diagrams
- You prefer text-based authoring that can be diffed in page history