From 8296c5d08a044c18be2dc8a9d132238a8d0d88f5 Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Tue, 10 Nov 2026 08:10:57 +0100 Subject: [PATCH] fix: notes with footnote references like [^1] fail to open (#33987) A note whose Markdown contains a footnote reference, for example one written by the Notes tool, threw an error on opening and its content never showed. The note now opens and the footnote marker is kept in the text. Fixes #33986 --- src/lib/utils/marked/footnote-extension.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/utils/marked/footnote-extension.ts b/src/lib/utils/marked/footnote-extension.ts index 4ef95be6a8..22061c109d 100644 --- a/src/lib/utils/marked/footnote-extension.ts +++ b/src/lib/utils/marked/footnote-extension.ts @@ -27,6 +27,9 @@ export function footnoteExtension() { escapedText: escapedText }; } + }, + renderer(token: { escapedText: string }) { + return `${token.escapedText}`; } }; }