Skip to content

Commit

Permalink
Merge pull request #566 from mathjax/issue2580
Browse files Browse the repository at this point in the history
Fix autoloading when macro name is followed by a space.  (mathjax/MathJax#2580)
  • Loading branch information
dpvc authored Feb 9, 2021
2 parents 876edcb + 129f83e commit 9512365
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ts/input/tex/autoload/AutoloadConfiguration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function Autoload(parser: TexParser, name: string, extension: string, isMacro: b
//
// Put back the macro or \begin and read it again
//
parser.string = (isMacro ? name : '\\begin{' + name.slice(1) + '}' ) + parser.string.slice(parser.i);
parser.string = (isMacro ? name + ' ' : '\\begin{' + name.slice(1) + '}' ) + parser.string.slice(parser.i);
parser.i = 0;
}
RequireLoad(parser, extension);
Expand Down

0 comments on commit 9512365

Please sign in to comment.