Fix for issue #311, mermaid will clear div used for rendering initially in the redner function.

This commit is contained in:
Knut Sveidqvist
2016-12-14 12:41:29 +01:00
parent d65741177a
commit fbe64b21bc
3 changed files with 8 additions and 6 deletions

View File

@@ -47,7 +47,7 @@ A should have a red background with styling from class.
Class01 : size() Class01 : size()
Class01 : int chimp Class01 : int chimp
Class01 : int gorilla Class01 : int gorilla
Class08 <--> C2: Cool label Class08 <--> C2: Coola label
</div> </div>

View File

@@ -8,9 +8,11 @@
<script> <script>
mermaid.initialize({ mermaid.initialize({
sequenceDiagram:{ sequenceDiagram:{
mirrorActors:true, mirrorActors:false,
height:35, height:35,
topPadding:125 topPadding:125,
useMaxWidth:false
}, },
logLevel:1 logLevel:1
@@ -31,7 +33,7 @@
<div class="mermaid"> <div class="mermaid">
sequenceDiagram sequenceDiagram
Merchant->>Customer: foo Merchant->>Customer: "foo#b"
Note left of Person:One row for the a 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. 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.

View File

@@ -4,7 +4,7 @@
<meta charset="utf-8"> <meta charset="utf-8">
<title></title> <title></title>
<link rel="stylesheet" type="text/css" href="https://rawgit.com/knsv/mermaid/master/dist/mermaid.css"> <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> <script src="../../dist/mermaid.js"></script>
</head><body> </head><body>
<script> <script>