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/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 start.range(end, "");
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.22";
18448
+ var version = "0.16.23";
18449
18449
  var __domTree = {
18450
18450
  Span,
18451
18451
  Anchor,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "katex",
3
- "version": "0.16.22",
3
+ "version": "0.16.23",
4
4
  "description": "Fast math typesetting for the web.",
5
5
  "main": "dist/katex.js",
6
6
  "exports": {
@@ -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 start.range(end, "");
142
+ return new Token("", SourceLocation.range(start, end));
142
143
  }
143
144
 
144
145
  /**