From e1fe640e923ae27c820c72b970dd25367d975971 Mon Sep 17 00:00:00 2001 From: "G.Ambatte" Date: Fri, 2 Aug 2024 07:03:27 +1200 Subject: [PATCH] Update shared/naturalcrit/markdown.js Co-authored-by: Trevor Buckner --- shared/naturalcrit/markdown.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/shared/naturalcrit/markdown.js b/shared/naturalcrit/markdown.js index 65f9d8549..157c608e1 100644 --- a/shared/naturalcrit/markdown.js +++ b/shared/naturalcrit/markdown.js @@ -58,11 +58,8 @@ mathParser.functions.sign = function (a) { }; // Add signed function mathParser.functions.signed = function (a) { - if(a >= 0) { - return `\\+${a}`; - } else { - return `\\${a}`; - } + if(a >= 0) return `\\+${a}`; + return `\\${a}`; }; //Processes the markdown within an HTML block if it's just a class-wrapper