mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-20 07:49:43 +02:00
Better formatting
This commit is contained in:
@@ -340,7 +340,7 @@ graph LR;
|
|||||||
```
|
```
|
||||||
> **Success** The tooltip functionality and the ability to link to urls are available from version 0.5.2.
|
> **Success** The tooltip functionality and the ability to link to urls are available from version 0.5.2.
|
||||||
|
|
||||||
Beginners tip with a full example using interactive links in html context:
|
Beginners tip, a full example using interactive links in a html context:
|
||||||
```
|
```
|
||||||
<body>
|
<body>
|
||||||
<div class="mermaid">
|
<div class="mermaid">
|
||||||
@@ -349,6 +349,7 @@ Beginners tip with a full example using interactive links in 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');
|
||||||
@@ -362,6 +363,7 @@ Beginners tip with a full example using interactive links in html context:
|
|||||||
},
|
},
|
||||||
securityLevel:'loose',
|
securityLevel:'loose',
|
||||||
};
|
};
|
||||||
|
|
||||||
mermaid.initialize(config);
|
mermaid.initialize(config);
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
Reference in New Issue
Block a user