commit 07c5ee11217e725fe501f336dcf43c7b5add47b3
parent b58c14b5573597dcbc177515951eb1ff0d30c875
Author: Frédéric Wang <fred.wang@free.fr>
Date: Thu, 31 Jan 2013 16:35:09 +0100
Rename AsciiMath config option "decimal" to "decimalsign".
Diffstat:
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/unpacked/jax/input/AsciiMath/config.js b/unpacked/jax/input/AsciiMath/config.js
@@ -33,7 +33,7 @@ MathJax.InputJax.AsciiMath = MathJax.InputJax({
config: {
displaystyle: true, // put limits above and below operators
- decimal: "." // can change to "," but watch out for "(1,2)"
+ decimalsign: "." // can change to "," but watch out for "(1,2)"
}
});
MathJax.InputJax.AsciiMath.Register("math/asciimath");
diff --git a/unpacked/jax/input/AsciiMath/jax.js b/unpacked/jax/input/AsciiMath/jax.js
@@ -1193,7 +1193,9 @@ ASCIIMATH.Augment({
AM: {
Init: function () {
displaystyle = ASCIIMATH.config.displaystyle;
- decimalsign = ASCIIMATH.config.decimal;
+ // Old versions use the "decimal" option, so take it into account if it
+ // is defined by the user. See issue 384.
+ decimalsign = (ASCIIMATH.config.decimal || ASCIIMATH.config.decimalsign);
INITASCIIMATH();
AMinitSymbols();
},