mirror of
https://github.com/zadam/trilium.git
synced 2025-10-26 07:46:30 +01:00
Fix incorrect import of multiple inline math.
This commit is contained in:
@@ -25,7 +25,7 @@ class CustomMarkdownRenderer extends Renderer {
|
||||
`<span class="math-tex">\\\[$1\\\]</span>`);
|
||||
|
||||
// Inline math
|
||||
text = text.replaceAll(/(?<!\\)\$(.+)\$/g,
|
||||
text = text.replaceAll(/(?<!\\)\$(.+?)\$/g,
|
||||
`<span class="math-tex">\\\($1\\\)</span>`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user