← All updates
Cleaner labels across Mermaid diagrams
Labels across Mermaid state diagrams, gitGraphs, quadrant charts, radar charts, and kanban boards now stay readable and in bounds instead of overlapping lines or getting clipped.
Tags: Mermaid, Markdown, Diagrams
We tightened up label placement across five Mermaid diagram types so dense diagrams stay legible in print and PDF:
- State diagrams. Transition labels now sit directly on their arrows with a clean break in the line (matching flowcharts), and
<<fork>>,<<join>>, and<<choice>>states display their names beside the bar or diamond instead of drawing anonymous shapes. - GitGraph branches. Branch names now run vertically along their own lanes instead of horizontally across neighbouring lanes, so longer names like
feature/checkout-redesignnever collide. - Quadrant charts. Point labels near the edges of the plot flip or shift inwards automatically so they stay inside the chart instead of running off the side.
- Radar charts. The chart widens automatically to fit longer axis labels at the left and right edges, rather than clipping them.
- Kanban cards. Priority badges (
High,Low, etc.) now sit cleanly inside the card corner instead of overlapping the card border, and very long priority labels truncate neatly.
All of these apply automatically everywhere makesPDF renders Mermaid - Markdown API, Obsidian canvas boards, the CLI, and editor plugins. Re-render any existing diagram to pick up the cleaner layout.