Skip to content

Commit 2f582a4

Browse files
committed
Inline formulas do not have a .katex-display class
1 parent 6cb2727 commit 2f582a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/client/src/services/note_tooltip.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ function renderFootnote($link: JQuery<HTMLElement>, url: string) {
185185

186186
/* Handling in-line math formulas */
187187
$footnoteContent.find('.ck-math-tex.ck-math-tex-inline.ck-widget').each(function () {
188-
const $katex = $(this).find('.katex, .katex-display').first();
188+
const $katex = $(this).find('.katex').first();
189189
if ($katex.length) {
190190
$(this).replaceWith($('<span class="math-tex"></span>').append($('<span></span>').append($katex.clone())));
191191
}

0 commit comments

Comments
 (0)