Skip to content

Commit

Permalink
update to mermaid 10.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bollwyvl committed Jan 16, 2024
1 parent 61a38d7 commit 907e411
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nbconvert/exporters/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class HTMLExporter(TemplateExporter):
).tag(config=True)

mermaid_js_url = Unicode(
"https://cdnjs.cloudflare.com/ajax/libs/mermaid/10.6.0/mermaid.esm.min.mjs",
"https://cdnjs.cloudflare.com/ajax/libs/mermaid/10.7.0/mermaid.esm.min.mjs",
help="""
URL to load MermaidJS from.
Expand Down
3 changes: 2 additions & 1 deletion share/templates/lab/mermaidjs.html.j2
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{%- macro mermaid_js(
url="https://cdnjs.cloudflare.com/ajax/libs/mermaid/10.6.0/mermaid.esm.min.mjs"
url="https://cdnjs.cloudflare.com/ajax/libs/mermaid/10.7.0/mermaid.esm.min.mjs"
) -%}
<script type="module">
document.addEventListener("DOMContentLoaded", async () => {
Expand All @@ -13,6 +13,7 @@ url="https://cdnjs.cloudflare.com/ajax/libs/mermaid/10.6.0/mermaid.esm.min.mjs"
mermaid.initialize({
maxTextSize: 100000,
maxEdges: 100000,
startOnLoad: false,
fontFamily: window
.getComputedStyle(document.body)
Expand Down

0 comments on commit 907e411

Please sign in to comment.