Importing Mermaid
Updated on October 22, 2026

If you already have a diagram written in Mermaid, you can bring it onto your canvas without redrawing it. The result is regular shapes and connectors you can move, edit and combine with the rest of your presentation.
What's supported
The importer accepts flowchart or graph diagrams with the TD, LR, BT and RL directions. Other Mermaid types (sequence, Gantt, ER, etc.) aren't supported.
The most common node shapes are preserved: rectangles [ ], ellipses ( ), circles (( )), diamonds { }, hexagons {{ }} and parallelograms [/ /]. Arrow labels, dashed lines and subgraphs are imported too.
How to import a diagram
- Open a presentation in the editor.
- Click Import Mermaid in the toolbar. On mobile, it's inside the More menu.
- Paste your code into the text area, or click Upload file to load an
.mmd. - Click Import.
The diagram appears in the center of the current view, with the nodes already laid out.
Example
flowchart TD
A[Start] --> B{Is there data?}
B -- Yes --> C[Process]
B -- No --> D[End]
C --> D
This code generates four nodes, four connectors and the "Yes" and "No" labels. You can also paste it inside a ```mermaid block: the importer strips the fences automatically.
What stays editable
- Each node becomes a shape with its text. You can change its shape, colors and size from the Text panel.
- Each arrow becomes a connector attached to its nodes: if you move a node, the arrow follows it.
- Arrow labels are small text boxes.
- Each subgraph becomes a frame with its title around its nodes.
FAQ
Why do I see "No nodes detected in the code"?
The code doesn't contain valid nodes or isn't a supported type. Check that the first line starts with flowchart or graph followed by TD, LR, BT or RL.
Does importing Mermaid use AI usage? No. Pasting or uploading code doesn't use anything. Only Generate with AI counts toward your plan's AI usage; see diagrams with AI.
Can I animate the diagram step by step? Yes. With Auto-build on, imported elements go into the sequence. Reorder or merge them from the Sequence editor.
Next steps
- Diagrams with AI: let the AI write the code for you.
- Shapes and connectors: edit the nodes and arrows.
- The timeline and steps: turn your diagram into a step-by-step explanation.