mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed Mermaid not mounted when headline with same name is present
This commit is contained in:
parent
1bdf22f3f3
commit
cfa64745a2
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -214,7 +214,7 @@
|
||||
</script>
|
||||
{% endblock %}
|
||||
{% block scripts %}
|
||||
<script src="{{ 'assets/javascripts/bundle.5413a266.min.js' | url }}"></script>
|
||||
<script src="{{ 'assets/javascripts/bundle.144dcfcd.min.js' | url }}"></script>
|
||||
{% for path in config["extra_javascript"] %}
|
||||
<script src="{{ path | url }}"></script>
|
||||
{% endfor %}
|
||||
|
@ -68,7 +68,7 @@ let index = 0
|
||||
* @returns Mermaid scripts observable
|
||||
*/
|
||||
function fetchScripts(): Observable<void> {
|
||||
return typeof mermaid === "undefined"
|
||||
return typeof mermaid === "undefined" || mermaid instanceof Element
|
||||
? watchScript("https://unpkg.com/mermaid@8.13.3/dist/mermaid.min.js")
|
||||
: of(undefined)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user