Frequently asked questions
›Is my diagram uploaded anywhere?
No. Mermaid renders the diagram in your browser. When you share a link, the diagram is compressed into the part of the URL after the #, which browsers never send to the server.
›Can I use these diagrams in GitHub?
Yes. GitHub, GitLab and many documentation tools render Mermaid natively. Put the code inside a fenced code block with the mermaid language in your README or pull request description.
›How do I export the diagram?
Use the SVG button for a vector file that stays sharp at any size, or PNG for a high-resolution image (rendered at 2x) to paste in slides or chats.
›Why does the preview show an error?
Mermaid syntax is strict about indentation, arrows and keywords. The error message tells you the line where parsing failed; the last valid diagram stays visible, faded, until you fix it.