mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	Inline formulas do not have a .katex-display class
This commit is contained in:
		| @@ -185,7 +185,7 @@ function renderFootnote($link: JQuery<HTMLElement>, url: string) { | |||||||
|  |  | ||||||
|         /* Handling in-line math formulas */ |         /* Handling in-line math formulas */ | ||||||
|         $footnoteContent.find('.ck-math-tex.ck-math-tex-inline.ck-widget').each(function () { |         $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) { |             if ($katex.length) { | ||||||
|                 $(this).replaceWith($('<span class="math-tex"></span>').append($('<span></span>').append($katex.clone()))); |                 $(this).replaceWith($('<span class="math-tex"></span>').append($('<span></span>').append($katex.clone()))); | ||||||
|             } |             } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user