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]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.
| Concern | Pele | Mermaid.js |
|---|---|---|
| Layout | Independent layout and spacing | Layout controlled by Mermaid and its configuration |
| Colors | CSS custom properties | Themes and themeVariables |
| Rendering API | Synchronous render; optional lazy API | Asynchronous mermaid.render |
| Extensions | Built-in diagram types; external plugins excluded | Additional 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.