Added support for entity codes so that it for instance is possible to represent a " with #quot; and a heart with #9829; This differs from the regular html codes in that the leading & isreplaced with a dsh and for dec codes dropped. This as referenced in issue #219.

This commit is contained in:
knsv
2015-10-03 21:50:32 +02:00
parent cb5e88c2f1
commit a2b6bc5213
12 changed files with 129 additions and 46 deletions

View File

@@ -0,0 +1,29 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="../../dist/mermaid.css"/>
<script src="../../dist/mermaid.js"></script>
<style>
body{
background-color: #89896f;
}
</style>
</head>
<body>
<h1>Qutotes to callbacks</h1>
<div class="mermaid" id="i211">
graph LR
A["A double quote:#quot;"] -->B["A dec char:#9829;"]
B -->C["#9829; ;^; #9829;"]
</div>
<div class="mermaid" id="i211">
sequenceDiagram
Alice->>John: Hello John, how are you?&#9829;
John-->>Alice: Great!&quot;
</div>
</body>
</html>