Skip to content

Commit

Permalink
Fix for issue #311, mermaid will clear div used for rendering initial…
Browse files Browse the repository at this point in the history
…ly in the redner function.
  • Loading branch information
knsv committed Dec 14, 2016
1 parent d657411 commit fbe64b2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/examples/classDiagram.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ <h1>Rendering</h1>
Class01 : size()
Class01 : int chimp
Class01 : int gorilla
Class08 <--> C2: Cool label
Class08 <--> C2: Coola label
</div>


Expand Down
8 changes: 5 additions & 3 deletions test/examples/seq.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@
<script>
mermaid.initialize({
sequenceDiagram:{
mirrorActors:true,
mirrorActors:false,
height:35,
topPadding:125
topPadding:125,
useMaxWidth:false

},
logLevel:1

Expand All @@ -31,7 +33,7 @@ <h1>Autowrap</h1>

<div class="mermaid">
sequenceDiagram
Merchant->>Customer: foo
Merchant->>Customer: "foo#b"
Note left of Person:One row for the a
Note right of Person: Bob thinks a long long time, so long that the text does not fit In a row. Bob thinks a long long time, so long that the text does not fit In a row. Bob thinks a long long time, so long that the text does not fit In a row. Bob thinks a long long time, so long that the text does not fit In a row.

Expand Down
4 changes: 2 additions & 2 deletions test/examples/simpleBasteTag.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" type="text/css" href="https://rawgit.com/knsv/mermaid/master/dist/mermaid.css">
<base href="XXX"/>
<base href="http://127.0.0.1:8080/"/>
<script src="../../dist/mermaid.js"></script>
</head><body>
<script>
Expand All @@ -31,4 +31,4 @@

Note left of Person: Foo checks up on him
</div>
</body></html>
</body></html>

0 comments on commit fbe64b2

Please sign in to comment.