Simplified code block mounting

This commit is contained in:
squidfunk 2022-04-30 18:07:55 +02:00
parent bdb5ba5a3d
commit 1eeb8b7c0c
4 changed files with 6 additions and 8 deletions

View File

@ -214,7 +214,7 @@
</script> </script>
{% endblock %} {% endblock %}
{% block scripts %} {% 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"] %} {% for path in config["extra_javascript"] %}
<script src="{{ path | url }}"></script> <script src="{{ path | url }}"></script>
{% endfor %} {% endfor %}

View File

@ -178,9 +178,7 @@ export function mountCodeBlock(
} }
/* Handle code annotations */ /* Handle code annotations */
const container = el.closest([ const container = el.closest(".highlight")
":not(td):not(.code) > .highlight"
].join(", "))
if (container instanceof HTMLElement) { if (container instanceof HTMLElement) {
const list = findCandidateList(container) const list = findCandidateList(container)