0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-26 11:42:39 +00:00

Update shared/naturalcrit/markdown.js

Co-authored-by: Trevor Buckner <calculuschild@gmail.com>
This commit is contained in:
G.Ambatte
2024-08-02 07:03:27 +12:00
committed by GitHub
parent 6f99fe7455
commit e1fe640e92

View File

@@ -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