From 8d9cb09261856430631935c33d0655ba14eeb739 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Celil=20Bu=C4=9Fra=20Karacan?= <49951195+cbugk@users.noreply.github.com> Date: Fri, 19 Apr 2024 16:39:03 +0300 Subject: [PATCH] Update stateDiagram.md Add renamed composite as an example of composites with spaced names. --- packages/mermaid/src/docs/syntax/stateDiagram.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/mermaid/src/docs/syntax/stateDiagram.md b/packages/mermaid/src/docs/syntax/stateDiagram.md index d2b7282e4..a5eff29bf 100644 --- a/packages/mermaid/src/docs/syntax/stateDiagram.md +++ b/packages/mermaid/src/docs/syntax/stateDiagram.md @@ -107,6 +107,14 @@ stateDiagram-v2 [*] --> second second --> [*] } + + [*] --> NamedComposite + NamedComposite: Another Composite + state NamedComposite { + [*] --> namedSimple + namedSimple --> [*] + namedSimple: Another simple + } ``` You can do this in several layers: