mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-23 23:21:00 +01:00
Widen Mermaid.js import to 10.x (current major version)
This commit is contained in:
parent
5cb3117f50
commit
75d87eaf7e
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -249,7 +249,7 @@
|
||||
</script>
|
||||
{% endblock %}
|
||||
{% block scripts %}
|
||||
<script src="{{ 'assets/javascripts/bundle.dd8806f2.min.js' | url }}"></script>
|
||||
<script src="{{ 'assets/javascripts/bundle.a7c05c9e.min.js' | url }}"></script>
|
||||
{% for script in config.extra_javascript %}
|
||||
{{ script | script_tag }}
|
||||
{% endfor %}
|
||||
|
@ -69,7 +69,7 @@ let sequence = 0
|
||||
*/
|
||||
function fetchScripts(): Observable<void> {
|
||||
return typeof mermaid === "undefined" || mermaid instanceof Element
|
||||
? watchScript("https://unpkg.com/mermaid@10.7.0/dist/mermaid.min.js")
|
||||
? watchScript("https://unpkg.com/mermaid@10/dist/mermaid.min.js")
|
||||
: of(undefined)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user