Removing requirement to add ids for nodes with a shape

This commit is contained in:
Knut Sveidqvist
2022-09-05 14:53:01 +02:00
parent 8b4a08eef4
commit 8ad5f728c0
3 changed files with 36 additions and 29 deletions

View File

@@ -33,7 +33,6 @@
display: none;
}
.mermaid {
}
.mermaid svg {
border: 1px solid purple;
@@ -45,8 +44,8 @@
<body>
<pre class="mermaid" style="width: 50%">
mindmap
apa
bapa
[apa]
))bapa((
</pre>
<pre class="mermaid2" style="width: 50%">
flowchart TD
@@ -62,21 +61,14 @@ flowchart TD
end
end
</div>
<div class="mermaid2" style="width: 50%;">
flowchart TD
id
</div>
<pre class="mermaid2" style="width: 50%;">
</pre>
<pre class="mermaid2" style="width: 50%">
flowchart LR
a["<strong>Haiya</strong>"]===>b
</pre>
<div class="mermaid2" style="width: 50%;">
flowchart TD
A --> B
A --> C
B --> C
</pre>
</pre
>
<div class="mermaid2" style="width: 50%">flowchart TD A --> B A --> C B --> C</div>
<pre class="mermaid2" style="width: 50%">
flowchart TD
A([stadium shape test])
@@ -90,17 +82,12 @@ flowchart TD
classDef someclass fill:#f96;
class A someclass;
class C someclass;
</div>
<div class="mermaid2" style="width: 50%;">
sequenceDiagram
title: My Sequence Diagram Title
accTitle: My Acc Sequence Diagram
accDescr: My Sequence Diagram Description
Alice->>John: Hello John, how are you?
John-->>Alice: Great!
Alice-)John: See you later!
</pre>
<div class="mermaid2" style="width: 50%">
sequenceDiagram title: My Sequence Diagram Title accTitle: My Acc Sequence Diagram accDescr:
My Sequence Diagram Description Alice->>John: Hello John, how are you? John-->>Alice: Great!
Alice-)John: See you later!
</div>
<pre class="mermaid2" style="width: 50%">
graph TD
A -->|000| B