diff --git a/webclient/src/Article.js b/webclient/src/Article.js index 629e7d6..212d2ec 100644 --- a/webclient/src/Article.js +++ b/webclient/src/Article.js @@ -106,7 +106,7 @@ function Article({ cache }) { if (v.nodeName === '#text') { const text = v.data; - if (text.includes('\\[') || text.includes('\\(') || text.includes('$$') || text.includes('$')) { + if (text.includes('\\[') || text.includes('\\(') || text.includes('$$') || /\$(?:[^$]*[^\s$])\$/.test(text)) { return {text}; }