katex 0.16.11 → 0.16.13
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/contrib/auto-render.js +4 -7
- package/dist/contrib/auto-render.min.js +1 -1
- package/dist/contrib/mathtex-script-type.js +4 -7
- package/dist/contrib/mathtex-script-type.min.js +1 -1
- package/dist/contrib/mhchem.js +4 -7
- package/dist/contrib/mhchem.min.js +1 -1
- package/dist/contrib/render-a11y-string.js +4 -7
- package/dist/contrib/render-a11y-string.min.js +1 -1
- package/dist/katex.css +1 -1
- package/dist/katex.js +9 -6
- package/dist/katex.min.css +1 -1
- package/dist/katex.min.js +1 -1
- package/dist/katex.mjs +7 -4
- package/package.json +2 -2
- package/src/functions/rule.js +2 -0
- package/src/macros.js +1 -1
- package/src/styles/katex.scss +4 -1
- package/src/symbols.js +3 -1
package/dist/katex.mjs
CHANGED
|
@@ -5038,9 +5038,10 @@ defineSymbol(math, main, inner, "\u2026", "\\mathellipsis");
|
|
|
5038
5038
|
defineSymbol(text, main, inner, "\u2026", "\\ldots", true);
|
|
5039
5039
|
defineSymbol(math, main, inner, "\u2026", "\\ldots", true);
|
|
5040
5040
|
defineSymbol(math, main, inner, "\u22ef", "\\@cdots", true);
|
|
5041
|
-
defineSymbol(math, main, inner, "\u22f1", "\\ddots", true);
|
|
5042
|
-
defineSymbol(math, main, textord, "\u22ee", "\\varvdots"); // \vdots is a macro
|
|
5041
|
+
defineSymbol(math, main, inner, "\u22f1", "\\ddots", true); // \vdots is a macro that uses one of these two symbols (with made-up names):
|
|
5043
5042
|
|
|
5043
|
+
defineSymbol(math, main, textord, "\u22ee", "\\varvdots");
|
|
5044
|
+
defineSymbol(text, main, textord, "\u22ee", "\\varvdots");
|
|
5044
5045
|
defineSymbol(math, main, accent, "\u02ca", "\\acute");
|
|
5045
5046
|
defineSymbol(math, main, accent, "\u02cb", "\\grave");
|
|
5046
5047
|
defineSymbol(math, main, accent, "\u00a8", "\\ddot");
|
|
@@ -13810,6 +13811,8 @@ defineFunction({
|
|
|
13810
13811
|
props: {
|
|
13811
13812
|
numArgs: 2,
|
|
13812
13813
|
numOptionalArgs: 1,
|
|
13814
|
+
allowedInText: true,
|
|
13815
|
+
allowedInMath: true,
|
|
13813
13816
|
argTypes: ["size", "size", "size"]
|
|
13814
13817
|
},
|
|
13815
13818
|
|
|
@@ -15494,7 +15497,7 @@ defineMacro("\\lrcorner", "\\html@mathml{\\@lrcorner}{\\mathop{\\char\"231f}}");
|
|
|
15494
15497
|
// We'll call \varvdots, which gets a glyph from symbols.js.
|
|
15495
15498
|
// The zero-width rule gets us an equivalent to the vertical 6pt kern.
|
|
15496
15499
|
|
|
15497
|
-
defineMacro("\\vdots", "
|
|
15500
|
+
defineMacro("\\vdots", "{\\varvdots\\rule{0pt}{15pt}}");
|
|
15498
15501
|
defineMacro("\u22ee", "\\vdots"); //////////////////////////////////////////////////////////////////////
|
|
15499
15502
|
// amsmath.sty
|
|
15500
15503
|
// http://mirrors.concertpass.com/tex-archive/macros/latex/required/amsmath/amsmath.pdf
|
|
@@ -18361,7 +18364,7 @@ var katex = {
|
|
|
18361
18364
|
/**
|
|
18362
18365
|
* Current KaTeX version
|
|
18363
18366
|
*/
|
|
18364
|
-
version: "0.16.
|
|
18367
|
+
version: "0.16.13",
|
|
18365
18368
|
|
|
18366
18369
|
/**
|
|
18367
18370
|
* 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.
|
|
3
|
+
"version": "0.16.13",
|
|
4
4
|
"description": "Fast math typesetting for the web.",
|
|
5
5
|
"main": "dist/katex.js",
|
|
6
6
|
"exports": {
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"prettier": "^2.7.1",
|
|
109
109
|
"query-string": "^7.1.1",
|
|
110
110
|
"rimraf": "^3.0.2",
|
|
111
|
-
"rollup": "^2.
|
|
111
|
+
"rollup": "^2.79.2",
|
|
112
112
|
"sass": "^1.75.6",
|
|
113
113
|
"sass-loader": "^14.2.1",
|
|
114
114
|
"selenium-webdriver": "^4.4.0",
|
package/src/functions/rule.js
CHANGED
package/src/macros.js
CHANGED
|
@@ -341,7 +341,7 @@ defineMacro("\\lrcorner", "\\html@mathml{\\@lrcorner}{\\mathop{\\char\"231f}}");
|
|
|
341
341
|
// \kern6\p@\hbox{.}\hbox{.}\hbox{.}}}
|
|
342
342
|
// We'll call \varvdots, which gets a glyph from symbols.js.
|
|
343
343
|
// The zero-width rule gets us an equivalent to the vertical 6pt kern.
|
|
344
|
-
defineMacro("\\vdots", "
|
|
344
|
+
defineMacro("\\vdots", "{\\varvdots\\rule{0pt}{15pt}}");
|
|
345
345
|
defineMacro("\u22ee", "\\vdots");
|
|
346
346
|
|
|
347
347
|
//////////////////////////////////////////////////////////////////////
|
package/src/styles/katex.scss
CHANGED
|
@@ -7,6 +7,9 @@ $mu: calc(1em / 18);
|
|
|
7
7
|
// The version is dynamically set from package.json via webpack.common.js
|
|
8
8
|
$version: "" !default;
|
|
9
9
|
|
|
10
|
+
// CSS margin property for math in display mode
|
|
11
|
+
$display-margin: 1em 0 !default;
|
|
12
|
+
|
|
10
13
|
.katex {
|
|
11
14
|
font: normal 1.21em KaTeX_Main, Times New Roman, serif;
|
|
12
15
|
line-height: 1.2;
|
|
@@ -621,7 +624,7 @@ $version: "" !default;
|
|
|
621
624
|
|
|
622
625
|
.katex-display {
|
|
623
626
|
display: block;
|
|
624
|
-
margin:
|
|
627
|
+
margin: $display-margin;
|
|
625
628
|
text-align: center;
|
|
626
629
|
|
|
627
630
|
> .katex {
|
package/src/symbols.js
CHANGED
|
@@ -673,7 +673,9 @@ defineSymbol(text, main, inner, "\u2026", "\\ldots", true);
|
|
|
673
673
|
defineSymbol(math, main, inner, "\u2026", "\\ldots", true);
|
|
674
674
|
defineSymbol(math, main, inner, "\u22ef", "\\@cdots", true);
|
|
675
675
|
defineSymbol(math, main, inner, "\u22f1", "\\ddots", true);
|
|
676
|
-
|
|
676
|
+
// \vdots is a macro that uses one of these two symbols (with made-up names):
|
|
677
|
+
defineSymbol(math, main, textord, "\u22ee", "\\varvdots");
|
|
678
|
+
defineSymbol(text, main, textord, "\u22ee", "\\varvdots");
|
|
677
679
|
defineSymbol(math, main, accent, "\u02ca", "\\acute");
|
|
678
680
|
defineSymbol(math, main, accent, "\u02cb", "\\grave");
|
|
679
681
|
defineSymbol(math, main, accent, "\u00a8", "\\ddot");
|