Better formatting

This commit is contained in:
erelling
2019-08-28 21:03:23 +02:00
committed by GitHub
parent de2b5390cb
commit 5c8dc7ab07

View File

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