mirror of
https://github.com/open-webui/open-webui.git
synced 2026-12-06 11:37:57 -05:00
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:
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>`;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user