Merge pull request #1455 from dpvc/environment-fix

Fix TeX.Environment() to use the correct end environment.
This commit is contained in:
Davide P. Cervone 2016-05-11 17:08:29 -04:00
commit 1d849674e1

View File

@ -258,7 +258,7 @@ MathJax.Hub.Register.StartupHook("TeX Jax Ready",function () {
});
TEX.Environment = function (name) {
TEXDEF.environment[name] = ['BeginEnv','EndEnv'].concat([].slice.call(arguments,1));
TEXDEF.environment[name] = ['BeginEnv',[null,'EndEnv']].concat([].slice.call(arguments,1));
TEXDEF.environment[name].isUser = true;
}