Skip to content

Commit dad5deb

Browse files
authored
Merge pull request #480 from sylhare/mermaid-update
Update mermaid to v11.4.1
2 parents a847f06 + 337068e commit dad5deb

File tree

3 files changed

+1302
-720
lines changed

3 files changed

+1302
-720
lines changed

_includes/default/head.liquid

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
<script defer src="{{ '/assets/js/vendor/katex.auto-render.min.js' | relative_url }}" onload="renderMathInElement(document.body);"></script>
4242
{% endif %}
4343
44-
<!-- Mermaid 10.8.0 -->
44+
<!-- Mermaid 11.4.1 -->
4545
{% if site.mermaid %}
4646
<script defer src="{{ '/assets/js/vendor/mermaid.min.js' | relative_url }}"></script>
4747
{% endif %}

_posts/2016-12-03-Mermaid.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,15 @@ sequenceDiagram
5252
### Flow
5353

5454
```mermaid
55+
%%{
56+
init: {
57+
'theme': 'base',
58+
'themeVariables': {
59+
'lineColor': '#F8B229'
60+
}
61+
}
62+
}%%
63+
5564
flowchart TD
5665
A[Christmas] -->|Get money| B(Go shopping)
5766
B --> C{Let me think}
@@ -65,6 +74,15 @@ flowchart TD
6574
### Class
6675

6776
```mermaid
77+
%%{
78+
init: {
79+
'theme': 'base',
80+
'themeVariables': {
81+
'lineColor': '#F8B229'
82+
}
83+
}
84+
}%%
85+
6886
classDiagram
6987
Animal <|-- Duck
7088
Animal <|-- Fish
@@ -91,6 +109,15 @@ classDiagram
91109
### State
92110

93111
```mermaid
112+
%%{
113+
init: {
114+
'theme': 'base',
115+
'themeVariables': {
116+
'lineColor': '#F8B229'
117+
}
118+
}
119+
}%%
120+
94121
stateDiagram-v2
95122
[*] --> Still
96123
Still --> [*]

assets/js/vendor/mermaid.min.js

Lines changed: 1274 additions & 719 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)