This commit is contained in:
isUnknown 2025-02-03 14:06:04 +01:00
parent 979106e8eb
commit 4172bba4cc
2 changed files with 7 additions and 4 deletions

View file

@ -84,11 +84,12 @@ function fixFootNotes() {
footnotes.forEach((footnote) => {
const href = footnote.href;
footnote.classList.add("footnote");
if (href.includes("sym")) {
footnote.id = footnote.hash.replace("sym", "anc").replace("#", "");
}
if (href.includes("anc")) {
} else if (href.includes("anc")) {
footnote.id = footnote.hash.replace("anc", "sym").replace("#", "");
}
});