typerighter 0.40.7 → 0.42.0

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.
@@ -1,7 +1,7 @@
1
- import { F as e, M as t, T as n, a as r, w as i } from "./shared-DMNZD2i1.js";
1
+ import { F as e, M as t, T as n, a as r, w as i } from "./shared-BMujDY3P.js";
2
2
  import { t as a } from "./es-ClqUVRJn.js";
3
3
  import { Fragment as o, computed as s, createApp as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createVNode as p, defineComponent as m, h, inject as g, markRaw as _, mergeProps as v, nextTick as y, openBlock as b, provide as x, reactive as ee, readonly as S, ref as C, renderList as w, renderSlot as T, resolveDynamicComponent as E, shallowRef as D, toDisplayString as O, unref as k, vModelText as te, watch as ne, withDirectives as re, withKeys as ie, withModifiers as ae } from "vue";
4
- //#region ../../node_modules/.pnpm/@lucide+vue@1.47.0_vue@3.5.42_typescript@6.0.3_/node_modules/@lucide/vue/dist/esm/shared/src/build/defaultAttributes.mjs
4
+ //#region ../../node_modules/.pnpm/@lucide+vue@1.47.0_vue@3.5.43_typescript@6.0.3_/node_modules/@lucide/vue/dist/esm/shared/src/build/defaultAttributes.mjs
5
5
  var A = {
6
6
  xmlns: "http://www.w3.org/2000/svg",
7
7
  width: 24,
@@ -14,7 +14,7 @@ var A = {
14
14
  "stroke-linejoin": "round"
15
15
  }, j = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim();
16
16
  //#endregion
17
- //#region ../../node_modules/.pnpm/@lucide+vue@1.47.0_vue@3.5.42_typescript@6.0.3_/node_modules/@lucide/vue/dist/esm/shared/src/build/buildLucideIconNode.mjs
17
+ //#region ../../node_modules/.pnpm/@lucide+vue@1.47.0_vue@3.5.43_typescript@6.0.3_/node_modules/@lucide/vue/dist/esm/shared/src/build/buildLucideIconNode.mjs
18
18
  function M(e) {
19
19
  return e != null;
20
20
  }
@@ -51,7 +51,7 @@ function oe(e, t = {}) {
51
51
  ];
52
52
  }
53
53
  //#endregion
54
- //#region ../../node_modules/.pnpm/@lucide+vue@1.47.0_vue@3.5.42_typescript@6.0.3_/node_modules/@lucide/vue/dist/esm/shared/src/utils/hasA11yProp.mjs
54
+ //#region ../../node_modules/.pnpm/@lucide+vue@1.47.0_vue@3.5.43_typescript@6.0.3_/node_modules/@lucide/vue/dist/esm/shared/src/utils/hasA11yProp.mjs
55
55
  var se = (e) => {
56
56
  for (let t in e) if (t.startsWith("aria-") || t === "role" || t === "title") return !0;
57
57
  return !1;
@@ -60,7 +60,7 @@ function ue() {
60
60
  return g(le, {});
61
61
  }
62
62
  //#endregion
63
- //#region ../../node_modules/.pnpm/@lucide+vue@1.47.0_vue@3.5.42_typescript@6.0.3_/node_modules/@lucide/vue/dist/esm/Icon.mjs
63
+ //#region ../../node_modules/.pnpm/@lucide+vue@1.47.0_vue@3.5.43_typescript@6.0.3_/node_modules/@lucide/vue/dist/esm/Icon.mjs
64
64
  var de = ({ name: e, iconNode: t, "icon-node": n, icon: r = {
65
65
  name: ce(e),
66
66
  node: t ?? n,
@@ -83,7 +83,7 @@ var de = ({ name: e, iconNode: t, "icon-node": n, icon: r = {
83
83
  return h("svg", T, [...E.map((e) => h(...e)), ...w ?? []]);
84
84
  };
85
85
  //#endregion
86
- //#region ../../node_modules/.pnpm/@lucide+vue@1.47.0_vue@3.5.42_typescript@6.0.3_/node_modules/@lucide/vue/dist/esm/createLucideIcon.mjs
86
+ //#region ../../node_modules/.pnpm/@lucide+vue@1.47.0_vue@3.5.43_typescript@6.0.3_/node_modules/@lucide/vue/dist/esm/createLucideIcon.mjs
87
87
  function P(e, t = []) {
88
88
  let n = typeof e == "string" ? {
89
89
  name: e,
@@ -1,4 +1,4 @@
1
- import { r as e, t } from "./vite-BlO1hmkO.js";
1
+ import { r as e, t } from "./vite-Dup9wBL7.js";
2
2
  import { n } from "./context-CSvoDxVt.js";
3
3
  import r from "node:path";
4
4
  import i from "picocolors";
@@ -363,7 +363,7 @@ function k() {
363
363
  }), process.on("unhandledRejection", (e) => {
364
364
  A("runtime", e instanceof Error ? e : Error(String(e)));
365
365
  }), i.command("[root]", "Start dev server").alias("dev").option("--port <port>", "Port to listen on").option("--host", "Expose to network").option("--fresh", "Start fresh, ignore cache from previous session").option("--verbose", "Print version and build info").action(async (e, n) => {
366
- n.verbose && console.log(`${O} cli v0.40.7 (built 10/9/2026, 3:48:13 AM)\n`), n.fresh && (process.env.TYPEDOWN_NO_CACHE = "1");
366
+ n.verbose && console.log(`${O} cli v0.42.0 (built 10/11/2026, 4:26:36 PM)\n`), n.fresh && (process.env.TYPEDOWN_NO_CACHE = "1");
367
367
  let r = await a({
368
368
  root: M(e),
369
369
  configFile: !1,
@@ -388,7 +388,7 @@ function k() {
388
388
  }
389
389
  process.exit(0);
390
390
  }), i.command("init [root]", "Scaffold a new project").option("--name <name>", "Project name").option("--title <title>", "Site title").option("--description <description>", "Site description").option("--yes", "Skip confirmation for existing projects").action(async (e, t) => {
391
- let { initialize: n } = await import("./init-D14LSLGH.js");
391
+ let { initialize: n } = await import("./init-vb1LEYkf.js");
392
392
  await n(M(e), t);
393
393
  }), i.command("preview [root]", "Preview production build").option("--port <port>", "Port to listen on").action(async (e, t) => {
394
394
  let r = M(e), i = n(r);
@@ -426,7 +426,7 @@ function k() {
426
426
  } finally {
427
427
  i.dispose();
428
428
  }
429
- }), i.help(), i.version("0.40.7"), i.parse();
429
+ }), i.help(), i.version("0.42.0"), i.parse();
430
430
  }
431
431
  function A(e, t) {
432
432
  let n = t instanceof Error ? t.message : String(t);
@@ -434,7 +434,7 @@ function A(e, t) {
434
434
  }
435
435
  async function j(e) {
436
436
  let t = await (await e.getTdContext()).rpc.getVersion();
437
- console.log(`${O} cli v0.40.7 (built 10/9/2026, 3:48:13 AM)`), console.log(`${O} rpc v${t}`), console.log("");
437
+ console.log(`${O} cli v0.42.0 (built 10/11/2026, 4:26:36 PM)`), console.log(`${O} rpc v${t}`), console.log("");
438
438
  }
439
439
  function M(e) {
440
440
  return r.resolve(e ?? process.cwd());
package/dist/cli.js CHANGED
@@ -1,2 +1 @@
1
- import { t as e } from "./cli-s8kXR6K0.js";
2
- export { e as cli };
1
+ export { t as cli } from "./cli-xL59SSOm.js";
@@ -1,7 +1,7 @@
1
- import { A as e, C as t, E as n, F as r, I as i, L as a, N as o, O as s, W as c, X as l, Y as u, _ as d, a as f, b as p, c as m, f as h, k as g, l as _, n as v, p as y, r as b, s as x, v as S, w as C, y as w } from "../shared-DMNZD2i1.js";
2
- import { t as T } from "../temml-DZbhOfRE.js";
1
+ import { A as e, C as t, E as n, F as r, I as i, L as a, N as o, O as s, W as c, X as l, Y as u, _ as d, a as f, b as p, c as m, f as h, k as g, l as _, n as v, p as y, r as b, s as x, v as S, w as C, y as w } from "../shared-BMujDY3P.js";
2
+ import { t as T } from "../temml-D47Z4xZ2.js";
3
3
  import { t as ee } from "../es-ClqUVRJn.js";
4
- import { A as te, C as ne, D as E, E as re, F as ie, I as D, M as ae, N as oe, O as se, P as ce, S as le, T as ue, _ as de, a as fe, b as pe, c as O, d as k, f as me, g as he, h as ge, i as _e, j as ve, k as ye, m as A, n as be, o as xe, p as Se, r as j, s as Ce, u as we, v as Te, w as Ee, x as De, y as Oe } from "../app-OdN7kiy-.js";
4
+ import { A as te, C as ne, D as E, E as re, F as ie, I as D, M as ae, N as oe, O as se, P as ce, S as le, T as ue, _ as de, a as fe, b as pe, c as O, d as k, f as me, g as he, h as ge, i as _e, j as ve, k as ye, m as A, n as be, o as xe, p as Se, r as j, s as Ce, u as we, v as Te, w as Ee, x as De, y as Oe } from "../app-xAspP0Kq.js";
5
5
  import { a as ke, i as Ae, n as je, t as Me } from "../brand-CG1fQshq.js";
6
6
  import { Fragment as M, Teleport as Ne, computed as N, createBlock as P, createCommentVNode as F, createElementBlock as I, createElementVNode as L, createTextVNode as R, createVNode as z, defineComponent as B, getCurrentScope as Pe, markRaw as Fe, mergeModels as Ie, mergeProps as Le, nextTick as Re, normalizeClass as V, normalizeStyle as ze, onBeforeUnmount as Be, onMounted as Ve, onScopeDispose as He, onUnmounted as Ue, openBlock as H, readonly as We, ref as U, renderList as W, renderSlot as Ge, resolveComponent as Ke, resolveDynamicComponent as G, shallowReadonly as qe, shallowRef as Je, toDisplayString as K, toValue as Ye, unref as q, useModel as Xe, useTemplateRef as Ze, vModelText as Qe, watch as J, watchEffect as $e, withCtx as et, withDirectives as tt, withKeys as nt, withModifiers as rt } from "vue";
7
7
  var it = D({
@@ -879,7 +879,7 @@ var $n = {
879
879
  });
880
880
  };
881
881
  //#endregion
882
- //#region ../../node_modules/.pnpm/@floating-ui+vue@2.0.1_vue@3.5.42_typescript@6.0.3_/node_modules/@floating-ui/vue/dist/floating-ui.vue.mjs
882
+ //#region ../../node_modules/.pnpm/@floating-ui+vue@2.0.1_vue@3.5.43_typescript@6.0.3_/node_modules/@floating-ui/vue/dist/floating-ui.vue.mjs
883
883
  function ar(e) {
884
884
  return typeof e == "object" && !!e && "$el" in e;
885
885
  }
@@ -945,14 +945,7 @@ function ur(e, t, n) {
945
945
  typeof v == "function" && (v(), v = void 0);
946
946
  }
947
947
  function x() {
948
- if (b(), r === void 0) {
949
- y();
950
- return;
951
- }
952
- if (l.value != null && u.value != null) {
953
- v = r(l.value, u.value, y);
954
- return;
955
- }
948
+ b(), r === void 0 ? y() : l.value != null && u.value != null && (v = r(l.value, u.value, y));
956
949
  }
957
950
  function S() {
958
951
  i.value || (g.value = !1);
@@ -1212,9 +1205,9 @@ var dr = /*#__PURE__*/ A(/* @__PURE__ */ B({
1212
1205
  t.value = !t.value;
1213
1206
  }
1214
1207
  return J(t, (e) => {
1215
- typeof document > "u" || (e ? document.addEventListener("click", r) : document.removeEventListener("click", r));
1208
+ typeof document < "u" && (e ? document.addEventListener("click", r) : document.removeEventListener("click", r));
1216
1209
  }), Ue(() => {
1217
- typeof document > "u" || document.removeEventListener("click", r);
1210
+ typeof document < "u" && document.removeEventListener("click", r);
1218
1211
  }), (e, r) => (H(), I("span", Le({
1219
1212
  ref_key: "wrapper",
1220
1213
  ref: n
@@ -1891,7 +1884,7 @@ function oa(e) {
1891
1884
  }), Ue(() => {
1892
1885
  window.removeEventListener("scroll", a), r !== void 0 && cancelAnimationFrame(r);
1893
1886
  }), J(e, (e) => {
1894
- typeof window > "u" || Re(() => o(e));
1887
+ typeof window < "u" && Re(() => o(e));
1895
1888
  }, { immediate: !0 }), t;
1896
1889
  }
1897
1890
  function sa(e) {
@@ -2044,11 +2037,7 @@ function ya() {
2044
2037
  let s = y(o, 150);
2045
2038
  function c(e) {
2046
2039
  let t = e.trim();
2047
- if (t.length === 0) {
2048
- n.value = [], r.value = !1;
2049
- return;
2050
- }
2051
- r.value = !0, s(t);
2040
+ t.length === 0 ? (n.value = [], r.value = !1) : (r.value = !0, s(t));
2052
2041
  }
2053
2042
  function d() {
2054
2043
  r.value = !1;
@@ -2318,7 +2307,7 @@ function za() {
2318
2307
  return;
2319
2308
  }
2320
2309
  let a = i.closest("th");
2321
- e && e !== a && (e.classList.remove("is-near-border"), e = void 0), !(!a || !a.nextElementSibling) && (n(a, r.clientX) ? (a.classList.add("is-near-border"), e = a) : (a.classList.remove("is-near-border"), e = void 0));
2310
+ e && e !== a && (e.classList.remove("is-near-border"), e = void 0), a && a.nextElementSibling && (n(a, r.clientX) ? (a.classList.add("is-near-border"), e = a) : (a.classList.remove("is-near-border"), e = void 0));
2322
2311
  }
2323
2312
  function i(e) {
2324
2313
  let r = e.target?.closest(".td-content th");
@@ -2419,11 +2408,7 @@ var Ga = { class: "td-header" }, Ka = { class: "td-header-left" }, qa = ["href"]
2419
2408
  J(() => m.path, () => u()), Ma(), Ua();
2420
2409
  let h = Ze("sidebarSearch"), g = Ze("menuSearch");
2421
2410
  function _() {
2422
- if (g.value?.isFocused || h.value?.isFocused) {
2423
- g.value?.blur(), h.value?.blur(), c.value && u();
2424
- return;
2425
- }
2426
- c.value ? g.value?.focus() : h.value?.isVisible ? h.value.focus() : (l(), Re(() => g.value?.focus()));
2411
+ g.value?.isFocused || h.value?.isFocused ? (g.value?.blur(), h.value?.blur(), c.value && u()) : c.value ? g.value?.focus() : h.value?.isVisible ? h.value.focus() : (l(), Re(() => g.value?.focus()));
2427
2412
  }
2428
2413
  Pa([$.Control, $.k], _), Pa([$.Meta, $.k], _), $e(() => {
2429
2414
  if (typeof document > "u") return;
package/dist/client.js CHANGED
@@ -1,2 +1 @@
1
- import { a as e, c as t, i as n, l as r, r as i, s as a, t as o } from "./app-OdN7kiy-.js";
2
- export { a as Content, o as createTypedownApp, t as useRoute, r as useRouter, i as useSiteConfig, n as useSiteData, e as useTdContent };
1
+ export { s as Content, t as createTypedownApp, c as useRoute, l as useRouter, r as useSiteConfig, i as useSiteData, a as useTdContent } from "./app-xAspP0Kq.js";
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- import { n as e, r as t, t as n } from "./vite-BlO1hmkO.js";
2
- import { t as r } from "./cli-s8kXR6K0.js";
1
+ import { n as e, r as t, t as n } from "./vite-Dup9wBL7.js";
2
+ import { t as r } from "./cli-xL59SSOm.js";
3
3
  export { t as buildSite, r as cli, e as generateClientAppEntry, n as typedown };
@@ -101,20 +101,16 @@ var m = (() => {
101
101
  if (n.hard && i > t) {
102
102
  let e = t - c, n = 1 + Math.floor((i - e - 1) / t);
103
103
  Math.floor((i - 1) / t) < n && s.push(""), F(s, r, t), c = S(s.at(-1) ?? "");
104
- continue;
105
- }
106
- if (c + i > t && c && i) {
107
- if (n.wordWrap === !1 && c < t) {
108
- F(s, r, t), c = S(s.at(-1) ?? "");
109
- continue;
104
+ } else {
105
+ if (c + i > t && c && i) {
106
+ if (n.wordWrap === !1 && c < t) {
107
+ F(s, r, t), c = S(s.at(-1) ?? "");
108
+ continue;
109
+ }
110
+ s.push(""), c = 0;
110
111
  }
111
- s.push(""), c = 0;
112
- }
113
- if (c + i > t && n.wordWrap === !1) {
114
- F(s, r, t), c = S(s.at(-1) ?? "");
115
- continue;
112
+ c + i > t && n.wordWrap === !1 ? (F(s, r, t), c = S(s.at(-1) ?? "")) : (s[s.length - 1] += r, c += i);
116
113
  }
117
- s[s.length - 1] += r, c += i;
118
114
  }
119
115
  n.trim !== !1 && (s = s.map((e) => ae(e)));
120
116
  let l = s.join("\n"), u = !1;
@@ -750,7 +746,7 @@ function He(e) {
750
746
  build: "typerighter build",
751
747
  preview: "typerighter preview"
752
748
  },
753
- devDependencies: { typerighter: "^0.40.7" }
749
+ devDependencies: { typerighter: "^0.42.0" }
754
750
  }, void 0, 2) + "\n";
755
751
  }
756
752
  function Ue() {
@@ -1,4 +1,4 @@
1
- import { W as e, c as t, i as n } from "./shared-DMNZD2i1.js";
1
+ import { W as e, c as t, i as n } from "./shared-BMujDY3P.js";
2
2
  //#region src/node/lib/htmlTemplate.ts
3
3
  function r(e) {
4
4
  let n = t(e.title), r = t(e.description), i = e.siteTitle !== void 0 && e.title !== e.siteTitle ? `${n} - ${t(e.siteTitle)}` : n, a = e.origin ?? "", o = e.canonicalUrl === void 0 ? void 0 : a + e.canonicalUrl, s = o === void 0 ? "" : `\n <link rel="canonical" href="${t(o)}">`, c = o === void 0 ? "" : `\n <meta property="og:url" content="${t(o)}">`, l = e.ogImagePath === void 0 ? `${a}${e.base}og-image.png` : `${a}${e.ogImagePath}`, u = e.author === void 0 ? "" : `\n <meta name="author" content="${t(e.author)}">`, d = e.siteTitle === void 0 ? "" : `\n <meta property="og:site_name" content="${t(e.siteTitle)}">`, f = a === "" ? "" : `\n <link rel="alternate" type="application/rss+xml" title="${e.siteTitle === void 0 ? "RSS Feed" : t(e.siteTitle)}" href="${a}${e.base}feed.xml">`, p = (e.jsonLdBlocks ?? []).map((e) => `\n <script type="application/ld+json">${e}<\/script>`).join(""), m = e.headExtra === void 0 ? "" : e.headExtra + "\n";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/node/build/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACE,KAAK,YAAY,EACzB,MAAM,MAAM,CAAC;AAcd,OAAO,KAAK,EACV,UAAU,EACX,MAAM,YAAY,CAAC;AAOpB,MAAM,WAAW,YAAY;IAC3B,6DAA6D;IAC7D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sCAAsC;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uCAAuC;IACvC,UAAU,CAAC,EAAE,YAAY,CAAC;CAC3B;AAGD,wBAAsB,SAAS,CAAE,GAAG,EAAE,UAAU,EAAE,OAAO,GAAE,YAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CA0M3F"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/node/build/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACE,KAAK,YAAY,EACzB,MAAM,MAAM,CAAC;AAcd,OAAO,KAAK,EACV,UAAU,EACX,MAAM,YAAY,CAAC;AAOpB,MAAM,WAAW,YAAY;IAC3B,6DAA6D;IAC7D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sCAAsC;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uCAAuC;IACvC,UAAU,CAAC,EAAE,YAAY,CAAC;CAC3B;AAGD,wBAAsB,SAAS,CAAE,GAAG,EAAE,UAAU,EAAE,OAAO,GAAE,YAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAwM3F"}
@@ -8,4 +8,5 @@ export declare const SITE_DATA_ID = "@typedown/site-data";
8
8
  export declare const RESOLVED_SITE_DATA_ID: string;
9
9
  export declare const SEARCH_INDEX_ID = "@typedown/search-index";
10
10
  export declare const RESOLVED_SEARCH_INDEX_ID: string;
11
+ export declare const PAGE_DATA_EVENT = "typedown:page-data";
11
12
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/node/plugin/vite/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,kBAAkB,CAAC;AAC9C,eAAO,MAAM,uBAAuB,QAAwB,CAAC;AAE7D,eAAO,MAAM,QAAQ,oBAAoB,CAAC;AAC1C,eAAO,MAAM,iBAAiB,QAAkB,CAAC;AACjD,eAAO,MAAM,gBAAgB,QAA0B,CAAC;AACxD,eAAO,MAAM,yBAAyB,QAA0B,CAAC;AAEjE,eAAO,MAAM,YAAY,wBAAwB,CAAC;AAClD,eAAO,MAAM,qBAAqB,QAAsB,CAAC;AAEzD,eAAO,MAAM,eAAe,2BAA2B,CAAC;AACxD,eAAO,MAAM,wBAAwB,QAAyB,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/node/plugin/vite/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,kBAAkB,CAAC;AAC9C,eAAO,MAAM,uBAAuB,QAAwB,CAAC;AAE7D,eAAO,MAAM,QAAQ,oBAAoB,CAAC;AAC1C,eAAO,MAAM,iBAAiB,QAAkB,CAAC;AACjD,eAAO,MAAM,gBAAgB,QAA0B,CAAC;AACxD,eAAO,MAAM,yBAAyB,QAA0B,CAAC;AAEjE,eAAO,MAAM,YAAY,wBAAwB,CAAC;AAClD,eAAO,MAAM,qBAAqB,QAAsB,CAAC;AAEzD,eAAO,MAAM,eAAe,2BAA2B,CAAC;AACxD,eAAO,MAAM,wBAAwB,QAAyB,CAAC;AAE/D,eAAO,MAAM,eAAe,uBAAuB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/node/plugin/vite/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAEL,KAAK,MAAM,EACZ,MAAM,MAAM,CAAC;AAOd,OAAO,EACiC,KAAK,UAAU,EACtD,MAAM,eAAe,CAAC;AAiCvB,OAAO,EACL,QAAQ,IAAI,sBAAsB,EAClC,KAAK,eAAe,IAAI,qBAAqB,GAC9C,MAAM,eAAe,CAAC;AAEvB,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,qBAAqB;IAEpC,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,wDAAwD;IACxD,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,QAAQ,CAAE,OAAO,GAAE,qBAA0B,GAAG,MAAM,EAAE,CA8TvE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/node/plugin/vite/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAEL,KAAK,MAAM,EACZ,MAAM,MAAM,CAAC;AAOd,OAAO,EACiC,KAAK,UAAU,EACtD,MAAM,eAAe,CAAC;AAiCvB,OAAO,EACL,QAAQ,IAAI,sBAAsB,EAClC,KAAK,eAAe,IAAI,qBAAqB,GAC9C,MAAM,eAAe,CAAC;AAEvB,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,qBAAqB;IAEpC,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,wDAAwD;IACxD,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,QAAQ,CAAE,OAAO,GAAE,qBAA0B,GAAG,MAAM,EAAE,CA+TvE"}
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../../../src/node/plugin/vite/virtual/app.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACd,MAAM,MAAM,CAAC;AAOd,OAAO,EAEL,KAAK,aAAa,EACnB,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EACV,eAAe,EAChB,MAAM,6BAA6B,CAAC;AAKrC,MAAM,WAAW,eAAe;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE;QACJ,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,EAAE,CAAC;CACL;AAED,qBAAa,UAAW,YAAW,aAAa;IACxC,IAAI,CAAE,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC;IAStD,UAAU,CAAE,MAAM,EAAE,aAAa,GAAG,IAAI;CAGzC;AAGD,wBAAgB,QAAQ,CAAE,OAAO,EAAE,eAAe,GAAG,MAAM,CAkF1D"}
1
+ {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../../../src/node/plugin/vite/virtual/app.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACd,MAAM,MAAM,CAAC;AAQd,OAAO,EAEL,KAAK,aAAa,EACnB,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EACV,eAAe,EAChB,MAAM,6BAA6B,CAAC;AAKrC,MAAM,WAAW,eAAe;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE;QACJ,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,EAAE,CAAC;CACL;AAED,qBAAa,UAAW,YAAW,aAAa;IACxC,IAAI,CAAE,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC;IAStD,UAAU,CAAE,MAAM,EAAE,aAAa,GAAG,IAAI;CAGzC;AAGD,wBAAgB,QAAQ,CAAE,OAAO,EAAE,eAAe,GAAG,MAAM,CA2F1D"}
@@ -7,6 +7,7 @@ export declare class VirtualPages implements VirtualModule {
7
7
  isPageDataModule(resolvedId: string): boolean;
8
8
  loadPageData(resolvedId: string, context: TypedownContext): Promise<string>;
9
9
  invalidatePageData(server: ViteDevServer, filepath: string): void;
10
+ sendPageData(server: ViteDevServer, context: TypedownContext, filepath: string): void;
10
11
  invalidate(server: ViteDevServer): void;
11
12
  }
12
13
  //# sourceMappingURL=pages.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pages.d.ts","sourceRoot":"","sources":["../../../../../src/node/plugin/vite/virtual/pages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACd,MAAM,MAAM,CAAC;AAKd,OAAO,EAEL,KAAK,aAAa,EACnB,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EACV,eAAe,EAChB,MAAM,6BAA6B,CAAC;AAKrC,qBAAa,YAAa,YAAW,aAAa;IAC1C,IAAI,CAAE,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC;IAQtD,eAAe,CAAE,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAMhD,gBAAgB,CAAE,UAAU,EAAE,MAAM,GAAG,OAAO;IAIxC,YAAY,CAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC;IAQlF,kBAAkB,CAAE,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI;IAIlE,UAAU,CAAE,MAAM,EAAE,aAAa,GAAG,IAAI;CAGzC"}
1
+ {"version":3,"file":"pages.d.ts","sourceRoot":"","sources":["../../../../../src/node/plugin/vite/virtual/pages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACd,MAAM,MAAM,CAAC;AAKd,OAAO,EAEL,KAAK,aAAa,EACnB,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EACV,eAAe,EAChB,MAAM,6BAA6B,CAAC;AAKrC,qBAAa,YAAa,YAAW,aAAa;IAC1C,IAAI,CAAE,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC;IAQtD,eAAe,CAAE,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAMhD,gBAAgB,CAAE,UAAU,EAAE,MAAM,GAAG,OAAO;IAIxC,YAAY,CAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC;IAQlF,kBAAkB,CAAE,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI;IAKlE,YAAY,CAAE,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI;IAmBtF,UAAU,CAAE,MAAM,EAAE,aAAa,GAAG,IAAI;CAGzC"}
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/node/plugin/vite/virtual/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACd,MAAM,MAAM,CAAC;AACd,OAAO,KAAK,EACV,eAAe,EAChB,MAAM,6BAA6B,CAAC;AAErC,MAAM,WAAW,aAAa;IAC5B,IAAI,CAAE,OAAO,EAAE,eAAe,GAAG,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC1D,UAAU,CAAE,MAAM,EAAE,aAAa,GAAG,IAAI,CAAC;CAC1C;AAGD,wBAAgB,uBAAuB,CAAE,MAAM,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI,CAqBxF"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/node/plugin/vite/virtual/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACd,MAAM,MAAM,CAAC;AACd,OAAO,KAAK,EACV,eAAe,EAChB,MAAM,6BAA6B,CAAC;AAErC,MAAM,WAAW,aAAa;IAC5B,IAAI,CAAC,OAAO,EAAE,eAAe,GAAG,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACzD,UAAU,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI,CAAC;CACzC;AAGD,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,aAAa,EACrB,UAAU,EAAE,MAAM,GACjB,IAAI,CAsBN"}
@@ -1,12 +1,12 @@
1
- import { P as e } from "./shared-DMNZD2i1.js";
2
- import { a as t, i as n, n as r, o as i, r as a, s as o, t as s } from "./jsonld-BoEW-5KW.js";
1
+ import { P as e } from "./shared-BMujDY3P.js";
2
+ import { a as t, i as n, n as r, o as i, r as a, s as o, t as s } from "./jsonld-Du1iJ_fG.js";
3
3
  import { pathToFileURL as c } from "node:url";
4
4
  import { parentPort as l, workerData as u } from "node:worker_threads";
5
5
  //#region src/node/build/prerenderWorker.ts
6
- var d = u, f = await import(c(d.ssrEntryPath).href);
6
+ var d = u, f = await (await import(c(d.ssrEntryPath).href)).createRenderer();
7
7
  l.on("message", async (c) => {
8
8
  try {
9
- let u = await f.render(c), p = i(u.pageData), m = t(u.pageData), h = a(u.pageData), g = d.base + e(c), _ = [s({
9
+ let u = await f(c), p = i(u.pageData), m = t(u.pageData), h = a(u.pageData), g = d.base + e(c), _ = [s({
10
10
  title: p,
11
11
  description: m,
12
12
  canonicalUrl: g,
@@ -24,15 +24,15 @@ export interface PageData {
24
24
  fileMetadata?: FileMetadata;
25
25
  seoMetadata?: SeoMeta;
26
26
  }
27
+ export interface PageModule {
28
+ pageData: PageData;
29
+ default: Component;
30
+ }
27
31
  export interface SeoMeta {
28
32
  title?: string;
29
33
  description?: string;
30
34
  image?: string;
31
35
  }
32
- export interface PageModule {
33
- pageData: PageData;
34
- default: Component;
35
- }
36
36
  export interface TypedownData {
37
37
  /** Page-level data from the .td file */
38
38
  page: Ref<PageData>;
@@ -1 +1 @@
1
- {"version":3,"file":"ssg.d.ts","sourceRoot":"","sources":["../../../src/shared/types/ssg.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EAAE,GAAG,EACf,MAAM,KAAK,CAAC;AACb,OAAO,KAAK,EACV,WAAW,EAAE,YAAY,EAC1B,MAAM,WAAW,CAAC;AAEnB,MAAM,WAAW,eAAe;IAC9B,0BAA0B;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,kDAAkD;IAClD,KAAK,EAAE,MAAM,CAAC;IACd,+DAA+D;IAC/D,SAAS,EAAE,MAAM,CAAC;IAClB,uCAAuC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,mCAAmC;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,eAAe,EAAE,CAAC;CAC7B;AAED,MAAM,WAAW,QAAQ;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,QAAQ,EAAE,eAAe,EAAE,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,OAAO;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,EAAE,SAAS,CAAC;CACpB;AAED,MAAM,WAAW,YAAY;IAC3B,wCAAwC;IACxC,IAAI,EAAE,GAAG,CAAC,QAAQ,CAAC,CAAC;IACpB,yBAAyB;IACzB,WAAW,EAAE,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAC1C,iBAAiB;IACjB,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACnB,sBAAsB;IACtB,MAAM,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;CACtB"}
1
+ {"version":3,"file":"ssg.d.ts","sourceRoot":"","sources":["../../../src/shared/types/ssg.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EAAE,GAAG,EACf,MAAM,KAAK,CAAC;AACb,OAAO,KAAK,EACV,WAAW,EAAE,YAAY,EAC1B,MAAM,WAAW,CAAC;AAEnB,MAAM,WAAW,eAAe;IAC9B,0BAA0B;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,kDAAkD;IAClD,KAAK,EAAE,MAAM,CAAC;IACd,+DAA+D;IAC/D,SAAS,EAAE,MAAM,CAAC;IAClB,uCAAuC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,mCAAmC;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,eAAe,EAAE,CAAC;CAC7B;AAED,MAAM,WAAW,QAAQ;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,QAAQ,EAAE,eAAe,EAAE,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,EAAE,SAAS,CAAC;CACpB;AAED,MAAM,WAAW,OAAO;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,YAAY;IAC3B,wCAAwC;IACxC,IAAI,EAAE,GAAG,CAAC,QAAQ,CAAC,CAAC;IACpB,yBAAyB;IACzB,WAAW,EAAE,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAC1C,iBAAiB;IACjB,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACnB,sBAAsB;IACtB,MAAM,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;CACtB"}
@@ -245,7 +245,7 @@ function z(e, t) {
245
245
  let n = 0, r;
246
246
  return (...i) => {
247
247
  let a = Date.now();
248
- a - n >= t ? (n = a, e(...i)) : (clearTimeout(r), r = setTimeout(() => {
248
+ t <= a - n ? (n = a, e(...i)) : (clearTimeout(r), r = setTimeout(() => {
249
249
  n = Date.now(), e(...i);
250
250
  }, t - (a - n)));
251
251
  };
package/dist/shared.js CHANGED
@@ -1,2 +1 @@
1
- import { A as e, B as t, C as n, D as r, E as i, F as a, G as o, J as s, K as c, M as l, N as u, O as d, P as f, S as p, T as m, U as h, W as g, X as _, Y as v, _ as y, a as b, b as x, c as S, d as C, f as w, g as T, h as E, i as D, j as O, k, l as A, m as j, n as M, o as N, p as P, q as F, r as I, s as L, t as R, u as z, v as B, w as V, x as H, y as U } from "./shared-DMNZD2i1.js";
2
- export { c as CONTENT_EXTENSIONS, F as CONTENT_GLOB, o as EXTERNAL_URL_RE, s as INDEX_FILENAME, v as SEARCH_FIELDS, _ as SEARCH_STORE_FIELDS, E as buildContentTree, T as buildDirectoryListingMap, P as debounce, S as escapeHtml, L as escapeRegex, R as formatAbsoluteTime, M as formatDateString, I as formatEditTime, D as formatIsoDate, b as formatRelativeTime, N as formatTime, H as getAnchor, p as getDirectoryFromPageUrl, n as getDirectoryUrl, V as getIndexUrl, y as getNodeIndexItem, m as getParentUrl, i as getTdContentUrl, B as getTdIndexTitle, U as getTdResourceTitle, r as getUrlPath, w as isBuiltinField, x as isIndexFile, d as isIndexUrl, k as isUrlAncestorOf, e as isUrlExternal, O as isUrlToPage, h as parseNumericPrefix, t as path, l as resolveRootUrl, A as sanitizeInlineHtml, u as stripAnchor, z as stripHtml, f as stripLeadingSlash, a as stripTrailingSlash, j as throttle, C as unescapeHtml, g as unslugify };
1
+ export { K as CONTENT_EXTENSIONS, q as CONTENT_GLOB, G as EXTERNAL_URL_RE, J as INDEX_FILENAME, Y as SEARCH_FIELDS, X as SEARCH_STORE_FIELDS, h as buildContentTree, g as buildDirectoryListingMap, p as debounce, c as escapeHtml, s as escapeRegex, t as formatAbsoluteTime, n as formatDateString, r as formatEditTime, i as formatIsoDate, a as formatRelativeTime, o as formatTime, x as getAnchor, S as getDirectoryFromPageUrl, C as getDirectoryUrl, w as getIndexUrl, _ as getNodeIndexItem, T as getParentUrl, E as getTdContentUrl, v as getTdIndexTitle, y as getTdResourceTitle, D as getUrlPath, f as isBuiltinField, b as isIndexFile, O as isIndexUrl, k as isUrlAncestorOf, A as isUrlExternal, j as isUrlToPage, U as parseNumericPrefix, B as path, M as resolveRootUrl, l as sanitizeInlineHtml, N as stripAnchor, u as stripHtml, P as stripLeadingSlash, F as stripTrailingSlash, m as throttle, d as unescapeHtml, W as unslugify } from "./shared-BMujDY3P.js";
@@ -399,30 +399,30 @@ function Te(e, t, n) {
399
399
  a.length > 0 && i.push(new x("mrow", a)), i.push(n), a = [];
400
400
  let e = new x("mtd", i);
401
401
  e.style.textAlign = "left", r.push(new x("mtr", [e])), i = [], s += 1;
402
- continue;
403
- }
404
- if (a.push(n), n.type && n.type === "mo" && n.children.length === 1 && !(n.attributes.form && n.attributes.form === "prefix") && !Object.prototype.hasOwnProperty.call(n.attributes, "movablelimits")) {
405
- let r = n.children[0].text;
406
- if (t === "=" && r === "=") {
407
- if (o += 1, o > 1) {
408
- a.pop();
409
- let e = new x("mrow", a);
410
- i.push(e), a = [n];
411
- }
412
- } else if (t === "tex") {
413
- let t = s < e.length - 1 ? e[s + 1] : null, n = !0;
414
- if (!(t && t.type === "mtext" && t.attributes.linebreak && t.attributes.linebreak === "nobreak")) for (let t = s + 1; t < e.length; t++) {
415
- let r = e[t];
416
- if (r.type && r.type === "mspace" && !(r.attributes.linebreak && r.attributes.linebreak === "newline")) a.push(r), s += 1, r.attributes && r.attributes.linebreak && r.attributes.linebreak === "nobreak" && (n = !1);
417
- else break;
418
- }
419
- if (n) {
420
- let e = new x("mrow", a);
421
- i.push(e), a = [];
402
+ } else {
403
+ if (a.push(n), n.type && n.type === "mo" && n.children.length === 1 && !(n.attributes.form && n.attributes.form === "prefix") && !Object.prototype.hasOwnProperty.call(n.attributes, "movablelimits")) {
404
+ let r = n.children[0].text;
405
+ if (t === "=" && r === "=") {
406
+ if (o += 1, o > 1) {
407
+ a.pop();
408
+ let e = new x("mrow", a);
409
+ i.push(e), a = [n];
410
+ }
411
+ } else if (t === "tex") {
412
+ let t = s < e.length - 1 ? e[s + 1] : null, n = !0;
413
+ if (!(t && t.type === "mtext" && t.attributes.linebreak && t.attributes.linebreak === "nobreak")) for (let t = s + 1; t < e.length; t++) {
414
+ let r = e[t];
415
+ if (r.type && r.type === "mspace" && !(r.attributes.linebreak && r.attributes.linebreak === "newline")) a.push(r), s += 1, r.attributes && r.attributes.linebreak && r.attributes.linebreak === "nobreak" && (n = !1);
416
+ else break;
417
+ }
418
+ if (n) {
419
+ let e = new x("mrow", a);
420
+ i.push(e), a = [];
421
+ }
422
422
  }
423
423
  }
424
+ s += 1;
424
425
  }
425
- s += 1;
426
426
  }
427
427
  if (a.length > 0) {
428
428
  let e = new x("mrow", a);
@@ -509,24 +509,17 @@ var Ae = (e, t) => {
509
509
  for (let n = 0; n < e.length; n++) i.push(V(e[n], t));
510
510
  for (let t = 0; t < i.length; t++) {
511
511
  let n = i[t];
512
- if (t < e.length - 1 && je(e[t]) && je(e[t + 1]) && n.setAttribute("rspace", "0em"), t > 0 && je(e[t]) && je(e[t - 1]) && n.setAttribute("lspace", "0em"), n.type === "mn" && a && a.type === "mn") {
513
- a.children.push(...n.children);
514
- continue;
515
- }
516
- if (ke(n) && a && a.type === "mn") {
517
- a.children.push(...n.children);
518
- continue;
519
- }
520
- if (a && a.type === "mn" && t < i.length - 1 && i[t + 1].type === "mn" && Ae(e, t)) {
521
- a.children.push(...n.children);
522
- continue;
523
- }
524
- if (n.type === "mn" && ke(a)) n.children = [...a.children, ...n.children], r.pop();
525
- else if ((n.type === "msup" || n.type === "msub") && n.children.length >= 1 && a && (a.type === "mn" || ke(a))) {
526
- let e = n.children[0];
527
- e instanceof x && e.type === "mn" && a && (e.children = [...a.children, ...e.children], r.pop());
512
+ if (t < e.length - 1 && je(e[t]) && je(e[t + 1]) && n.setAttribute("rspace", "0em"), t > 0 && je(e[t]) && je(e[t - 1]) && n.setAttribute("lspace", "0em"), n.type === "mn" && a && a.type === "mn") a.children.push(...n.children);
513
+ else if (ke(n) && a && a.type === "mn") a.children.push(...n.children);
514
+ else if (a && a.type === "mn" && t < i.length - 1 && i[t + 1].type === "mn" && Ae(e, t)) a.children.push(...n.children);
515
+ else {
516
+ if (n.type === "mn" && ke(a)) n.children = [...a.children, ...n.children], r.pop();
517
+ else if ((n.type === "msup" || n.type === "msub") && n.children.length >= 1 && a && (a.type === "mn" || ke(a))) {
518
+ let e = n.children[0];
519
+ e instanceof x && e.type === "mn" && a && (e.children = [...a.children, ...e.children], r.pop());
520
+ }
521
+ r.push(n), a = n;
528
522
  }
529
- r.push(n), a = n;
530
523
  }
531
524
  return r;
532
525
  }, B = function(e, t, n = !1) {