Skip to content

Commit

Permalink
Merge pull request #465 from bmsleight/gh-pages
Browse files Browse the repository at this point in the history
Update index.html
  • Loading branch information
knsv authored Jan 29, 2017
2 parents 3aeed60 + f1a908b commit 45bbd3b
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,39 @@ <h3 id="define-a-chart-like-this-">Define a chart like this:</h3>
Chart ends up here
&lt;/svg&gt;
&lt;/div&gt;</code></pre><p>An id is also added to mermaid tags without id.</p>
<h3 id="simple-full-example">Simple full example:</h3>
<code>
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8">
<!-- Downloaded as per http://knsv.github.io/mermaid/#installation -->
<!-- Stored in the same directory as html file -->
<link rel="stylesheet" href="mermaid.css">

<!-- Optional to use fontawesome -->
<!-- Downloaded as per http://fontawesome.io/get-started/ -->
<!-- Stored in the same directory as html file -->
<script src="https://use.fontawesome.com/7065416dc9.js"></script>

</head>
<body>

<!-- Include mermaid on your web page: -->
<script src="mermaid.min.js"></script>
<script>mermaid.initialize({startOnLoad:true});</script>

<div class="mermaid">
graph LR
A --- B
B-->C[fa:fa-ban forbidden]
B-->D(fa:fa-spinner);
</div>

</body>
</html>
<code>
<h3 id="labels-out-of-bounds">Labels out of bounds</h3>
<p>If you use dynamically loaded fonts that are loaded through CSS, such as Google fonts, mermaid should wait for the<br>whole page to have been loaded (dom + assets, particularly the fonts file).</p>
<p>$(document).load(function() {<br> mermaid.initialize();<br>});<br>over</p>
Expand Down

0 comments on commit 45bbd3b

Please sign in to comment.