www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 5c4bf98e90a740374cbb72359a4859a7a85037ba
parent 27d4db2424451da92c4d1a5dac3839670ca41273
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Mon, 25 Jan 2016 13:54:21 -0500

Merge branch 'issue1321' into develop.  Issue #1321.

Diffstat:
Munpacked/jax/input/TeX/jax.js | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/unpacked/jax/input/TeX/jax.js b/unpacked/jax/input/TeX/jax.js @@ -2021,7 +2021,6 @@ /* * Break up a string into text and math blocks - * @@@ FIXME: pass environment to TEX.Parse? @@@ */ InternalMath: function (text,level) { var def = (this.stack.env.font ? {mathvariant: this.stack.env.font} : {}); @@ -2031,7 +2030,7 @@ c = text.charAt(i++); if (c === '$') { if (match === '$' && braces === 0) { - mml.push(MML.TeXAtom(TEX.Parse(text.slice(k,i-1),{}).mml().With(def))); + mml.push(MML.TeXAtom(TEX.Parse(text.slice(k,i-1),{}).mml())); match = ''; k = i; } else if (match === '') { if (k < i-1) mml.push(this.InternalText(text.slice(k,i-1),def)); @@ -2057,7 +2056,7 @@ if (k < i-2) mml.push(this.InternalText(text.slice(k,i-2),def)); match = ')'; k = i; } else if (c === ')' && match === ')' && braces === 0) { - mml.push(MML.TeXAtom(TEX.Parse(text.slice(k,i-2),{}).mml().With(def))); + mml.push(MML.TeXAtom(TEX.Parse(text.slice(k,i-2),{}).mml())); match = ''; k = i; } else if (c.match(/[${}\\]/) && match === '') { i--; text = text.substr(0,i-1) + text.substr(i); // remove \ from \$, \{, \}, or \\