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:
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>
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block scripts %}
|
{% 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"] %}
|
{% for path in config["extra_javascript"] %}
|
||||||
<script src="{{ path | url }}"></script>
|
<script src="{{ path | url }}"></script>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ let index = 0
|
|||||||
* @returns Mermaid scripts observable
|
* @returns Mermaid scripts observable
|
||||||
*/
|
*/
|
||||||
function fetchScripts(): Observable<void> {
|
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")
|
? watchScript("https://unpkg.com/mermaid@8.13.3/dist/mermaid.min.js")
|
||||||
: of(undefined)
|
: of(undefined)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user