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
This commit is contained in:
Classic298 authored and GitHub committed 2026-11-10 16:10:57 +09:00
1 parent 025a69ae6d
commit 8296c5d08a
1 file changed
+3
@@ -27,6 +27,9 @@ export function footnoteExtension() {
escapedText: escapedText
};
}
},
renderer(token: { escapedText: string }) {
return `<sup class="footnote-ref footnote-ref-text">${token.escapedText}</sup>`;
}
};
}