fix: changed open and close markers as recommended

chnged from `()(` and `())` to `(((` and `)))`
This commit is contained in:
Guy Adler
2022-02-17 17:22:38 +01:00
parent d8c7a2894e
commit 04454cece0
5 changed files with 8 additions and 8 deletions

View File

@@ -368,7 +368,7 @@ flowchart TD
I{{red text}} -->|default style| J[/blue text/] I{{red text}} -->|default style| J[/blue text/]
K[\\ red text\\] -->|default style| L[/blue text\\] K[\\ red text\\] -->|default style| L[/blue text\\]
M[\\ red text/] -->|default style| N[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; linkStyle default color:Sienna;
style A stroke:#ff0000,fill:#ffcccc,color:#ff0000; style A stroke:#ff0000,fill:#ffcccc,color:#ff0000;
style B stroke:#0000ff,fill:#ccccff,color:#0000ff; style B stroke:#0000ff,fill:#ccccff,color:#0000ff;

View File

@@ -1047,7 +1047,7 @@
L1[/red text\] <-->|default style| L2[/blue text\] L1[/red text\] <-->|default style| L2[/blue text\]
M1[\red text/] <-->|default style| M2[\blue text/] M1[\red text/] <-->|default style| M2[\blue text/]
N1[red text] <-->|default style| N2[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; linkStyle default color:Sienna;
style A1 stroke:#ff0000,fill:#ffcccc,color:#ff0000 style A1 stroke:#ff0000,fill:#ffcccc,color:#ff0000
style B1 stroke:#ff0000,fill:#ffcccc,color:#ff0000 style B1 stroke:#ff0000,fill:#ffcccc,color:#ff0000

View File

@@ -145,7 +145,7 @@ flowchart TD
```mermaid-example ```mermaid-example
flowchart TD flowchart TD
id1()(This is the text in the circle)() id1(((This is the text in the circle)))
``` ```
## Links between nodes ## Links between nodes

View File

@@ -161,7 +161,7 @@ describe('[Singlenodes] when parsing', () => {
it('should handle a single double circle node', function () { it('should handle a single double circle node', function () {
// Silly but syntactically correct // 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 vert = flow.parser.yy.getVertices();
const edges = flow.parser.yy.getEdges(); 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 () { it('should handle a single double circle node with whitespace after it', function () {
// Silly but syntactically correct // 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 vert = flow.parser.yy.getVertices();
const edges = flow.parser.yy.getEdges(); 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 () { it('should handle a single double circle node with html in it (SN3)', function () {
// Silly but syntactically correct // 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 vert = flow.parser.yy.getVertices();
const edges = flow.parser.yy.getEdges(); const edges = flow.parser.yy.getEdges();

View File

@@ -121,8 +121,8 @@ that id.
"[|" return 'VERTEX_WITH_PROPS_START'; "[|" return 'VERTEX_WITH_PROPS_START';
"[(" return 'CYLINDERSTART'; "[(" return 'CYLINDERSTART';
")]" return 'CYLINDEREND'; ")]" return 'CYLINDEREND';
"()(" return 'DOUBLECIRCLESTART'; "(((" return 'DOUBLECIRCLESTART';
")()" return 'DOUBLECIRCLEEND'; ")))" return 'DOUBLECIRCLEEND';
\- return 'MINUS'; \- return 'MINUS';
"." return 'DOT'; "." return 'DOT';
[\_] return 'UNDERSCORE'; [\_] return 'UNDERSCORE';