mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-12 01:50:52 +01:00
Simplified code block mounting
This commit is contained in:
parent
bdb5ba5a3d
commit
1eeb8b7c0c
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.9efd901c.min.js' | url }}"></script>
|
||||
<script src="{{ 'assets/javascripts/bundle.ed9748b7.min.js' | url }}"></script>
|
||||
{% for path in config["extra_javascript"] %}
|
||||
<script src="{{ path | url }}"></script>
|
||||
{% endfor %}
|
||||
|
@ -178,9 +178,7 @@ export function mountCodeBlock(
|
||||
}
|
||||
|
||||
/* Handle code annotations */
|
||||
const container = el.closest([
|
||||
":not(td):not(.code) > .highlight"
|
||||
].join(", "))
|
||||
const container = el.closest(".highlight")
|
||||
if (container instanceof HTMLElement) {
|
||||
const list = findCandidateList(container)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user