Docs / Scientific diagrams

How to Edit a Mermaid Diagram in Studio

Use Miss Formula’s AI Diagram Generator

Choose Mermaid mode in AI Diagram Generator and open its editor. Paste code into the source pane, verify the rendered result, and download the Mermaid source.

What to verify
Check whether your change resolves in the preview and whether each branch ends at the intended node. Keep a known working copy while fixing syntax.
Who it helps
Researchers and coauthors maintaining a diagram as text in project notes or a shared repository.

Try it free

  • Get free starter credits when you first sign in.
  • Earn more free credits by inviting friends or completing simple tasks.
  • Full-access plans start at $8.30/month.
Try AI Diagram Generator for Free

Add an outcome branch to an existing Mermaid flowchart

Use this working source to practice editing without generating a new diagram. The first two lines define the direction and the starting decision.

Example source

flowchart TD
                    A[Check data] --> B{Any missing values?}
                    B -->|Yes| C[Record missing values]
                    B -->|No| D[Run analysis]

To join both paths at the analysis step, add C --> D on its own line. To rename the analysis step, change the text inside D[Run analysis] and keep its node ID D.

See the Mermaid flowchart syntax reference for nodes, edge labels, and direction.

1. Open the Mermaid editor

Select Mermaid inside AI Diagram Generator. In the edit workspace, select Open Diagram Editor. For a generated diagram, select Edit Online. Paste the sample or the contents of your .mmd file in the source pane.

2. Change one relationship at a time

Add the connector from C to D. If the preview fails, undo that line and check the arrow syntax, brackets, and node IDs.

3. Inspect the rendered branches

Follow both Yes and No to the intended nodes. If a very wide diagram is hard to read, try top-to-bottom layout with TD.

4. Download the source

Select Download .mmd and reopen the saved file to verify it includes the last edit. Keep your source with any image you share.

See how to create a flowchart using the Standard editor, or compare the modes on the AI Diagram Generator page.

Why Choose Miss Formula's AI Diagram Generator?

Open the Mermaid editor

Select Mermaid inside AI Diagram Generator. In the edit workspace, select Open Diagram Editor. For a generated diagram, select Edit Online. Paste the sample or the contents of your .mmd file in the source pane.

Inspect the rendered branches

Follow both Yes and No to the intended nodes. If a very wide diagram is hard to read, try top-to-bottom layout with TD.

Choose an editor that fits the task

Use Standard, Hand-drawn, or Mermaid depending on the input and the source you need to maintain.

Revise labels and branches

Update the draft in the appropriate editor after checking its relationships.

Save source for changes

Keep an editable version so a coauthor can update it later.

Keep a review copy

Use an export for sharing after checking readability and connections.

We care about your privacy

Any data you upload is processed only temporarily. We do not use your data to train our own models.

Academic workflows worldwide

Used across academic institutions

Students, researchers, and educators use Miss Formula to prepare figures, check references, and work with equations for papers, presentations, and teaching materials.

Princeton University logo University of Chicago logo Duke University logo University of Cape Town logo University of Edinburgh logo The Chinese University of Hong Kong logo Universidad de los Andes logo
and 200+ other
universities & institutions

What academic users value

Feedback summaries from Miss Formula users about their work across the platform.

Michael started with a reference figure and opened the generated version in his browser. The layout was already in place, so he could focus on correcting a few labels before moving on with his work.

Michael B. PhD candidate

Carlos brought his figure into PowerPoint for a presentation. Because the shapes and text were still editable, he could change the colors on the slide and keep the panel he had already put together.

Carlos Martínez Undergraduate student

YunKai uses the converter on dense mechanism diagrams that go through several rounds of revision. Keeping arrows, labels, and grouped elements editable makes those revisions easier when parts of the diagram need to change.

YunKai Zhao Research assistant

Anna starts with a description, generates a figure, and edits it in the browser before adding it to her thesis or slides. That sequence fits the way she already prepares figures for her academic work.

Anna S. Master's student

James used AI Source Finder to search for papers from a draft written in Chinese. The English queries were better than the keywords he would have entered himself, and he also runs Citation Checker before submitting.

James K. Research assistant

Maya used AI Source Finder to add references to a paragraph in her literature review. She then converted the equations in Miss Formula, which let her handle both steps in the same place.

Maya C. Master's student

Frequently Asked Questions

Questions about this workflow.

Why did the diagram fail to render after my edit?

Inspect the last edited line, close any open brackets, and confirm that Mermaid syntax is plain text. Paste without Markdown fence markers.

Will renaming a node label break arrows?

Keep the node ID unchanged when modifying only the visible label.

Which file should my coauthor edit?

Send the .mmd source for revisions. Share an image export separately for viewing.

Continue in Miss Formula Studio

Open the Mermaid editor, add a branch in code, check the rendered diagram, and keep an editable .mmd file.

Open AI Diagram Generator