When set to false, only user-declared namespaces render as flat boxes
using their full qualified name; auto-created intermediate ancestors
are elided and their children moved to the nearest explicit ancestor.
Defaults to true (existing nested behavior).
Adds explicit field to NamespaceNode, updates both v2 and v3
renderers, demos, docs, unit tests, and Cypress E2E snapshots.
Co-Authored-By: Claude Opus 4.6 (prompted with care by @M-a-c)
2026-04-17 13:39:40 -05:00
Mac CarterandClaude Opus 4.6 (prompted with care by @M-a-c)
Add square bracket label syntax for namespaces, matching the existing
class label pattern: namespace Auth["Authentication Service"] { }
The label replaces the displayed name while the id is used internally.
Closes#6018
Co-Authored-By: Claude Opus 4.6 (prompted with care by @M-a-c)
2026-04-11 00:15:32 -05:00
Mac CarterandClaude Opus 4.6 (prompted with care by @M-a-c)
Restore and properly implement nested namespaces, which regressed
between 11.3.0 and 11.4.x. Both dot notation (namespace A.B.C) and
syntactic nesting (namespace A { namespace B {} }) now create
hierarchical namespace clusters in the rendered diagram.
Closes#3384, #4618, #5487, #6085
Co-Authored-By: Claude Opus 4.6 (prompted with care by @M-a-c)
Mermaid diagrams that have YAML front-matter can now be indented in
HTML code, see commit:
5cfa9196 (fix: support parsing indented mmd YAML from HTML, 2022-11-27)
Some diagrams previously had a mix of tabs/spaces for indentation.
In order for `dedent` to work, these diagrams had to be converted to
using a consistent indentation.