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/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 +8 -1
- package/dist/katex.min.css +1 -1
- package/dist/katex.min.js +1 -1
- package/dist/katex.mjs +8 -1
- package/package.json +1 -1
- package/src/environments/array.js +5 -0
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.
|
|
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
|
@@ -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");
|