diff --git a/assets/js/anchorlinks.js b/assets/js/anchorlinks.js index 088a0a1e49..750f964703 100644 --- a/assets/js/anchorlinks.js +++ b/assets/js/anchorlinks.js @@ -1,7 +1,7 @@ (function (d) { "use strict"; for (const h of d.querySelectorAll("H1, H2, H3")) { - if (h.id != null && h.id.length > 0) { + if (h.id != null && h.id.length > 0 && !h.parentElement.classList.contains("component")) { h.insertAdjacentHTML('beforeend', `🔗`) } }