Migration

Moving Mermaid diagrams to Pele without losing meaning

A migration workflow for source, colors, labels and interactions, with a small example you can adapt.

Pele Editor guide · Published

Keep a baseline you can compare

Save the original source and an image from the current destination before changing a diagram. Record the host and renderer version when it is available. Pick examples that represent your actual documents: a compact flowchart, a long-label diagram, a nested group and a dense sequence diagram. A single simple example cannot reveal every layout dependency.

Move the source before moving the styling

Paste the diagram text into Pele Editor without Markdown fences. Begin with the graph structure and default palette. Check every node, relationship and branch label against the original. The example below makes its decision paths explicit, so a layout change is easier to review than a diagram where meaning depends only on color.

flowchart TD
  Request[Receive request] --> Valid{Input valid?}
  Valid -->|Yes| Save[Save record]
  Valid -->|No| Explain[Return validation errors]
  Save --> Done[Confirm success]
YesNoReceive requestInput valid?Save recordReturn validation errorsConfirm success

Review the non-portable parts

Treat presentation and interactions as a separate pass. Pele does not apply Mermaid themeVariables as its palette; use Pele theme properties in a custom integration. Replace arbitrary HTML labels with readable text. JavaScript click callbacks do not transfer. External Mermaid diagram plugins also need an alternative. This editor disables diagram links and external images, so do not use its preview as a promise that those interactions survived.

Review the non-portable parts
Existing dependencyMigration action
A particular node positionReview meaning and spacing; preserve an image if placement matters
HTML-rich labelsRewrite as plain labels with supported text formatting
Mermaid theme colorsChoose an editor palette or configure Pele CSS properties
Callbacks or external pluginsDesign a replacement outside the portable diagram

Compare at the width readers will use

Open the result at a normal documentation width and again in a narrow panel. Watch long labels, crossings, isolated groups and arrows that become hard to follow. Split an overloaded diagram into a context view and a detailed view if necessary. Changing direction can improve readability, but it should not hide relationships or force readers to infer time from layout in a flowchart.

Keep the destination in the loop

If the final document lives in GitHub, Obsidian or another Markdown application, preview the source there as well. A successful Pele preview only establishes that Pele can render it. For a stable visual handoff, save an SVG or PNG alongside the source and name both files consistently. Update both when the underlying architecture or workflow changes.

Try it in the editor ↗