Inline formulas do not have a .katex-display class

This commit is contained in:
SiriusXT 2025-05-13 19:09:16 +08:00
parent 6cb27279a0
commit 2f582a4f9a

View File

@ -185,7 +185,7 @@ function renderFootnote($link: JQuery<HTMLElement>, url: string) {
/* Handling in-line math formulas */
$footnoteContent.find('.ck-math-tex.ck-math-tex-inline.ck-widget').each(function () {
const $katex = $(this).find('.katex, .katex-display').first();
const $katex = $(this).find('.katex').first();
if ($katex.length) {
$(this).replaceWith($('<span class="math-tex"></span>').append($('<span></span>').append($katex.clone())));
}