mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 11:56:01 +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>`);
|
`<span class="math-tex">\\\[$1\\\]</span>`);
|
||||||
|
|
||||||
// Inline math
|
// Inline math
|
||||||
text = text.replaceAll(/(?<!\\)\$(.+)\$/g,
|
text = text.replaceAll(/(?<!\\)\$(.+?)\$/g,
|
||||||
`<span class="math-tex">\\\($1\\\)</span>`);
|
`<span class="math-tex">\\\($1\\\)</span>`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user