marked-katex-extension 4.0.0 → 4.0.1
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/lib/index.umd.js +14 -4
- package/package.json +4 -4
package/lib/index.umd.js
CHANGED
|
@@ -5176,6 +5176,10 @@
|
|
|
5176
5176
|
defineSymbol(text, main, textord, _ch3, wideChar);
|
|
5177
5177
|
wideChar = String.fromCharCode(0xD835, 0xDD04 + _i3); // A-Z a-z Fractur
|
|
5178
5178
|
|
|
5179
|
+
defineSymbol(math, main, mathord, _ch3, wideChar);
|
|
5180
|
+
defineSymbol(text, main, textord, _ch3, wideChar);
|
|
5181
|
+
wideChar = String.fromCharCode(0xD835, 0xDD6C + _i3); // A-Z a-z bold Fractur
|
|
5182
|
+
|
|
5179
5183
|
defineSymbol(math, main, mathord, _ch3, wideChar);
|
|
5180
5184
|
defineSymbol(text, main, textord, _ch3, wideChar);
|
|
5181
5185
|
wideChar = String.fromCharCode(0xD835, 0xDDA0 + _i3); // A-Z a-z sans-serif
|
|
@@ -5283,8 +5287,9 @@
|
|
|
5283
5287
|
["mathfrak", "textfrak", "Fraktur-Regular"], // a-z Fraktur
|
|
5284
5288
|
["mathbb", "textbb", "AMS-Regular"], // A-Z double-struck
|
|
5285
5289
|
["mathbb", "textbb", "AMS-Regular"], // k double-struck
|
|
5286
|
-
|
|
5287
|
-
["", "", ""], //
|
|
5290
|
+
// Note that we are using a bold font, but font metrics for regular Fraktur.
|
|
5291
|
+
["mathboldfrak", "textboldfrak", "Fraktur-Regular"], // A-Z bold Fraktur
|
|
5292
|
+
["mathboldfrak", "textboldfrak", "Fraktur-Regular"], // a-z bold Fraktur
|
|
5288
5293
|
["mathsf", "textsf", "SansSerif-Regular"], // A-Z sans-serif
|
|
5289
5294
|
["mathsf", "textsf", "SansSerif-Regular"], // a-z sans-serif
|
|
5290
5295
|
["mathboldsf", "textboldsf", "SansSerif-Bold"], // A-Z bold sans-serif
|
|
@@ -5460,10 +5465,15 @@
|
|
|
5460
5465
|
|
|
5461
5466
|
var isFont = mode === "math" || mode === "text" && options.font;
|
|
5462
5467
|
var fontOrFamily = isFont ? options.font : options.fontFamily;
|
|
5468
|
+
var wideFontName = "";
|
|
5469
|
+
var wideFontClass = "";
|
|
5463
5470
|
|
|
5464
5471
|
if (text.charCodeAt(0) === 0xD835) {
|
|
5472
|
+
[wideFontName, wideFontClass] = wideCharacterFont(text, mode);
|
|
5473
|
+
}
|
|
5474
|
+
|
|
5475
|
+
if (wideFontName.length > 0) {
|
|
5465
5476
|
// surrogate pairs get special treatment
|
|
5466
|
-
var [wideFontName, wideFontClass] = wideCharacterFont(text, mode);
|
|
5467
5477
|
return makeSymbol(text, wideFontName, mode, options, classes.concat(wideFontClass));
|
|
5468
5478
|
} else if (fontOrFamily) {
|
|
5469
5479
|
var fontName;
|
|
@@ -18315,7 +18325,7 @@
|
|
|
18315
18325
|
/**
|
|
18316
18326
|
* Current KaTeX version
|
|
18317
18327
|
*/
|
|
18318
|
-
version: "0.16.
|
|
18328
|
+
version: "0.16.9",
|
|
18319
18329
|
|
|
18320
18330
|
/**
|
|
18321
18331
|
* Renders the given LaTeX into an HTML+MathML combination, and adds
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "marked-katex-extension",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "MarkedJS extesion to render katex",
|
|
5
5
|
"main": "./lib/index.cjs",
|
|
6
6
|
"module": "./src/index.js",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@semantic-release/changelog": "^6.0.3",
|
|
51
51
|
"@semantic-release/commit-analyzer": "^11.0.0",
|
|
52
52
|
"@semantic-release/git": "^10.0.1",
|
|
53
|
-
"@semantic-release/github": "^9.
|
|
53
|
+
"@semantic-release/github": "^9.2.1",
|
|
54
54
|
"@semantic-release/npm": "^11.0.0",
|
|
55
55
|
"@semantic-release/release-notes-generator": "^12.0.0",
|
|
56
56
|
"babel-jest": "^29.7.0",
|
|
@@ -63,12 +63,12 @@
|
|
|
63
63
|
"jest-cli": "^29.7.0",
|
|
64
64
|
"marked": "^9.0.3",
|
|
65
65
|
"node-fetch": "^3.3.2",
|
|
66
|
-
"rollup": "^3.29.
|
|
66
|
+
"rollup": "^3.29.4",
|
|
67
67
|
"semantic-release": "^22.0.5",
|
|
68
68
|
"tsd": "^0.29.0"
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
71
|
"@types/katex": "^0.16.3",
|
|
72
|
-
"katex": "^0.16.
|
|
72
|
+
"katex": "^0.16.9"
|
|
73
73
|
}
|
|
74
74
|
}
|