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