Mermaid CLI 12 keeps the Mermaid 11 diagram layout
Mermaid 12 changed three flowchart defaults: the ELK layout engine replaced dagre, the neo look (drop shadows, orthogonal edges) replaced classic, and the label wrapping width fell from 200px to 120px. Repositories that moved to @mermaid-js/mermaid-cli 12 on 2026-10-06 regenerated their diagrams with those defaults, which split labels mid-word (for example BITWARDEN_SES / SION_PERSIST), made diagrams narrower and taller, and added light shadows on dark backgrounds.
-
Skill
diagram-svg-output: new section Mermaid CLI 12 renderer settings with the config to pin (layout: dagre,look: classic,themeset explicitly,htmlLabels: false,flowchart.wrappingWidth: 200),puppeteeras a direct devDependency, a generator check for the pinned keys, and a light/dark old-versus-new render comparison after Mermaid major bumps. -
docs/mermaid-config.jsonpins the three settings, andscripts/generate-themed-diagrams.mjsrefuses a config without them. -
rules-geographyandagent-cli-auth-flow(adaptive and host SVGs) are regenerated and match their Mermaid 11 layout again.