mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-19 15:30:03 +02:00
#916 Docs for chaining of links
This commit is contained in:
@@ -239,6 +239,19 @@ graph LR
|
|||||||
A == text ==> B
|
A == text ==> B
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Chaining of links
|
||||||
|
|
||||||
|
It is possible declare many links in the same line as per below:
|
||||||
|
```
|
||||||
|
graph LR
|
||||||
|
A -- text --> B -- text2 --> C
|
||||||
|
```
|
||||||
|
```mermaid
|
||||||
|
graph LR
|
||||||
|
A -- text --> B -- text2 --> C
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
## Special characters that break syntax
|
## Special characters that break syntax
|
||||||
|
|
||||||
It is possible to put text within quotes in order to render more troublesome characters. As in the example below:
|
It is possible to put text within quotes in order to render more troublesome characters. As in the example below:
|
||||||
@@ -350,7 +363,7 @@ Beginners tip, a full example using interactive links in a html context:
|
|||||||
click A callback "Tooltip"
|
click A callback "Tooltip"
|
||||||
click B "http://www.github.com" "This is a link"
|
click B "http://www.github.com" "This is a link"
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
var callback = function(){
|
var callback = function(){
|
||||||
alert('A callback was triggered');
|
alert('A callback was triggered');
|
||||||
@@ -364,7 +377,7 @@ Beginners tip, a full example using interactive links in a html context:
|
|||||||
},
|
},
|
||||||
securityLevel:'loose',
|
securityLevel:'loose',
|
||||||
};
|
};
|
||||||
|
|
||||||
mermaid.initialize(config);
|
mermaid.initialize(config);
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
Reference in New Issue
Block a user