mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-13 04:19:44 +02:00
fix: changed open and close markers as recommended
chnged from `()(` and `())` to `(((` and `)))`
This commit is contained in:
@@ -368,7 +368,7 @@ flowchart TD
|
||||
I{{red text}} -->|default style| J[/blue text/]
|
||||
K[\\ red text\\] -->|default style| L[/blue text\\]
|
||||
M[\\ red text/] -->|default style| N[blue text];
|
||||
O()(red text)() -->|default style| P()(blue text)();
|
||||
O(((red text))) -->|default style| P(((blue text)));
|
||||
linkStyle default color:Sienna;
|
||||
style A stroke:#ff0000,fill:#ffcccc,color:#ff0000;
|
||||
style B stroke:#0000ff,fill:#ccccff,color:#0000ff;
|
||||
|
@@ -1047,7 +1047,7 @@
|
||||
L1[/red text\] <-->|default style| L2[/blue text\]
|
||||
M1[\red text/] <-->|default style| M2[\blue text/]
|
||||
N1[red text] <-->|default style| N2[blue text]
|
||||
O1()(red text)() <-->|default style| O2()(blue text)()
|
||||
O1(((red text))) <-->|default style| O2(((blue text)))
|
||||
linkStyle default color:Sienna;
|
||||
style A1 stroke:#ff0000,fill:#ffcccc,color:#ff0000
|
||||
style B1 stroke:#ff0000,fill:#ffcccc,color:#ff0000
|
||||
|
@@ -145,7 +145,7 @@ flowchart TD
|
||||
|
||||
```mermaid-example
|
||||
flowchart TD
|
||||
id1()(This is the text in the circle)()
|
||||
id1(((This is the text in the circle)))
|
||||
```
|
||||
|
||||
## Links between nodes
|
||||
|
@@ -161,7 +161,7 @@ describe('[Singlenodes] when parsing', () => {
|
||||
|
||||
it('should handle a single double circle node', function () {
|
||||
// Silly but syntactically correct
|
||||
const res = flow.parser.parse('graph TD;a()(A)();');
|
||||
const res = flow.parser.parse('graph TD;a(((A)));');
|
||||
|
||||
const vert = flow.parser.yy.getVertices();
|
||||
const edges = flow.parser.yy.getEdges();
|
||||
@@ -172,7 +172,7 @@ describe('[Singlenodes] when parsing', () => {
|
||||
|
||||
it('should handle a single double circle node with whitespace after it', function () {
|
||||
// Silly but syntactically correct
|
||||
const res = flow.parser.parse('graph TD;a()(A)() ;');
|
||||
const res = flow.parser.parse('graph TD;a(((A))) ;');
|
||||
|
||||
const vert = flow.parser.yy.getVertices();
|
||||
const edges = flow.parser.yy.getEdges();
|
||||
@@ -183,7 +183,7 @@ describe('[Singlenodes] when parsing', () => {
|
||||
|
||||
it('should handle a single double circle node with html in it (SN3)', function () {
|
||||
// Silly but syntactically correct
|
||||
const res = flow.parser.parse('graph TD;a()(A <br> end)();');
|
||||
const res = flow.parser.parse('graph TD;a(((A <br> end)));');
|
||||
|
||||
const vert = flow.parser.yy.getVertices();
|
||||
const edges = flow.parser.yy.getEdges();
|
||||
|
@@ -121,8 +121,8 @@ that id.
|
||||
"[|" return 'VERTEX_WITH_PROPS_START';
|
||||
"[(" return 'CYLINDERSTART';
|
||||
")]" return 'CYLINDEREND';
|
||||
"()(" return 'DOUBLECIRCLESTART';
|
||||
")()" return 'DOUBLECIRCLEEND';
|
||||
"(((" return 'DOUBLECIRCLESTART';
|
||||
")))" return 'DOUBLECIRCLEEND';
|
||||
\- return 'MINUS';
|
||||
"." return 'DOT';
|
||||
[\_] return 'UNDERSCORE';
|
||||
|
Reference in New Issue
Block a user