mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-17 11:14:12 +01:00
spelling: markdown
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
@@ -12,7 +12,7 @@ describe('parsing a flow chart with markdown strings', function () {
|
|||||||
flow.parser.yy.clear();
|
flow.parser.yy.clear();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('mardown formatting in nodes and labels', function () {
|
it('markdown formatting in nodes and labels', function () {
|
||||||
const res = flow.parser.parse(`flowchart
|
const res = flow.parser.parse(`flowchart
|
||||||
A["\`The cat in **the** hat\`"]-- "\`The *bat* in the chat\`" -->B["The dog in the hog"] -- "The rat in the mat" -->C;`);
|
A["\`The cat in **the** hat\`"]-- "\`The *bat* in the chat\`" -->B["The dog in the hog"] -- "The rat in the mat" -->C;`);
|
||||||
|
|
||||||
@@ -37,7 +37,7 @@ A["\`The cat in **the** hat\`"]-- "\`The *bat* in the chat\`" -->B["The dog in t
|
|||||||
expect(edges[1].text).toBe('The rat in the mat');
|
expect(edges[1].text).toBe('The rat in the mat');
|
||||||
expect(edges[1].labelType).toBe('string');
|
expect(edges[1].labelType).toBe('string');
|
||||||
});
|
});
|
||||||
it('mardown formatting in subgraphs', function () {
|
it('markdown formatting in subgraphs', function () {
|
||||||
const res = flow.parser.parse(`flowchart LR
|
const res = flow.parser.parse(`flowchart LR
|
||||||
subgraph "One"
|
subgraph "One"
|
||||||
a("\`The **cat**
|
a("\`The **cat**
|
||||||
|
|||||||
Reference in New Issue
Block a user