Merge pull request #16909 from crazy-max/anchorlink

do not append anchorLink for tiles
This commit is contained in:
Sebastiaan van Stijn 2023-03-17 17:16:14 +01:00 committed by GitHub
commit 59f9d52ce2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
(function (d) { (function (d) {
"use strict"; "use strict";
for (const h of d.querySelectorAll("H1, H2, H3")) { 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>`) h.insertAdjacentHTML('beforeend', `<a href="#${h.id}" class="anchorLink">🔗</a>`)
} }
} }