mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-22 04:01:38 +08:00
Inline formulas do not have a .katex-display class
This commit is contained in:
parent
6cb27279a0
commit
2f582a4f9a
@ -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())));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user