1.13.0
- Series colors follow Mermaid's palette theme variables:
pie1–pie8in pie charts,git0–git7in git graphs,cScale0–cScale7in timelines, radar charts and treemaps,cScale1–cScale8in mindmaps,venn1–venn8in Venn diagrams, and the first eight colors ofxyChart.plotColorPalettein 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-lightand--pele-fg-on-darkcontrasts 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
quadrantChartsettingstitleFontSize,quadrantLabelFontSize,xAxisLabelFontSize,yAxisLabelFontSizeandpointLabelFontSizeset text sizes, as in Mermaid. Point labels wrap at the plot width instead of 200 pixels. #108 #109
1.12.0
- Labels on fills a diagram defines with
style,classDef, or a sequencerectorboxuse whichever of--pele-fg-on-lightand--pele-fg-on-darkcontrasts 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
%20and%26are preserved in links.
1.11.0
- The new
monospaceoption lists the parts of a diagram to draw in the monospace font, sized to fit: classmembers, ERattributes, TreeViewfilesand sequencemessages. #12 #96 - Sequence: with
maxWidthset, 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
1.10.1
- Flowchart subgraphs and agentflow flows ignore their own
directionwhen 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-theoryandtext-booksin Venn,circles,trueNorthandtitlesin Radar, and names liketitlesin architecture, git, event modeling, TreeView, treemap and railroad diagrams. These names used to cause syntax errors. TreeView and railroad could drop the keyword instead, sotitle.txtappeared 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
1.10.0
-
%%comments no longer remove the character before it, soset A%% notekeepsAandA->>B:%% notekeeps 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 -
titlewith 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
prefixandsuffixare 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
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
hrefif that check fails. Theirhrefanddata-hrefare unchanged otherwise. - Event modeling: long data, note and specification lines now wrap without splitting emoji.
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 asList. #31 - Labels wrap at zero-width spaces and soft hyphens (
­), and wrapped lines sit closer together. #44 - Class diagrams wrap separate groups of classes into rows to fit
maxWidthinstead 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.curvefor 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-cursorto set the cursor on zoom buttons.
1.8.0
- Added a
mathrender 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:MathResolverandMathMarkup. #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<, 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
1.7.0
- Added
mermaidTypetorender()results,parse()models andPeleErrorthat returns Mermaid's type such asflowchart-v2forgraph TDorclassDiagramforclassDiagram. #30 -
parse()now returnsParsedDiagramModel, aDiagramModelwithmermaidType.render()still accepts anyDiagramModel. - Chinese and Japanese labels now wrap between characters, so long labels no longer stretch diagrams. Closing punctuation stays on the line it follows. #16
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.sourceandMounted.error.Mounted.resultis nowundefineduntil a diagram renders successfully. -
onErrornow 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-errorto 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.