From 2ba7478d99d723b7cecac93808eeaa8a83ae54d1 Mon Sep 17 00:00:00 2001 From: Kian Date: Wed, 16 Oct 2024 18:12:35 +0100 Subject: [PATCH] [Docs Site] Fix footnotes with multiple references (#17576) --- src/scripts/footnotes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/footnotes.ts b/src/scripts/footnotes.ts index ee79cb82d3f1c8..eb6f3a948af61c 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) {