obsidianmd/pele
 Watch   
 Star   
 Fork   
25 days ago
pele

1.13.0

  • Series colors follow Mermaid's palette theme variables: pie1–pie8 in pie charts, git0–git7 in git graphs, cScale0–cScale7 in timelines, radar charts and treemaps, cScale1–cScale8 in mindmaps, venn1–venn8 in Venn diagrams, and the first eight colors of xyChart.plotColorPalette in XY charts. Shorter Venn and XY palettes repeat. Values that aren't colors keep the theme's color. #55 #98
  • Labels on palette colors in pie charts, git graphs, timelines and treemaps use whichever of --pele-fg-on-light and --pele-fg-on-dark contrasts more.
  • Edges that cross a subgraph's border bend less near the nodes they meet, and more edges come out straight. #97
  • Unlinked nodes in a subgraph stay lined up when an edge from outside enters one of them, instead of that node dropping a rank.
  • Block: labels in blocks that span several columns use the extra width to fit on fewer lines. #106 #107
  • Quadrant: the quadrantChart settings titleFontSize, quadrantLabelFontSize, xAxisLabelFontSize, yAxisLabelFontSize and pointLabelFontSize set text sizes, as in Mermaid. Point labels wrap at the plot width instead of 200 pixels. #108 #109
29 days ago
pele

1.12.0

  • Labels on fills a diagram defines with style, classDef, or a sequence rect or box use whichever of --pele-fg-on-light and --pele-fg-on-dark contrasts more with the fill, so they stay readable in dark themes. Edges and arrows on those fills stay readable too. #29
  • Custom fills on subgraphs, composite states, block composites, ER subgraphs and use case boundaries render at full opacity instead of half opacity. #29
  • Percent escapes such as %20 and %26 are preserved in links.
29 days ago
pele

1.11.0

  • The new monospace option lists the parts of a diagram to draw in the monospace font, sized to fit: class members, ER attributes, TreeView files and sequence messages. #12 #96
  • Sequence: with maxWidth set, long messages use the spare width when that fits them on fewer lines. #18 #88
  • Treemap: all nodes appear, including boxes in sections too small for their header. Labels fit at the font size their class sets. Tooltips show a box's full name when its label is cut short, and its section's name when the section header is hidden. Crowded treemaps use tighter spacing. #91
  • Block: labels on edges between the same two blocks stack along the edge instead of overlapping. When they don't fit, the gap between the blocks grows. #92
  • Zoom: the first click after a pinch or a long touch pan is no longer ignored. #49
29 days ago
pele

1.10.1

  • Flowchart subgraphs and agentflow flows ignore their own direction when their nodes link to nodes outside them. They use their parent's direction, as in Mermaid. #82
  • Diagrams narrow to leave room for the zoom buttons when the buttons would cover their text. #53
  • Names that start with a keyword are read in full: set-theory and text-books in Venn, circles, trueNorth and titles in Radar, and names like titles in architecture, git, event modeling, TreeView, treemap and railroad diagrams. These names used to cause syntax errors. TreeView and railroad could drop the keyword instead, so title.txt appeared as .txt. #65 #62
  • Errors at the end of the input point just after the last line with content, instead of one line past the end or after trailing comments and blank lines. #61
  • Sankey: blanks at the start and end of each row are ignored. #58
  • Quadrant: empty quadrant labels no longer block point labels from their preferred position. #57
2026-10-25 02:48:57
pele

1.10.0

  • %% comments no longer remove the character before it, so set A%% note keeps A and A->>B:%% note keeps the :. This applies to Venn, sequence, XY chart, quadrant, gantt, journey and timeline diagrams. A line that worked only because a comment removed a stray : or , is now a syntax error. #64
  • title with nothing after it on its line sets no title, instead of taking the next line as the title and dropping it. This applies to Venn, sequence, gantt, C4, journey and timeline diagrams. #66
  • Error messages show entity codes as written, such as #35;x, instead of internal placeholders. Lines and columns count the source as written, including front matter, comments, directives and blank lines. #63 #67 #73
  • Sankey: a value that doesn't start with a number, such as abc, is a syntax error instead of an empty flow. 50% still reads as 50. #60
  • Sankey: entity codes in prefix and suffix are decoded in value labels, as in tooltips. #59
  • XY chart: explicit y bounds that both clamp to the same limit fall back to the data range instead of drawing NaN. #56
  • Radar: values near the largest double are drawn in proportion instead of at the center. #74
  • The edge-limit error now states only the limit. #52
2026-10-25 00:45:40
pele

1.9.1

  • Rendered SVG no longer contains U+FFFE, U+FFFF or unpaired surrogate halves, so it is always valid XML. #72
  • Style values that contain control characters, or other characters XML doesn't allow, are now ignored instead of written with those characters removed.
  • Links and images now strip U+FFFE, U+FFFF and unpaired surrogate halves before their scheme is checked, as they already did for control characters.
  • Internal links are checked against the note name as a browser reads it, and get no href if that check fails. Their href and data-href are unchanged otherwise.
  • Event modeling: long data, note and specification lines now wrap without splitting emoji.
2026-10-23 06:32:28
pele

1.9.0

  • Labels support more HTML tags: <sub> and <sup> for subscript and superscript, <code>, <kbd>, <samp> and <tt> in the monospace font, <u> and <ins> underlined, and <var>, <cite> and <dfn> in italics. #50 #27
  • Labels keep text that looks like a tag but isn't HTML, so List<T> no longer renders as List. #31
  • Labels wrap at zero-width spaces and soft hyphens (&shy;), and wrapped lines sit closer together. #44
  • Class diagrams wrap separate groups of classes into rows to fit maxWidth instead of shrinking. #23
  • Sankey links use a gradient from source to target color when the diagram has an idPrefix. Node names accept Unicode, and labels avoid neighboring columns and shrink in narrow or crowded charts. #9 #47
  • State diagrams use flowchart.curve for transitions, matching Mermaid. #21
  • C4 relation labels no longer cover the elements they connect, and only diagrams that start with a C4 keyword are detected as C4. #2 #22
  • Quadrant point labels keep clear of quadrant titles and the chart's edge. #38
  • mount() no longer causes "ResizeObserver loop" errors when a diagram is resized. #37
  • Added --pele-zoom-cursor to set the cursor on zoom buttons.
2026-10-21 02:53:03
pele

1.8.0

  • Added a math render option for typesetting $$...$$ labels. Pele doesn't include a typesetter, so hosts must supply a resolver that returns SVG, or MathML/HTML, and its size. Labels show the TeX source when no resolver is given. Math works in the same diagram types as Mermaid 12.1: flowchart, swimlane, sequence, state, class, ER, mindmap, kanban, block, requirement and use case. Exported types: MathResolver and MathMarkup. #36
  • Diagrams with subgraphs now have fewer edge crossings. Edges between groups, and edges from several groups into one node, are ordered using the layout of the whole drawing. #3
  • HTML bold and italic now continue across <br> line breaks, so <b>First<br/>Second</b> is bold on both lines. #39
  • Entity codes now accept HTML5 aliases such as #lcub; and #verbar;. #41
  • Each entity code is now decoded only once, so #amp;lt; renders as &lt;, matching Mermaid. #42
  • Sequence: a message to self with a label taller than its loop no longer overlaps the next message. #10
  • Timeline: in top-to-bottom timelines, the line from a period to its first event is now straight when the two boxes differ in height. #11
2026-10-20 02:17:56
pele

1.7.0

  • Added mermaidType to render() results, parse() models and PeleError that returns Mermaid's type such as flowchart-v2 for graph TD or classDiagram for classDiagram. #30
  • parse() now returns ParsedDiagramModel, a DiagramModel with mermaidType. render() still accepts any DiagramModel.
  • Chinese and Japanese labels now wrap between characters, so long labels no longer stretch diagrams. Closing punctuation stays on the line it follows. #16
2026-10-17 21:41:27
pele

1.6.0

  • mount() now displays parsing and rendering errors in the diagram container. Invalid updates keep the last successful drawing dimmed, with the error shown along its bottom edge.
  • Added Mounted.source and Mounted.error. Mounted.result is now undefined until a diagram renders successfully.
  • onError now handles initial rendering failures and failed updates, in addition to automatic redraw failures.
  • Mounted diagrams now receive unique SVG IDs by default, preventing conflicts between diagrams on the same page.
  • Added --pele-error to customize the error text color.

API change: Parsing and rendering failures from mount() and update() are displayed in place instead of thrown. Use onError or Mounted.error to handle them.