Skip to content

Commit

Permalink
Merge pull request #1455 from dpvc/environment-fix
Browse files Browse the repository at this point in the history
Fix TeX.Environment() to use the correct end environment.
  • Loading branch information
dpvc committed May 11, 2016
2 parents 5fc8bc2 + d698760 commit 1d84967
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unpacked/extensions/TeX/newcommand.js
Expand Up @@ -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;
}

Expand Down

0 comments on commit 1d84967

Please sign in to comment.