From c7d42efd5544983eb8b6d4c5adf22047608856d7 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Fri, 17 Mar 2023 16:41:46 +0100 Subject: [PATCH] do not append anchorLink for tiles Signed-off-by: CrazyMax --- assets/js/anchorlinks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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', `🔗`) } }