Skip to content

Commit 14922db

Browse files
committed
Fix processing of latex attributes for user-defined environments that was broken by #1139
1 parent 6dfec09 commit 14922db

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)