diff --git a/src/scripts/footnotes.ts b/src/scripts/footnotes.ts index ee79cb82d3f1c8b..eb6f3a948af61c4 100644 --- a/src/scripts/footnotes.ts +++ b/src/scripts/footnotes.ts @@ -9,7 +9,7 @@ if (footnotes) { const content = note.querySelector("p") as HTMLParagraphElement; const fnrefs = document.querySelectorAll( - `#${note.id.replace("fn", "fnref")}`, + `a[id^='${note.id.replace("fn", "fnref")}']`, ); for (const fnref of fnrefs) {