Skip to content

Build your personal knowledge base with Trilium Notes

Inline formulas do not have a .katex-display class

SiriusXT2f582a4f9a88
diff --git a/apps/client/src/services/note_tooltip.ts b/apps/client/src/services/note_tooltip.ts
index 55982e6440..80ec7caae0 100644
--- a/apps/client/src/services/note_tooltip.ts
+++ b/apps/client/src/services/note_tooltip.ts
@@ -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())));
}