remons-render-markdown 1.0.3 → 1.0.6
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/index.css +1 -1
- package/dist/index.mjs +136 -109
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -458,7 +458,7 @@ function Le(e, t) {
|
|
|
458
458
|
let n = parseInt(e.slice(r + 4, r + 6), 16);
|
|
459
459
|
if ((n & 192) == 128) {
|
|
460
460
|
let e = a << 6 & 1984 | n & 63;
|
|
461
|
-
e < 128 ?
|
|
461
|
+
t += e < 128 ? "��" : String.fromCharCode(e), r += 3;
|
|
462
462
|
continue;
|
|
463
463
|
}
|
|
464
464
|
}
|
|
@@ -466,7 +466,7 @@ function Le(e, t) {
|
|
|
466
466
|
let n = parseInt(e.slice(r + 4, r + 6), 16), i = parseInt(e.slice(r + 7, r + 9), 16);
|
|
467
467
|
if ((n & 192) == 128 && (i & 192) == 128) {
|
|
468
468
|
let e = a << 12 & 61440 | n << 6 & 4032 | i & 63;
|
|
469
|
-
e < 2048 || e >= 55296 && e <= 57343 ?
|
|
469
|
+
t += e < 2048 || e >= 55296 && e <= 57343 ? "���" : String.fromCharCode(e), r += 6;
|
|
470
470
|
continue;
|
|
471
471
|
}
|
|
472
472
|
}
|
|
@@ -1159,10 +1159,7 @@ un.prototype.renderAttrs = function(e) {
|
|
|
1159
1159
|
r += e[i].content;
|
|
1160
1160
|
break;
|
|
1161
1161
|
case "softbreak":
|
|
1162
|
-
case "hardbreak":
|
|
1163
|
-
r += "\n";
|
|
1164
|
-
break;
|
|
1165
|
-
default:
|
|
1162
|
+
case "hardbreak": r += "\n";
|
|
1166
1163
|
}
|
|
1167
1164
|
return r;
|
|
1168
1165
|
}, un.prototype.render = function(e, t, n) {
|
|
@@ -1410,13 +1407,13 @@ function Fn(e, t) {
|
|
|
1410
1407
|
l = o.index + 1;
|
|
1411
1408
|
let p = o[0] === "'", m = 32;
|
|
1412
1409
|
if (o.index - 1 >= 0) m = c.charCodeAt(o.index - 1);
|
|
1413
|
-
else for (n = a - 1; n >= 0 &&
|
|
1410
|
+
else for (n = a - 1; n >= 0 && e[n].type !== "softbreak" && e[n].type !== "hardbreak"; n--) if (e[n].content) {
|
|
1414
1411
|
m = e[n].content.charCodeAt(e[n].content.length - 1);
|
|
1415
1412
|
break;
|
|
1416
1413
|
}
|
|
1417
1414
|
let h = 32;
|
|
1418
1415
|
if (l < u) h = c.charCodeAt(l);
|
|
1419
|
-
else for (n = a + 1; n < e.length &&
|
|
1416
|
+
else for (n = a + 1; n < e.length && e[n].type !== "softbreak" && e[n].type !== "hardbreak"; n++) if (e[n].content) {
|
|
1420
1417
|
h = e[n].content.charCodeAt(0);
|
|
1421
1418
|
break;
|
|
1422
1419
|
}
|
|
@@ -1488,10 +1485,13 @@ function Bn(e, t, n, r) {
|
|
|
1488
1485
|
let i = this.src;
|
|
1489
1486
|
for (let e = 0, t = 0, n = 0, r = 0, a = i.length, o = !1; t < a; t++) {
|
|
1490
1487
|
let s = i.charCodeAt(t);
|
|
1491
|
-
if (!o)
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1488
|
+
if (!o) {
|
|
1489
|
+
if (O(s)) {
|
|
1490
|
+
n++, s === 9 ? r += 4 - r % 4 : r++;
|
|
1491
|
+
continue;
|
|
1492
|
+
}
|
|
1493
|
+
o = !0;
|
|
1494
|
+
}
|
|
1495
1495
|
(s === 10 || t === a - 1) && (s !== 10 && t++, this.bMarks.push(e), this.eMarks.push(t), this.tShift.push(n), this.sCount.push(r), this.bsCount.push(0), o = !1, n = 0, r = 0, e = t + 1);
|
|
1496
1496
|
}
|
|
1497
1497
|
this.bMarks.push(i.length), this.eMarks.push(i.length), this.tShift.push(0), this.sCount.push(0), this.bsCount.push(0), this.lineMax = this.bMarks.length - 1;
|
|
@@ -1831,7 +1831,8 @@ function $n(e, t, n, r) {
|
|
|
1831
1831
|
if (e === 93) {
|
|
1832
1832
|
l = i;
|
|
1833
1833
|
break;
|
|
1834
|
-
}
|
|
1834
|
+
}
|
|
1835
|
+
if (e === 10) {
|
|
1835
1836
|
let e = s(o);
|
|
1836
1837
|
e !== null && (c += e, a = c.length, o++);
|
|
1837
1838
|
} else if (e === 92 && (i++, i < a && c.charCodeAt(i) === 10)) {
|
|
@@ -1871,7 +1872,9 @@ function $n(e, t, n, r) {
|
|
|
1871
1872
|
if (i < a && c.charCodeAt(i) !== 10 && g) for (g = "", i = f, o = p; i < a && O(c.charCodeAt(i));) i++;
|
|
1872
1873
|
if (i < a && c.charCodeAt(i) !== 10) return !1;
|
|
1873
1874
|
let _ = en(c.slice(1, l));
|
|
1874
|
-
return _ ?
|
|
1875
|
+
return _ ?
|
|
1876
|
+
/* istanbul ignore if */
|
|
1877
|
+
r ? !0 : (e.env.references === void 0 && (e.env.references = {}), e.env.references[_] === void 0 && (e.env.references[_] = {
|
|
1875
1878
|
title: g,
|
|
1876
1879
|
href: d
|
|
1877
1880
|
}), e.line = o, !0) : !1;
|
|
@@ -2170,7 +2173,7 @@ function dr(e) {
|
|
|
2170
2173
|
function fr(e, t) {
|
|
2171
2174
|
let n = e.pos;
|
|
2172
2175
|
for (; n < e.posMax && !dr(e.src.charCodeAt(n));) n++;
|
|
2173
|
-
return n
|
|
2176
|
+
return n !== e.pos && (t || (e.pending += e.src.slice(e.pos, n)), e.pos = n, !0);
|
|
2174
2177
|
}
|
|
2175
2178
|
//#endregion
|
|
2176
2179
|
//#region node_modules/.store/markdown-it@14.3.0/node_modules/markdown-it/lib/rules_inline/linkify.mjs
|
|
@@ -2207,12 +2210,15 @@ function hr(e, t) {
|
|
|
2207
2210
|
let n = e.pos;
|
|
2208
2211
|
if (e.src.charCodeAt(n) !== 10) return !1;
|
|
2209
2212
|
let r = e.pending.length - 1, i = e.posMax;
|
|
2210
|
-
if (!t)
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2213
|
+
if (!t) {
|
|
2214
|
+
if (r >= 0 && e.pending.charCodeAt(r) === 32) {
|
|
2215
|
+
if (r >= 1 && e.pending.charCodeAt(r - 1) === 32) {
|
|
2216
|
+
let t = r - 1;
|
|
2217
|
+
for (; t >= 1 && e.pending.charCodeAt(t - 1) === 32;) t--;
|
|
2218
|
+
e.pending = e.pending.slice(0, t), e.push("hardbreak", "br", 0);
|
|
2219
|
+
} else e.pending = e.pending.slice(0, -1), e.push("softbreak", "br", 0);
|
|
2220
|
+
} else e.push("softbreak", "br", 0);
|
|
2221
|
+
}
|
|
2216
2222
|
for (n++; n < i && O(e.src.charCodeAt(n));) n++;
|
|
2217
2223
|
return e.pos = n, !0;
|
|
2218
2224
|
}
|
|
@@ -2246,7 +2252,7 @@ function _r(e, t) {
|
|
|
2246
2252
|
let o = "\\" + a;
|
|
2247
2253
|
if (!t) {
|
|
2248
2254
|
let t = e.push("text_special", "", 0);
|
|
2249
|
-
i < 256 && gr[i] !== 0 ?
|
|
2255
|
+
t.content = i < 256 && gr[i] !== 0 ? a : o, t.markup = o, t.info = "escape";
|
|
2250
2256
|
}
|
|
2251
2257
|
return e.pos = n + 1, !0;
|
|
2252
2258
|
}
|
|
@@ -2818,7 +2824,7 @@ var li = 2147483647, ui = 36, di = 1, fi = 26, pi = 38, mi = 700, hi = 72, gi =
|
|
|
2818
2824
|
overflow: "Overflow: input needs wider integers to process",
|
|
2819
2825
|
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
2820
2826
|
"invalid-input": "Invalid input"
|
|
2821
|
-
}, Si =
|
|
2827
|
+
}, Si = 35, Ci = Math.floor, wi = String.fromCharCode;
|
|
2822
2828
|
function Ti(e) {
|
|
2823
2829
|
throw RangeError(xi[e]);
|
|
2824
2830
|
}
|
|
@@ -3913,7 +3919,7 @@ var uc = (e) => e.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">
|
|
|
3913
3919
|
let { name: n = "tabs", openRender: r = (t, r, i, a, o, s) => {
|
|
3914
3920
|
let { active: c, data: l } = t, u = r[i];
|
|
3915
3921
|
u.attrJoin("class", `${n}-tabs-wrapper`), u.meta.id && u.attrJoin("data-id", u.meta.id);
|
|
3916
|
-
let d = l.map(({ title: t, id: r }, i) => `<button type="button" class="${n}-tab-button${c === i ? " active" : ""}" data-tab="${i}"${r ? ` data-id="${uc(r)}"` : ""}${c === i ? " data-active" : ""}>${
|
|
3922
|
+
let d = l.map(({ title: t, id: r }, i) => `<button type="button" class="${n}-tab-button${c === i ? " active" : ""}" data-tab="${i}"${r ? ` data-id="${uc(r)}"` : ""}${c === i ? " data-active" : ""}>${e.renderInline(t)}</button>`);
|
|
3917
3923
|
return `\
|
|
3918
3924
|
<div${s.renderAttrs(u)}>
|
|
3919
3925
|
<div class="${n}-tabs-header">
|
|
@@ -3937,7 +3943,13 @@ var uc = (e) => e.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">
|
|
|
3937
3943
|
"reference",
|
|
3938
3944
|
"blockquote",
|
|
3939
3945
|
"list"
|
|
3940
|
-
] }), e.renderer.rules[`${n}_tabs_open`] = (e, t, n, i, a) =>
|
|
3946
|
+
] }), e.renderer.rules[`${n}_tabs_open`] = (e, t, n, i, a) => {
|
|
3947
|
+
let o = s(e, t);
|
|
3948
|
+
return r(o, e, t, n, i, a);
|
|
3949
|
+
}, e.renderer.rules[`${n}_tabs_close`] = i, e.renderer.rules[`${n}_tab_open`] = (e, t, n, r, i) => {
|
|
3950
|
+
let o = vc(e, t);
|
|
3951
|
+
return a(o, e, t, n, r, i);
|
|
3952
|
+
}, e.renderer.rules[`${n}_tab_close`] = o;
|
|
3941
3953
|
}, bc = (e, t) => (n, r, i, a) => {
|
|
3942
3954
|
if (n.sCount[r] - n.blkIndent >= 4 || n.level !== 0 && !t) return !1;
|
|
3943
3955
|
let o = n.bMarks[r] + n.tShift[r], s = n.eMarks[r];
|
|
@@ -19456,7 +19468,8 @@ var mu = {
|
|
|
19456
19468
|
if (b === "main" || !b) return Au(i, Wu("textrm", c, l), r, t, a.concat(c, l));
|
|
19457
19469
|
var x = Wu(b, c, l);
|
|
19458
19470
|
return Au(i, x, r, t, a.concat(x, c, l));
|
|
19459
|
-
}
|
|
19471
|
+
}
|
|
19472
|
+
throw Error("unexpected type: " + n + " in makeOrd");
|
|
19460
19473
|
}, Pu = (e, t) => {
|
|
19461
19474
|
if (xl(e.classes) !== xl(t.classes) || e.skew !== t.skew || e.maxFontSize !== t.maxFontSize || e.italic !== 0 && e.hasClass("mathnormal")) return !1;
|
|
19462
19475
|
if (e.classes.length === 1) {
|
|
@@ -19857,7 +19870,8 @@ var rd = function(e) {
|
|
|
19857
19870
|
r.height *= i, r.depth *= i;
|
|
19858
19871
|
}
|
|
19859
19872
|
return r;
|
|
19860
|
-
}
|
|
19873
|
+
}
|
|
19874
|
+
throw new A("Got group of unknown type: '" + e.type + "'");
|
|
19861
19875
|
};
|
|
19862
19876
|
function hd(e, t) {
|
|
19863
19877
|
var n = K(["base"], e, t), r = K(["strut"]);
|
|
@@ -19930,7 +19944,7 @@ var X = class {
|
|
|
19930
19944
|
}
|
|
19931
19945
|
}, yd = class {
|
|
19932
19946
|
constructor(e) {
|
|
19933
|
-
this.width = void 0, this.character = void 0, this.width = e, e >= .05555 && e <= .05556 ?
|
|
19947
|
+
this.width = void 0, this.character = void 0, this.width = e, this.character = e >= .05555 && e <= .05556 ? " " : e >= .1666 && e <= .1667 ? " " : e >= .2222 && e <= .2223 ? " " : e >= .2777 && e <= .2778 ? " " : e >= -.05556 && e <= -.05555 ? " " : e >= -.1667 && e <= -.1666 ? " " : e >= -.2223 && e <= -.2222 ? " " : e >= -.2778 && e <= -.2777 ? " " : null;
|
|
19934
19948
|
}
|
|
19935
19949
|
toNode() {
|
|
19936
19950
|
if (this.character) return document.createTextNode(this.character);
|
|
@@ -19984,10 +19998,12 @@ function Ed(e) {
|
|
|
19984
19998
|
if (e.type === "mi" && e.children.length === 1) {
|
|
19985
19999
|
var t = e.children[0];
|
|
19986
20000
|
return t instanceof vd && t.text === ".";
|
|
19987
|
-
}
|
|
20001
|
+
}
|
|
20002
|
+
if (e.type === "mo" && e.children.length === 1 && e.getAttribute("separator") === "true" && e.getAttribute("lspace") === "0em" && e.getAttribute("rspace") === "0em") {
|
|
19988
20003
|
var n = e.children[0];
|
|
19989
20004
|
return n instanceof vd && n.text === ",";
|
|
19990
|
-
}
|
|
20005
|
+
}
|
|
20006
|
+
return !1;
|
|
19991
20007
|
}
|
|
19992
20008
|
var Dd = function(e, t, n) {
|
|
19993
20009
|
if (e.length === 1) {
|
|
@@ -20000,13 +20016,16 @@ var Dd = function(e, t, n) {
|
|
|
20000
20016
|
if (s.type === "mtext" && a.type === "mtext" && s.getAttribute("mathvariant") === a.getAttribute("mathvariant")) {
|
|
20001
20017
|
a.children.push(...s.children);
|
|
20002
20018
|
continue;
|
|
20003
|
-
}
|
|
20019
|
+
}
|
|
20020
|
+
if (s.type === "mn" && a.type === "mn") {
|
|
20004
20021
|
a.children.push(...s.children);
|
|
20005
20022
|
continue;
|
|
20006
|
-
}
|
|
20023
|
+
}
|
|
20024
|
+
if (Ed(s) && a.type === "mn") {
|
|
20007
20025
|
a.children.push(...s.children);
|
|
20008
20026
|
continue;
|
|
20009
|
-
}
|
|
20027
|
+
}
|
|
20028
|
+
if (s.type === "mn" && Ed(a)) s.children = [...a.children, ...s.children], i.pop();
|
|
20010
20029
|
else if ((s.type === "msup" || s.type === "msub") && s.children.length >= 1 && (a.type === "mn" || Ed(a))) {
|
|
20011
20030
|
var c = s.children[0];
|
|
20012
20031
|
c instanceof X && c.type === "mn" && (c.children = [...a.children, ...c.children], i.pop());
|
|
@@ -20591,44 +20610,43 @@ var Pd = function(e) {
|
|
|
20591
20610
|
minWidth: 0,
|
|
20592
20611
|
height: s
|
|
20593
20612
|
};
|
|
20594
|
-
}
|
|
20595
|
-
|
|
20596
|
-
|
|
20597
|
-
|
|
20598
|
-
|
|
20599
|
-
|
|
20600
|
-
|
|
20601
|
-
|
|
20602
|
-
|
|
20603
|
-
|
|
20604
|
-
|
|
20605
|
-
|
|
20606
|
-
|
|
20607
|
-
|
|
20608
|
-
|
|
20609
|
-
|
|
20610
|
-
|
|
20611
|
-
|
|
20612
|
-
|
|
20613
|
-
|
|
20614
|
-
|
|
20615
|
-
|
|
20616
|
-
|
|
20617
|
-
|
|
20618
|
-
|
|
20619
|
-
|
|
20620
|
-
|
|
20621
|
-
minWidth: f,
|
|
20622
|
-
height: m
|
|
20623
|
-
};
|
|
20624
|
-
b.style.height = N(m), l.push(b);
|
|
20625
|
-
}
|
|
20626
|
-
return {
|
|
20627
|
-
span: K(["stretchy"], l, t),
|
|
20613
|
+
}
|
|
20614
|
+
var l = [], u = Bd[r];
|
|
20615
|
+
if (!u) throw Error("No SVG data for \"" + r + "\".");
|
|
20616
|
+
var [d, f, p] = u, m = p / 1e3, h = d.length, g, _;
|
|
20617
|
+
if (h === 1) {
|
|
20618
|
+
if (u.length !== 4) throw Error("Expected 4-tuple for single-path SVG data \"" + r + "\".");
|
|
20619
|
+
g = ["hide-tail"], _ = [u[3]];
|
|
20620
|
+
} else if (h === 2) g = ["halfarrow-left", "halfarrow-right"], _ = ["xMinYMin", "xMaxYMin"];
|
|
20621
|
+
else if (h === 3) g = [
|
|
20622
|
+
"brace-left",
|
|
20623
|
+
"brace-center",
|
|
20624
|
+
"brace-right"
|
|
20625
|
+
], _ = [
|
|
20626
|
+
"xMinYMin",
|
|
20627
|
+
"xMidYMin",
|
|
20628
|
+
"xMaxYMin"
|
|
20629
|
+
];
|
|
20630
|
+
else throw Error("Correct katexImagesData or update code here to support\n " + h + " children.");
|
|
20631
|
+
for (var v = 0; v < h; v++) {
|
|
20632
|
+
var y = new Ml([new Nl(d[v])], {
|
|
20633
|
+
width: "400em",
|
|
20634
|
+
height: N(m),
|
|
20635
|
+
viewBox: "0 0 " + n + " " + p,
|
|
20636
|
+
preserveAspectRatio: _[v] + " slice"
|
|
20637
|
+
}), b = Lu([g[v]], [y], t);
|
|
20638
|
+
if (h === 1) return {
|
|
20639
|
+
span: b,
|
|
20628
20640
|
minWidth: f,
|
|
20629
20641
|
height: m
|
|
20630
20642
|
};
|
|
20643
|
+
b.style.height = N(m), l.push(b);
|
|
20631
20644
|
}
|
|
20645
|
+
return {
|
|
20646
|
+
span: K(["stretchy"], l, t),
|
|
20647
|
+
minWidth: f,
|
|
20648
|
+
height: m
|
|
20649
|
+
};
|
|
20632
20650
|
}
|
|
20633
20651
|
var { span: r, minWidth: i, height: a } = n();
|
|
20634
20652
|
return r.height = a, r.style.height = N(a), i > 0 && (r.style.minWidth = N(i)), r;
|
|
@@ -21177,18 +21195,20 @@ function lf(e) {
|
|
|
21177
21195
|
type: "ordgroup",
|
|
21178
21196
|
mode: "math",
|
|
21179
21197
|
body: []
|
|
21180
|
-
}, !"=|.".includes(l))
|
|
21181
|
-
for (var
|
|
21182
|
-
|
|
21183
|
-
|
|
21184
|
-
|
|
21198
|
+
}, !"=|.".includes(l)) {
|
|
21199
|
+
if ("<>AV".includes(l)) for (var d = 0; d < 2; d++) {
|
|
21200
|
+
for (var f = !0, p = c + 1; p < o.length; p++) {
|
|
21201
|
+
if (sf(o[p], l)) {
|
|
21202
|
+
f = !1, c = p;
|
|
21203
|
+
break;
|
|
21204
|
+
}
|
|
21205
|
+
if (of(o[p])) throw new A("Missing a " + l + " character to complete a CD arrow.", o[p]);
|
|
21206
|
+
u[d].body.push(o[p]);
|
|
21185
21207
|
}
|
|
21186
|
-
if (
|
|
21187
|
-
u[d].body.push(o[p]);
|
|
21208
|
+
if (f) throw new A("Missing a " + l + " character to complete a CD arrow.", o[c]);
|
|
21188
21209
|
}
|
|
21189
|
-
|
|
21210
|
+
else throw new A("Expected one of \"<>AV=|.\" after @", o[c]);
|
|
21190
21211
|
}
|
|
21191
|
-
else throw new A("Expected one of \"<>AV=|.\" after @", o[c]);
|
|
21192
21212
|
var m = {
|
|
21193
21213
|
type: "styling",
|
|
21194
21214
|
body: [cf(l, u, e)],
|
|
@@ -22030,9 +22050,7 @@ var Xf = (e, t) => {
|
|
|
22030
22050
|
r.setAttribute("style", "border: " + N(i) + " solid " + e.borderColor);
|
|
22031
22051
|
}
|
|
22032
22052
|
break;
|
|
22033
|
-
case "\\xcancel":
|
|
22034
|
-
r.setAttribute("notation", "updiagonalstrike downdiagonalstrike");
|
|
22035
|
-
break;
|
|
22053
|
+
case "\\xcancel": r.setAttribute("notation", "updiagonalstrike downdiagonalstrike");
|
|
22036
22054
|
}
|
|
22037
22055
|
return e.backgroundColor && r.setAttribute("mathbackground", e.backgroundColor), r;
|
|
22038
22056
|
};
|
|
@@ -23894,18 +23912,20 @@ J({
|
|
|
23894
23912
|
mathmlBuilder: (e, t) => {
|
|
23895
23913
|
for (var n = Dd(e.body, t.withFont("mathrm")), r = !0, i = 0; i < n.length; i++) {
|
|
23896
23914
|
var a = n[i];
|
|
23897
|
-
if (!(a instanceof yd))
|
|
23898
|
-
|
|
23899
|
-
|
|
23900
|
-
|
|
23901
|
-
|
|
23902
|
-
|
|
23903
|
-
|
|
23904
|
-
|
|
23905
|
-
|
|
23906
|
-
|
|
23915
|
+
if (!(a instanceof yd)) {
|
|
23916
|
+
if (a instanceof X) switch (a.type) {
|
|
23917
|
+
case "mi":
|
|
23918
|
+
case "mn":
|
|
23919
|
+
case "mspace":
|
|
23920
|
+
case "mtext": break;
|
|
23921
|
+
case "mo":
|
|
23922
|
+
var o = a.children[0];
|
|
23923
|
+
a.children.length === 1 && o instanceof vd ? o.text = o.text.replace(/\u2212/, "-").replace(/\u2217/, "*") : r = !1;
|
|
23924
|
+
break;
|
|
23925
|
+
default: r = !1;
|
|
23926
|
+
}
|
|
23927
|
+
else r = !1;
|
|
23907
23928
|
}
|
|
23908
|
-
else r = !1;
|
|
23909
23929
|
}
|
|
23910
23930
|
r && (n = [new vd(n.map((e) => e.toText()).join(""))]);
|
|
23911
23931
|
var s = new X("mi", n);
|
|
@@ -24229,7 +24249,8 @@ J({
|
|
|
24229
24249
|
elem: p
|
|
24230
24250
|
}]
|
|
24231
24251
|
})]), d], t);
|
|
24232
|
-
}
|
|
24252
|
+
}
|
|
24253
|
+
return K(["mord", "sqrt"], [d], t);
|
|
24233
24254
|
},
|
|
24234
24255
|
mathmlBuilder(e, t) {
|
|
24235
24256
|
var { body: n, index: r } = e;
|
|
@@ -24428,9 +24449,11 @@ nd({
|
|
|
24428
24449
|
if (e.mode === "text") {
|
|
24429
24450
|
var r = Nu(e, t, "textord");
|
|
24430
24451
|
return r.classes.push(n), r;
|
|
24431
|
-
}
|
|
24432
|
-
|
|
24433
|
-
|
|
24452
|
+
}
|
|
24453
|
+
return K(["mspace", n], [ju(e.text, e.mode, t)], t);
|
|
24454
|
+
}
|
|
24455
|
+
if (Rp.hasOwnProperty(e.text)) return K(["mspace", Rp[e.text]], [], t);
|
|
24456
|
+
throw new A("Unknown type of space \"" + e.text + "\"");
|
|
24434
24457
|
},
|
|
24435
24458
|
mathmlBuilder(e, t) {
|
|
24436
24459
|
var n;
|
|
@@ -24732,10 +24755,11 @@ $("\\char", function(e) {
|
|
|
24732
24755
|
var t = e.popToken(), n, r = 0;
|
|
24733
24756
|
if (t.text === "'") n = 8, t = e.popToken();
|
|
24734
24757
|
else if (t.text === "\"") n = 16, t = e.popToken();
|
|
24735
|
-
else if (t.text === "`")
|
|
24736
|
-
|
|
24737
|
-
|
|
24738
|
-
|
|
24758
|
+
else if (t.text === "`") {
|
|
24759
|
+
if (t = e.popToken(), t.text[0] === "\\") r = t.text.charCodeAt(1);
|
|
24760
|
+
else if (t.text === "EOF") throw new A("\\char` missing argument");
|
|
24761
|
+
else r = t.text.charCodeAt(0);
|
|
24762
|
+
} else n = 10;
|
|
24739
24763
|
if (n) {
|
|
24740
24764
|
if (r = im[t.text], r == null || r >= n) throw new A("Invalid base-" + n + " digit " + t.text);
|
|
24741
24765
|
for (var i; (i = im[e.future().text]) != null && i < n;) r *= n, r += i, e.popToken();
|
|
@@ -24935,12 +24959,14 @@ var dm = {
|
|
|
24935
24959
|
else if (i.text === "}") {
|
|
24936
24960
|
if (--a, a === -1) throw new A("Extra }", i);
|
|
24937
24961
|
} else if (i.text === "EOF") throw new A("Unexpected end of input in a macro argument, expected '" + (e && n ? e[o] : "}") + "'", i);
|
|
24938
|
-
if (e && n)
|
|
24939
|
-
if (
|
|
24940
|
-
|
|
24941
|
-
|
|
24942
|
-
|
|
24943
|
-
|
|
24962
|
+
if (e && n) {
|
|
24963
|
+
if ((a === 0 || a === 1 && e[o] === "{") && i.text === e[o]) {
|
|
24964
|
+
if (++o, o === e.length) {
|
|
24965
|
+
t.splice(-o, o);
|
|
24966
|
+
break;
|
|
24967
|
+
}
|
|
24968
|
+
} else o = 0;
|
|
24969
|
+
}
|
|
24944
24970
|
} while (a !== 0 || n);
|
|
24945
24971
|
return r.text === "{" && t[t.length - 1].text === "}" && (t.pop(), t.shift()), t.reverse(), {
|
|
24946
24972
|
tokens: t,
|
|
@@ -25591,7 +25617,8 @@ var dm = {
|
|
|
25591
25617
|
e[t],
|
|
25592
25618
|
o
|
|
25593
25619
|
], []) : this.callFunction(n, [a, o], [])];
|
|
25594
|
-
}
|
|
25620
|
+
}
|
|
25621
|
+
return e;
|
|
25595
25622
|
}
|
|
25596
25623
|
handleSupSubscript(e) {
|
|
25597
25624
|
var t = this.fetch(), n = t.text;
|
|
@@ -26667,8 +26694,7 @@ var _h = Se.bind({
|
|
|
26667
26694
|
document.removeEventListener("keydown", t), document.body.style.overflow = "";
|
|
26668
26695
|
};
|
|
26669
26696
|
}, [e]), !e) return null;
|
|
26670
|
-
let f = o && !e ? null : c
|
|
26671
|
-
return ie(/* @__PURE__ */ T("div", {
|
|
26697
|
+
let f = o && !e ? null : c, p = /* @__PURE__ */ T("div", {
|
|
26672
26698
|
className: xh("modal-mask", "modal-mask-visible"),
|
|
26673
26699
|
onClick: u,
|
|
26674
26700
|
children: /* @__PURE__ */ E("div", {
|
|
@@ -26697,7 +26723,8 @@ var _h = Se.bind({
|
|
|
26697
26723
|
})
|
|
26698
26724
|
]
|
|
26699
26725
|
})
|
|
26700
|
-
})
|
|
26726
|
+
});
|
|
26727
|
+
return ie(p, document.body);
|
|
26701
26728
|
}, Ch = [{
|
|
26702
26729
|
externalsName: "mermaid",
|
|
26703
26730
|
url: "https://registry.npmmirror.com/mermaid/11.16.1/files/dist/mermaid.min.js"
|
|
@@ -27654,7 +27681,7 @@ function n_(e) {
|
|
|
27654
27681
|
t && window.cancelAnimationFrame(t), e.setState("__resizeTimeout", window.requestAnimationFrame(() => $g(e)));
|
|
27655
27682
|
}
|
|
27656
27683
|
function r_(e, t) {
|
|
27657
|
-
if (!e.getState("isInitialized") ||
|
|
27684
|
+
if (!e.getState("isInitialized") || t.key !== "Tab" && t.keyCode !== 9) return;
|
|
27658
27685
|
let n = e.getState("__activeElement"), r = e.getState("popover")?.wrapper, i = xg([...r ? [r] : [], ...n ? [n] : []]), a = i[0], o = i[i.length - 1];
|
|
27659
27686
|
t.preventDefault(), t.shiftKey ? (i[i.indexOf(document.activeElement) - 1] || o)?.focus() : (i[i.indexOf(document.activeElement) + 1] || a)?.focus();
|
|
27660
27687
|
}
|
package/package.json
CHANGED