katex 0.16.2 → 0.16.3

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
@@ -10299,6 +10299,13 @@ function getHLines(parser) {
10299
10299
  parser.consumeSpaces();
10300
10300
  var nxt = parser.fetch().text;
10301
10301
 
10302
+ if (nxt === "\\relax") {
10303
+ // \relax is an artifact of the \cr macro below
10304
+ parser.consume();
10305
+ parser.consumeSpaces();
10306
+ nxt = parser.fetch().text;
10307
+ }
10308
+
10302
10309
  while (nxt === "\\hline" || nxt === "\\hdashline") {
10303
10310
  parser.consume();
10304
10311
  hlineInfo.push(nxt === "\\hdashline");
@@ -18290,7 +18297,7 @@ var katex = {
18290
18297
  /**
18291
18298
  * Current KaTeX version
18292
18299
  */
18293
- version: "0.16.2",
18300
+ version: "0.16.3",
18294
18301
 
18295
18302
  /**
18296
18303
  * Renders the given LaTeX into an HTML+MathML combination, and adds
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "katex",
3
- "version": "0.16.2",
3
+ "version": "0.16.3",
4
4
  "description": "Fast math typesetting for the web.",
5
5
  "main": "dist/katex.js",
6
6
  "exports": {
@@ -39,6 +39,11 @@ function getHLines(parser: Parser): boolean[] {
39
39
  const hlineInfo = [];
40
40
  parser.consumeSpaces();
41
41
  let nxt = parser.fetch().text;
42
+ if (nxt === "\\relax") { // \relax is an artifact of the \cr macro below
43
+ parser.consume();
44
+ parser.consumeSpaces();
45
+ nxt = parser.fetch().text;
46
+ }
42
47
  while (nxt === "\\hline" || nxt === "\\hdashline") {
43
48
  parser.consume();
44
49
  hlineInfo.push(nxt === "\\hdashline");