FIG-001/ STREAMING

live streaming.

A Mermaid diagram drawn while its fence is still open. With renderOpenFences, each completed line reaches pele and the diagram redraws in the same frame — no waiting for the closing fence.

  • markedMermaid({ renderOpenFences: true }) emits a diagram token while the fence is open, built from complete lines only.
  • pele renders synchronously, so there is no async load between a finished line and the redraw.
  • MermaidRenderer keeps the last good diagram on screen while a line is half-written, and only shows an error after the fence closes.
↩ all examples
engine · pele mode · live running source
STREAM markdown
PREVIEW live
category · streaming
sheet · sheet 01 / 03
⟳ to re-run
FIG-002/ DIAGRAMS

diagram types.

State, gantt, pie, mindmap, and entity relationship diagrams in one editable document. Each type is a separate import, so only the ones you register are bundled.

  • createPeleEngine({ diagrams }) registers only the types you import from pele/diagrams/*.
  • Looking for timeline, sequence, class, and flowchart? They run on both engines in the Mermaid examples.
  • Setup, options, and engine scoping are covered in the pele guide.
↩ all examples
registered · 5 types mode · live running source
EDITOR markdown
PREVIEW pele

pele Diagram Types

State Diagram

Loading diagram...

Gantt Chart

Loading diagram...

Pie Chart

Loading diagram...

Mindmap

Loading diagram...

Entity Relationship Diagram

Loading diagram...
category · diagrams
sheet · sheet 02 / 03
⟳ to re-run
FIG-003/ THEMING

css variable themes.

pele diagrams take their colors from --pele-* CSS variables. Switch palettes and the same SVG restyles in place, without a re-render.

  • Set --pele-* variables on .pele or any parent element — no theme objects, no engine options.
  • Dark mode is a stylesheet concern: redefine the variables under your dark selector and every diagram follows.
↩ all examples
theme · css variables mode · live running source
THEME css
.pele {
    --pele-bg: #fffcf0;
    --pele-fg: #100f0f;
    --pele-muted: #6f6e69;
    --pele-line: #100f0f;
    --pele-surface: #f2f0e5;
    --pele-border: #cecdc3;
    --pele-accent: #205ea6;
}
PREVIEW paper
Loading diagram...
Loading diagram...
category · theming
sheet · sheet 03 / 03
⟳ to re-run

pele Diagram Examples