mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-04 14:42:40 +00:00
Update shared/naturalcrit/markdown.js
Co-authored-by: Trevor Buckner <calculuschild@gmail.com>
This commit is contained in:
@@ -53,11 +53,8 @@ mathParser.functions.abs = function (a) {
|
|||||||
// Add sign function
|
// Add sign function
|
||||||
mathParser.functions.sign = function (a) {
|
mathParser.functions.sign = function (a) {
|
||||||
if(a == 0) return '';
|
if(a == 0) return '';
|
||||||
if(a > 0) {
|
if(a > 0) return '\\+';
|
||||||
return '\\+';
|
return '\\-';
|
||||||
} else {
|
|
||||||
return '\\-';
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
// Add signed function
|
// Add signed function
|
||||||
mathParser.functions.signed = function (a) {
|
mathParser.functions.signed = function (a) {
|
||||||
|
|||||||
Reference in New Issue
Block a user