Comparison

Pele vs Mermaid.js: what changes, what stays portable

Compare diagram syntax, layout, themes and APIs before choosing a renderer for your documents or application.

Pele Editor guide · Published

One source, two rendering implementations

Mermaid source describes a diagram in text. Mermaid.js is a rendering implementation; Pele is another library that reads Mermaid syntax and produces SVG. Pele Editor is the website around the Pele library. Keeping these three layers separate helps explain why the same source can work in two applications while looking different. A renderer change does not require inventing a new file format.

flowchart LR
  Draft[Write source] --> Review{Review diagram}
  Review -->|Revise| Draft
  Review -->|Approve| Publish[Export for readers]
ReviseApproveWrite sourceReview diagramExport for readers

Choose by the behavior you need

Pele targets the built-in diagram types in Mermaid 12.1.0. That is a syntax target, not a promise to reproduce Mermaid.js output. Use the comparison below to identify the parts of a document that need attention when switching.

Choose by the behavior you need
ConcernPeleMermaid.js
LayoutIndependent layout and spacingLayout controlled by Mermaid and its configuration
ColorsCSS custom propertiesThemes and themeVariables
Rendering APISynchronous render; optional lazy APIAsynchronous mermaid.render
ExtensionsBuilt-in diagram types; external plugins excludedAdditional diagram integrations depend on the host

Preserve meaning before appearance

When comparing output, first check participant names, edge direction, branch labels and grouping. Then examine line wrapping, crossings and the space available in the final document. A wider node or a different bend in an arrow is not necessarily a semantic error. A missing decision branch is. If a document relies on an exact arrangement, distribute a rendered image alongside its editable source.

Keep application support separate

A Markdown application that accepts a mermaid fence chooses its own rendering engine and version. Pasting code from this editor does not install Pele in that application. For a shared workflow, choose syntax supported by every destination and preview the source there. For a fixed presentation, export SVG or PNG. Neither approach makes one engine universally preferable; the choice depends on whether editable text or a stable visual result matters more.

Try it in the editor ↗