mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 10:02:59 +08:00
Fix incorrect import of multiple inline math.
This commit is contained in:
parent
35c98f23bd
commit
047109f821
@ -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>`);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user