diff --git a/www/js/app.js b/www/js/app.js index 9801029b..9ccdd700 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -6443,8 +6443,8 @@ function displayArticleContentInContainer (dirEntry, htmlArticle) { // Replace all TeX SVGs with MathJax scripts if (params.useMathJax) { - // Deal with any newer MathML blocks - htmlArticle = htmlArticle.replace(/(]+alttext=(["']))((?:[^"']|[\s\S](?!\2))+?)(\2(?:[^<]|<(?!\/math))+(?:[^<]|<(?!img))+)]+?class=["'][^"']*?mwe-math-fallback-image[^>]+>/ig, + // Deal with any newer MathML blocksÂș + htmlArticle = htmlArticle.replace(/(]+alttext=(["']))((?:[^\s\S](?!\2))+)(\2(?:[^<]|<(?!\/math))+(?:[^<]|<(?!img))+)]+?class=["'][^"']*?mwe-math-fallback-image[^>]+>/ig, function (_p0, p1, _p2, math, p4) { // Remove any rogue ampersands in MathJax due to double escaping (by Wikipedia) math = math.replace(/&/g, '&');