From e8c7ade7c4a9b3b50c714640091d238d4a239116 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Thu, 11 Sep 2014 08:34:26 -0400 Subject: [PATCH] Allow comma-separated parameters in \mmlToken. Resolves issue #906. --- unpacked/jax/input/TeX/jax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unpacked/jax/input/TeX/jax.js b/unpacked/jax/input/TeX/jax.js index adb3bb619..de8d4d524 100644 --- a/unpacked/jax/input/TeX/jax.js +++ b/unpacked/jax/input/TeX/jax.js @@ -1473,7 +1473,7 @@ if (!MML[type] || !MML[type].prototype.isToken) {TEX.Error(["NotMathMLToken","%1 is not a token element",type])} while (attr !== "") { - match = attr.match(/^([a-z]+)\s*=\s*(\'[^']*'|"[^"]*"|[^ ]*)\s*/i); + match = attr.match(/^([a-z]+)\s*=\s*('[^']*'|"[^"]*"|[^ ,]*)\s*,?\s*/i); if (!match) {TEX.Error(["InvalidMathMLAttr","Invalid MathML attribute: %1",attr])} if (!MML[type].prototype.defaults[match[1]] && !this.MmlTokenAllow[match[1]]) {