katex 0.16.14 → 0.16.15
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 +2 -1
- package/dist/katex.js +8 -2
- package/dist/katex.min.css +1 -1
- package/dist/katex.min.js +1 -1
- package/dist/katex.mjs +8 -2
- package/package.json +1 -1
- package/src/buildCommon.js +4 -1
- package/src/buildMathML.js +2 -0
- package/src/functions/font.js +1 -1
- package/src/styles/katex.scss +1 -0
package/dist/katex.mjs
CHANGED
|
@@ -5960,6 +5960,10 @@ var fontMap = {
|
|
|
5960
5960
|
variant: "italic",
|
|
5961
5961
|
fontName: "Math-Italic"
|
|
5962
5962
|
},
|
|
5963
|
+
"mathsfit": {
|
|
5964
|
+
variant: "sans-serif-italic",
|
|
5965
|
+
fontName: "SansSerif-Italic"
|
|
5966
|
+
},
|
|
5963
5967
|
// "boldsymbol" is missing because they require the use of multiple fonts:
|
|
5964
5968
|
// Math-BoldItalic and Main-Bold. This is handled by a special case in
|
|
5965
5969
|
// makeOrd which ends up calling boldsymbol.
|
|
@@ -6912,6 +6916,8 @@ var getVariant = function getVariant(group, options) {
|
|
|
6912
6916
|
return "bold";
|
|
6913
6917
|
} else if (font === "mathbb") {
|
|
6914
6918
|
return "double-struck";
|
|
6919
|
+
} else if (font === "mathsfit") {
|
|
6920
|
+
return "sans-serif-italic";
|
|
6915
6921
|
} else if (font === "mathfrak") {
|
|
6916
6922
|
return "fraktur";
|
|
6917
6923
|
} else if (font === "mathscr" || font === "mathcal") {
|
|
@@ -11556,7 +11562,7 @@ var fontAliases = {
|
|
|
11556
11562
|
defineFunction({
|
|
11557
11563
|
type: "font",
|
|
11558
11564
|
names: [// styles, except \boldsymbol defined below
|
|
11559
|
-
"\\mathrm", "\\mathit", "\\mathbf", "\\mathnormal", // families
|
|
11565
|
+
"\\mathrm", "\\mathit", "\\mathbf", "\\mathnormal", "\\mathsfit", // families
|
|
11560
11566
|
"\\mathbb", "\\mathcal", "\\mathfrak", "\\mathscr", "\\mathsf", "\\mathtt", // aliases, except \bm defined below
|
|
11561
11567
|
"\\Bbb", "\\bold", "\\frak"],
|
|
11562
11568
|
props: {
|
|
@@ -18369,7 +18375,7 @@ var katex = {
|
|
|
18369
18375
|
/**
|
|
18370
18376
|
* Current KaTeX version
|
|
18371
18377
|
*/
|
|
18372
|
-
version: "0.16.
|
|
18378
|
+
version: "0.16.15",
|
|
18373
18379
|
|
|
18374
18380
|
/**
|
|
18375
18381
|
* Renders the given LaTeX into an HTML+MathML combination, and adds
|
package/package.json
CHANGED
package/src/buildCommon.js
CHANGED
|
@@ -700,7 +700,10 @@ const fontMap: {[string]: {| variant: FontVariant, fontName: string |}} = {
|
|
|
700
700
|
variant: "italic",
|
|
701
701
|
fontName: "Math-Italic",
|
|
702
702
|
},
|
|
703
|
-
|
|
703
|
+
"mathsfit": {
|
|
704
|
+
variant: "sans-serif-italic",
|
|
705
|
+
fontName: "SansSerif-Italic",
|
|
706
|
+
},
|
|
704
707
|
// "boldsymbol" is missing because they require the use of multiple fonts:
|
|
705
708
|
// Math-BoldItalic and Main-Bold. This is handled by a special case in
|
|
706
709
|
// makeOrd which ends up calling boldsymbol.
|
package/src/buildMathML.js
CHANGED
|
@@ -98,6 +98,8 @@ export const getVariant = function(
|
|
|
98
98
|
return "bold";
|
|
99
99
|
} else if (font === "mathbb") {
|
|
100
100
|
return "double-struck";
|
|
101
|
+
} else if (font === "mathsfit") {
|
|
102
|
+
return "sans-serif-italic";
|
|
101
103
|
} else if (font === "mathfrak") {
|
|
102
104
|
return "fraktur";
|
|
103
105
|
} else if (font === "mathscr" || font === "mathcal") {
|
package/src/functions/font.js
CHANGED
|
@@ -33,7 +33,7 @@ defineFunction({
|
|
|
33
33
|
type: "font",
|
|
34
34
|
names: [
|
|
35
35
|
// styles, except \boldsymbol defined below
|
|
36
|
-
"\\mathrm", "\\mathit", "\\mathbf", "\\mathnormal",
|
|
36
|
+
"\\mathrm", "\\mathit", "\\mathbf", "\\mathnormal", "\\mathsfit",
|
|
37
37
|
|
|
38
38
|
// families
|
|
39
39
|
"\\mathbb", "\\mathcal", "\\mathfrak", "\\mathscr", "\\mathsf",
|