The canvas shows an error
Mermaid couldn’t read a line. The status bar at the bottom says 1 error, and a box under the code says Syntax error on line … with Mermaid’s message. The canvas keeps the last valid version until it’s fixed, and says Showing the last valid version, so nothing is lost.
- Choose Go to line … in the box to jump to the line.
- Fix it. Common causes are a missing arrow end (
-->), unbalanced brackets, or quotes inside a label: wrap the whole label in"…". - The status bar says Valid again, and the canvas redraws.
The line Mermaid names is where it gave up, so the mistake can be just above it. If it says Drawing took too long or Drawing stopped responding instead, try again, and reload the page if it keeps happening. See Writing diagrams.