mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-21 16:29:40 +02:00
Added support for entity codes for sequence diagrams so that it for instance is possible to represent a " with #quot; and a heart with #9829;. This as referenced in issue #74 and issue #193.
This commit is contained in:
@@ -18,12 +18,12 @@
|
||||
<div class="mermaid" id="i211">
|
||||
graph LR
|
||||
A["A double quote:#quot;"] -->B["A dec char:#9829;"]
|
||||
B -->C["#9829; ;^; #9829;"]
|
||||
B -->C["#9829; ;^; #60;"]
|
||||
</div>
|
||||
<div class="mermaid" id="i211">
|
||||
sequenceDiagram
|
||||
Alice->>John: Hello John, how are you?♥
|
||||
John-->>Alice: Great!"
|
||||
Ali#45;ce->>John: Hello John, how are you? #60;
|
||||
John-->>Alice: Great!#quot;
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
32
test/examples/fontAwesome.html
Normal file
32
test/examples/fontAwesome.html
Normal file
@@ -0,0 +1,32 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
|
||||
<link rel="stylesheet" href="../../dist/mermaid.css"/>
|
||||
|
||||
<script src="../../dist/mermaid.js"></script>
|
||||
<style>
|
||||
body{
|
||||
background-color: #89896f;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<h1><i class="fa fa-camera-retro"></i> Font awesome support</h1>
|
||||
<div class="mermaid" id="i211">
|
||||
graph LR
|
||||
A["A double quote:#quot;"] -->B["A dec char:#9829;"]
|
||||
B -->C["#9829; ;^; #60;"]
|
||||
C--> D(fa:fa-camera-retro);
|
||||
D--> E(tjo);
|
||||
</div>
|
||||
<div class="mermaid" id="i211">
|
||||
sequenceDiagram
|
||||
Ali#45;ce->>John: Hello John, how are you? #60;
|
||||
John-->>Alice: Great!#quot;
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user