#916 Docs for chaining of links

This commit is contained in:
Knut Sveidqvist
2019-10-08 22:56:50 +02:00
parent a9224015e0
commit a8a4616cab

View File

@@ -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>