do not append anchorLink for tiles

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2023-03-17 16:41:46 +01:00
parent 3b8f678015
commit c7d42efd55
No known key found for this signature in database
GPG Key ID: 3248E46B6BB8C7F7
1 changed files with 1 additions and 1 deletions

View File

@ -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', `<a href="#${h.id}" class="anchorLink">🔗</a>`)
}
}