katex 0.16.22 → 0.16.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/contrib/copy-tex/README.md +2 -2
- package/contrib/mathtex-script-type/README.md +5 -5
- package/contrib/mhchem/README.md +1 -1
- package/dist/README.md +3 -3
- package/dist/katex.css +1 -1
- package/dist/katex.js +3 -2
- package/dist/katex.min.css +1 -1
- package/dist/katex.min.js +1 -1
- package/dist/katex.mjs +2 -2
- package/package.json +1 -1
- package/src/MacroExpander.js +2 -1
package/dist/katex.mjs
CHANGED
|
@@ -16314,7 +16314,7 @@ class MacroExpander {
|
|
|
16314
16314
|
|
|
16315
16315
|
this.pushToken(new Token("EOF", end.loc));
|
|
16316
16316
|
this.pushTokens(tokens);
|
|
16317
|
-
return
|
|
16317
|
+
return new Token("", SourceLocation.range(start, end));
|
|
16318
16318
|
}
|
|
16319
16319
|
/**
|
|
16320
16320
|
* Consume all following space tokens, without expansion.
|
|
@@ -18445,7 +18445,7 @@ var renderToHTMLTree = function renderToHTMLTree(expression, options) {
|
|
|
18445
18445
|
}
|
|
18446
18446
|
};
|
|
18447
18447
|
|
|
18448
|
-
var version = "0.16.
|
|
18448
|
+
var version = "0.16.23";
|
|
18449
18449
|
var __domTree = {
|
|
18450
18450
|
Span,
|
|
18451
18451
|
Anchor,
|
package/package.json
CHANGED
package/src/MacroExpander.js
CHANGED
|
@@ -10,6 +10,7 @@ import Lexer from "./Lexer";
|
|
|
10
10
|
import {Token} from "./Token";
|
|
11
11
|
import type {Mode} from "./types";
|
|
12
12
|
import ParseError from "./ParseError";
|
|
13
|
+
import SourceLocation from "./SourceLocation";
|
|
13
14
|
import Namespace from "./Namespace";
|
|
14
15
|
import macros from "./macros";
|
|
15
16
|
|
|
@@ -138,7 +139,7 @@ export default class MacroExpander implements MacroContextInterface {
|
|
|
138
139
|
this.pushToken(new Token("EOF", end.loc));
|
|
139
140
|
|
|
140
141
|
this.pushTokens(tokens);
|
|
141
|
-
return
|
|
142
|
+
return new Token("", SourceLocation.range(start, end));
|
|
142
143
|
}
|
|
143
144
|
|
|
144
145
|
/**
|