diff --git a/shared/naturalcrit/markdown.js b/shared/naturalcrit/markdown.js index 1cd62f0d1..518b48705 100644 --- a/shared/naturalcrit/markdown.js +++ b/shared/naturalcrit/markdown.js @@ -49,14 +49,13 @@ const mathParser = new MathParser({ }); // Add sign function mathParser.functions.sign = function (a) { - if(a == 0) return ''; - if(a > 0) return '\\+'; - return '\\-'; + if(a >= 0) return '+'; + return '-'; }; // Add signed function mathParser.functions.signed = function (a) { - if(a >= 0) return `\\+${a}`; - return `\\${a}`; + if(a >= 0) return `+${a}`; + return `${a}`; }; //Processes the markdown within an HTML block if it's just a class-wrapper