We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7446453 + a4b6f41 commit 5ce1a72Copy full SHA for 5ce1a72
unpacked/jax/input/TeX/jax.js
@@ -2037,8 +2037,12 @@
2037
while (this.nextIsSpace()) {this.i++}
2038
var c = this.string.charAt(this.i); this.i++;
2039
if (this.i <= this.string.length) {
2040
- if (c == "\\") {c += this.GetCS(name)}
2041
- else if (c === "{" && braceOK) {this.i--; c = this.GetArgument(name)}
+ if (c == "\\") {
+ c += this.GetCS(name);
2042
+ } else if (c === "{" && braceOK) {
2043
+ this.i--;
2044
+ c = this.GetArgument(name).replace(/^\s+/,'').replace(/\s+$/,'');
2045
+ }
2046
if (TEXDEF.delimiter[c] != null) {return this.convertDelimiter(c)}
2047
}
2048
TEX.Error(["MissingOrUnrecognizedDelim",
0 commit comments