Skip to content

Commit 5a1e739

Browse files
authored
Merge pull request #1151 from mathjax/fix/env-latex
Fix processing of latex attributes for user-defined environments thatwas broken by #1139
2 parents 852c8f1 + 14922db commit 5a1e739

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

ts/input/tex/newcommand/NewcommandMethods.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,7 @@ const NewcommandMethods: { [key: string]: ParseMethod } = {
263263
if (edef) {
264264
// Parse the commands in the end environment definition.
265265
let rest = parser.string.slice(parser.i);
266-
parser.string = edef;
267-
parser.i = 0;
266+
parser.string = ParseUtil.addArgs(parser, parser.string.substring(0, parser.i), edef);
268267
parser.Parse();
269268
// Reset to parsing the remainder of the expression.
270269
parser.string = rest;

0 commit comments

Comments
 (0)