@oxide/react-asciidoc 1.1.1--canary.1074715.0 → 1.1.2
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/react-asciidoc.js +57 -57
- package/dist/react-asciidoc.umd.cjs +5 -5
- package/package.json +1 -1
package/dist/react-asciidoc.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import ee, { Fragment as qr, createElement as G, createContext as Ve, useContext as te } from "react";
|
|
2
|
-
import
|
|
2
|
+
import D from "html-react-parser";
|
|
3
3
|
import { default as Ft } from "html-react-parser";
|
|
4
4
|
var Kr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
5
5
|
function Be(r) {
|
|
@@ -262,18 +262,18 @@ function $e() {
|
|
|
262
262
|
if (L && g && typeof L.stack == "string") {
|
|
263
263
|
for (var b = L.stack.split(`
|
|
264
264
|
`), T = g.stack.split(`
|
|
265
|
-
`), A = b.length - 1,
|
|
266
|
-
|
|
267
|
-
for (; A >= 1 &&
|
|
268
|
-
if (b[A] !== T[
|
|
269
|
-
if (A !== 1 ||
|
|
265
|
+
`), A = b.length - 1, S = T.length - 1; A >= 1 && S >= 0 && b[A] !== T[S]; )
|
|
266
|
+
S--;
|
|
267
|
+
for (; A >= 1 && S >= 0; A--, S--)
|
|
268
|
+
if (b[A] !== T[S]) {
|
|
269
|
+
if (A !== 1 || S !== 1)
|
|
270
270
|
do
|
|
271
|
-
if (A--,
|
|
271
|
+
if (A--, S--, S < 0 || b[A] !== T[S]) {
|
|
272
272
|
var _ = `
|
|
273
273
|
` + b[A].replace(" at new ", " at ");
|
|
274
274
|
return t.displayName && _.includes("<anonymous>") && (_ = _.replace("<anonymous>", t.displayName)), typeof t == "function" && sr.set(t, _), _;
|
|
275
275
|
}
|
|
276
|
-
while (A >= 1 &&
|
|
276
|
+
while (A >= 1 && S >= 0);
|
|
277
277
|
break;
|
|
278
278
|
}
|
|
279
279
|
}
|
|
@@ -462,8 +462,8 @@ function $e() {
|
|
|
462
462
|
v[q] === void 0 && (v[q] = A[q]);
|
|
463
463
|
}
|
|
464
464
|
if (b || T) {
|
|
465
|
-
var
|
|
466
|
-
b && Ae(v,
|
|
465
|
+
var S = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
|
|
466
|
+
b && Ae(v, S), T && De(v, S);
|
|
467
467
|
}
|
|
468
468
|
return ke(t, b, T, x, g, K.current, v);
|
|
469
469
|
}
|
|
@@ -590,9 +590,9 @@ Check the top-level render call using <` + d + ">.");
|
|
|
590
590
|
var A;
|
|
591
591
|
t === null ? A = "null" : gr(t) ? A = "array" : t !== void 0 && t.$$typeof === a ? (A = "<" + (U(t.type) || "Unknown") + " />", b = " Did you accidentally export a JSX literal instead of a component?") : A = typeof t, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", A, b);
|
|
592
592
|
}
|
|
593
|
-
var
|
|
594
|
-
if (
|
|
595
|
-
return
|
|
593
|
+
var S = Se(t, l, d, x, q);
|
|
594
|
+
if (S == null)
|
|
595
|
+
return S;
|
|
596
596
|
if (v) {
|
|
597
597
|
var _ = l.children;
|
|
598
598
|
if (_ !== void 0)
|
|
@@ -620,7 +620,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
620
620
|
<%s key={someKey} {...props} />`, xr, B, Pe, B), Jr[B + xr] = !0;
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
|
-
return t === o ? Le(
|
|
623
|
+
return t === o ? Le(S) : Ce(S), S;
|
|
624
624
|
}
|
|
625
625
|
}
|
|
626
626
|
function Oe(t, l, d) {
|
|
@@ -635,7 +635,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
635
635
|
}
|
|
636
636
|
process.env.NODE_ENV === "production" ? jr.exports = He() : jr.exports = $e();
|
|
637
637
|
var e = jr.exports;
|
|
638
|
-
const
|
|
638
|
+
const k = ({ text: r }) => r ? /* @__PURE__ */ e.jsx("div", { className: "title", children: D(r) }) : null, ze = ({ node: r }) => {
|
|
639
639
|
const { document: a } = I(), s = a.attributes || {}, o = r.attributes, n = () => s.icons === "font" && !o.icon ? /* @__PURE__ */ e.jsx("i", { className: `fa icon-${o.name}`, title: `${o.textlabel}` }) : /* @__PURE__ */ e.jsx("img", { src: r.iconUri, alt: `${o.textlabel}` });
|
|
640
640
|
return /* @__PURE__ */ e.jsx(
|
|
641
641
|
"div",
|
|
@@ -645,8 +645,8 @@ const D = ({ text: r }) => r ? /* @__PURE__ */ e.jsx("div", { className: "title"
|
|
|
645
645
|
children: /* @__PURE__ */ e.jsx("table", { children: /* @__PURE__ */ e.jsx("tbody", { children: /* @__PURE__ */ e.jsxs("tr", { children: [
|
|
646
646
|
/* @__PURE__ */ e.jsx("td", { className: "icon", children: s.icons ? n() : /* @__PURE__ */ e.jsx("div", { className: "title", children: o.textlabel }) }),
|
|
647
647
|
/* @__PURE__ */ e.jsxs("td", { className: "content", children: [
|
|
648
|
-
/* @__PURE__ */ e.jsx(
|
|
649
|
-
r.content &&
|
|
648
|
+
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|
|
649
|
+
r.content && D(r.content),
|
|
650
650
|
/* @__PURE__ */ e.jsx(R, { blocks: r.blocks })
|
|
651
651
|
] })
|
|
652
652
|
] }) }) })
|
|
@@ -660,7 +660,7 @@ const D = ({ text: r }) => r ? /* @__PURE__ */ e.jsx("div", { className: "title"
|
|
|
660
660
|
className: "audioblock",
|
|
661
661
|
...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
|
|
662
662
|
children: [
|
|
663
|
-
/* @__PURE__ */ e.jsx(
|
|
663
|
+
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|
|
664
664
|
/* @__PURE__ */ e.jsx("div", { className: "content", children: /* @__PURE__ */ e.jsx(
|
|
665
665
|
"audio",
|
|
666
666
|
{
|
|
@@ -675,14 +675,14 @@ const D = ({ text: r }) => r ? /* @__PURE__ */ e.jsx("div", { className: "title"
|
|
|
675
675
|
}
|
|
676
676
|
);
|
|
677
677
|
}, Me = ({ node: r }) => /* @__PURE__ */ e.jsxs("div", { className: "colist", ...r.lineNumber ? { "data-lineno": r.lineNumber } : {}, children: [
|
|
678
|
-
/* @__PURE__ */ e.jsx(
|
|
678
|
+
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|
|
679
679
|
/* @__PURE__ */ e.jsx("table", { children: /* @__PURE__ */ e.jsx("tbody", { children: r.items.map((a, s) => /* @__PURE__ */ e.jsxs("tr", { children: [
|
|
680
680
|
/* @__PURE__ */ e.jsxs("td", { children: [
|
|
681
681
|
/* @__PURE__ */ e.jsx("i", { className: "conum", "data-value": s + 1 }),
|
|
682
682
|
/* @__PURE__ */ e.jsx("b", { children: s + 1 })
|
|
683
683
|
] }),
|
|
684
684
|
/* @__PURE__ */ e.jsxs("td", { children: [
|
|
685
|
-
a.text &&
|
|
685
|
+
a.text && D(a.text),
|
|
686
686
|
/* @__PURE__ */ e.jsx(R, { blocks: a.blocks })
|
|
687
687
|
] })
|
|
688
688
|
] }, s)) }) })
|
|
@@ -1001,7 +1001,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1001
1001
|
}, s = (o) => {
|
|
1002
1002
|
if (o)
|
|
1003
1003
|
return /* @__PURE__ */ e.jsxs("dd", { children: [
|
|
1004
|
-
o.text && /* @__PURE__ */ e.jsx("p", { children:
|
|
1004
|
+
o.text && /* @__PURE__ */ e.jsx("p", { children: D(o.text) }),
|
|
1005
1005
|
/* @__PURE__ */ e.jsx(R, { blocks: o.blocks })
|
|
1006
1006
|
] });
|
|
1007
1007
|
};
|
|
@@ -1012,12 +1012,12 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1012
1012
|
className: N("qlist qanda", r.role),
|
|
1013
1013
|
...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
|
|
1014
1014
|
children: [
|
|
1015
|
-
/* @__PURE__ */ e.jsx(
|
|
1015
|
+
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|
|
1016
1016
|
/* @__PURE__ */ e.jsx("ol", { children: r.items.map((o, n) => {
|
|
1017
1017
|
const { terms: p, dd: m } = a(o);
|
|
1018
1018
|
if (p)
|
|
1019
1019
|
return /* @__PURE__ */ e.jsxs("li", { children: [
|
|
1020
|
-
p.map((i, c) => /* @__PURE__ */ e.jsx("p", { children: /* @__PURE__ */ e.jsx("em", { children:
|
|
1020
|
+
p.map((i, c) => /* @__PURE__ */ e.jsx("p", { children: /* @__PURE__ */ e.jsx("em", { children: D(i.text) }) }, c)),
|
|
1021
1021
|
s(m)
|
|
1022
1022
|
] }, n);
|
|
1023
1023
|
}) })
|
|
@@ -1027,7 +1027,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1027
1027
|
if (r.style === "horizontal") {
|
|
1028
1028
|
const o = r.attributes.labelwidth, n = r.attributes.itemwidth;
|
|
1029
1029
|
return /* @__PURE__ */ e.jsxs("div", { className: N("hdlist", r.role), children: [
|
|
1030
|
-
/* @__PURE__ */ e.jsx(
|
|
1030
|
+
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|
|
1031
1031
|
/* @__PURE__ */ e.jsxs("table", { children: [
|
|
1032
1032
|
(o || n) && /* @__PURE__ */ e.jsxs("colgroup", { children: [
|
|
1033
1033
|
/* @__PURE__ */ e.jsx(
|
|
@@ -1061,12 +1061,12 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1061
1061
|
),
|
|
1062
1062
|
children: i.map((j, y) => /* @__PURE__ */ e.jsxs(qr, { children: [
|
|
1063
1063
|
y !== 0 && /* @__PURE__ */ e.jsx("br", {}),
|
|
1064
|
-
|
|
1064
|
+
D(j.text)
|
|
1065
1065
|
] }, y))
|
|
1066
1066
|
}
|
|
1067
1067
|
),
|
|
1068
1068
|
c && /* @__PURE__ */ e.jsxs("td", { className: "hdlist2", children: [
|
|
1069
|
-
c.text && /* @__PURE__ */ e.jsx("p", { children:
|
|
1069
|
+
c.text && /* @__PURE__ */ e.jsx("p", { children: D(c.text) }),
|
|
1070
1070
|
/* @__PURE__ */ e.jsx(R, { blocks: c.blocks })
|
|
1071
1071
|
] })
|
|
1072
1072
|
] }, m);
|
|
@@ -1075,12 +1075,12 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1075
1075
|
] });
|
|
1076
1076
|
} else
|
|
1077
1077
|
return /* @__PURE__ */ e.jsxs("div", { className: N("dlist", r.style, r.role), children: [
|
|
1078
|
-
/* @__PURE__ */ e.jsx(
|
|
1078
|
+
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|
|
1079
1079
|
/* @__PURE__ */ e.jsx("dl", { children: r.items.map((o, n) => {
|
|
1080
1080
|
const { terms: p, dd: m } = a(o);
|
|
1081
1081
|
if (p)
|
|
1082
1082
|
return /* @__PURE__ */ e.jsxs(qr, { children: [
|
|
1083
|
-
p.map((i, c) => /* @__PURE__ */ e.jsx("dt", { className: "hdlist1", children:
|
|
1083
|
+
p.map((i, c) => /* @__PURE__ */ e.jsx("dt", { className: "hdlist1", children: D(i.text) }, c)),
|
|
1084
1084
|
s(m)
|
|
1085
1085
|
] }, n);
|
|
1086
1086
|
}) })
|
|
@@ -1098,7 +1098,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1098
1098
|
const y = c.level;
|
|
1099
1099
|
let h = c.title;
|
|
1100
1100
|
return y <= m && (h = `${j} ${c.title}`), /* @__PURE__ */ e.jsxs("li", { children: [
|
|
1101
|
-
/* @__PURE__ */ e.jsx("a", { href: `#${c.id}`, children:
|
|
1101
|
+
/* @__PURE__ */ e.jsx("a", { href: `#${c.id}`, children: D(h) }),
|
|
1102
1102
|
y < i && /* @__PURE__ */ e.jsx(
|
|
1103
1103
|
ur,
|
|
1104
1104
|
{
|
|
@@ -1144,7 +1144,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1144
1144
|
/* @__PURE__ */ e.jsx("a", { href: `#_footnoteref_${n.index}`, children: n.index }),
|
|
1145
1145
|
".",
|
|
1146
1146
|
" ",
|
|
1147
|
-
|
|
1147
|
+
D(n.text || "")
|
|
1148
1148
|
]
|
|
1149
1149
|
},
|
|
1150
1150
|
n.index
|
|
@@ -1152,11 +1152,11 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1152
1152
|
] }) : null, o = () => r.authors.length > 0 || P(r.attributes, "revnumber") || P(r.attributes, "revdate") || P(r.attributes, "revremark") ? /* @__PURE__ */ e.jsxs("div", { className: "details", children: [
|
|
1153
1153
|
r.authors.map((n, p) => /* @__PURE__ */ e.jsxs(qr, { children: [
|
|
1154
1154
|
n.name && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1155
|
-
/* @__PURE__ */ e.jsx("span", { id: `author${p + 1 > 1 ? p + 1 : ""}`, className: "author", children:
|
|
1155
|
+
/* @__PURE__ */ e.jsx("span", { id: `author${p + 1 > 1 ? p + 1 : ""}`, className: "author", children: D(n.name) }),
|
|
1156
1156
|
/* @__PURE__ */ e.jsx("br", {})
|
|
1157
1157
|
] }),
|
|
1158
1158
|
n.email && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1159
|
-
/* @__PURE__ */ e.jsx("span", { id: `email${p + 1 > 1 ? p + 1 : ""}`, className: "email", children:
|
|
1159
|
+
/* @__PURE__ */ e.jsx("span", { id: `email${p + 1 > 1 ? p + 1 : ""}`, className: "email", children: D(n.email) }),
|
|
1160
1160
|
/* @__PURE__ */ e.jsx("br", {})
|
|
1161
1161
|
] })
|
|
1162
1162
|
] }, p)),
|
|
@@ -1183,7 +1183,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1183
1183
|
...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
|
|
1184
1184
|
...r.id ? { id: r.id } : {},
|
|
1185
1185
|
children: [
|
|
1186
|
-
/* @__PURE__ */ e.jsx("summary", { className: "title", children:
|
|
1186
|
+
/* @__PURE__ */ e.jsx("summary", { className: "title", children: D(s) }),
|
|
1187
1187
|
/* @__PURE__ */ e.jsx("div", { className: "content", children: /* @__PURE__ */ e.jsx(R, { blocks: r.blocks }) })
|
|
1188
1188
|
]
|
|
1189
1189
|
}
|
|
@@ -1196,7 +1196,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1196
1196
|
...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
|
|
1197
1197
|
...r.id ? { id: r.id } : {},
|
|
1198
1198
|
children: [
|
|
1199
|
-
/* @__PURE__ */ e.jsx(
|
|
1199
|
+
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|
|
1200
1200
|
/* @__PURE__ */ e.jsx("div", { className: "content", children: /* @__PURE__ */ e.jsx(R, { blocks: r.blocks }) })
|
|
1201
1201
|
]
|
|
1202
1202
|
}
|
|
@@ -1213,7 +1213,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1213
1213
|
G(
|
|
1214
1214
|
`h${r.level + 1}`,
|
|
1215
1215
|
{ className: N(r.role, r.style) },
|
|
1216
|
-
|
|
1216
|
+
D(r.title || "")
|
|
1217
1217
|
)
|
|
1218
1218
|
] }), ct = ({ node: r }) => {
|
|
1219
1219
|
let a = /* @__PURE__ */ e.jsx(
|
|
@@ -1236,7 +1236,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1236
1236
|
},
|
|
1237
1237
|
children: [
|
|
1238
1238
|
/* @__PURE__ */ e.jsx("div", { className: "content", children: a }),
|
|
1239
|
-
/* @__PURE__ */ e.jsx(
|
|
1239
|
+
/* @__PURE__ */ e.jsx(k, { text: r.title })
|
|
1240
1240
|
]
|
|
1241
1241
|
}
|
|
1242
1242
|
);
|
|
@@ -1250,7 +1250,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1250
1250
|
className: "listingblock",
|
|
1251
1251
|
...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
|
|
1252
1252
|
children: [
|
|
1253
|
-
/* @__PURE__ */ e.jsx(
|
|
1253
|
+
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|
|
1254
1254
|
/* @__PURE__ */ e.jsx("div", { className: "content", children: /* @__PURE__ */ e.jsx("pre", { className: N("highlight", o ? " nowrap" : ""), children: n ? /* @__PURE__ */ e.jsx(
|
|
1255
1255
|
"code",
|
|
1256
1256
|
{
|
|
@@ -1271,7 +1271,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1271
1271
|
className: "listingblock",
|
|
1272
1272
|
...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
|
|
1273
1273
|
children: [
|
|
1274
|
-
/* @__PURE__ */ e.jsx(
|
|
1274
|
+
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|
|
1275
1275
|
/* @__PURE__ */ e.jsx("div", { className: "content", children: /* @__PURE__ */ e.jsx(
|
|
1276
1276
|
"pre",
|
|
1277
1277
|
{
|
|
@@ -1292,7 +1292,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1292
1292
|
className: "literalblock",
|
|
1293
1293
|
...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
|
|
1294
1294
|
children: [
|
|
1295
|
-
/* @__PURE__ */ e.jsx(
|
|
1295
|
+
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|
|
1296
1296
|
/* @__PURE__ */ e.jsx("div", { className: "content", children: /* @__PURE__ */ e.jsx("pre", { className: o ? "nowrap" : "", children: r.source }) })
|
|
1297
1297
|
]
|
|
1298
1298
|
}
|
|
@@ -1303,7 +1303,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1303
1303
|
className: N("olist", r.role, r.style),
|
|
1304
1304
|
...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
|
|
1305
1305
|
children: [
|
|
1306
|
-
/* @__PURE__ */ e.jsx(
|
|
1306
|
+
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|
|
1307
1307
|
/* @__PURE__ */ e.jsx(
|
|
1308
1308
|
"ol",
|
|
1309
1309
|
{
|
|
@@ -1311,7 +1311,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1311
1311
|
reversed: er(r.attributes, "reversed"),
|
|
1312
1312
|
...r.attributes.start ? { start: parseInt(`${r.attributes.start}`) } : {},
|
|
1313
1313
|
children: r.items.map((a, s) => /* @__PURE__ */ e.jsxs("li", { className: r.role ? r.role : "", children: [
|
|
1314
|
-
/* @__PURE__ */ e.jsx("p", { children:
|
|
1314
|
+
/* @__PURE__ */ e.jsx("p", { children: D(a.text || "") }),
|
|
1315
1315
|
/* @__PURE__ */ e.jsx(R, { blocks: a.blocks })
|
|
1316
1316
|
] }, s))
|
|
1317
1317
|
}
|
|
@@ -1326,7 +1326,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1326
1326
|
className: N("quoteblock abstract", r.role),
|
|
1327
1327
|
...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
|
|
1328
1328
|
children: [
|
|
1329
|
-
/* @__PURE__ */ e.jsx(
|
|
1329
|
+
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|
|
1330
1330
|
/* @__PURE__ */ e.jsx("blockquote", { className: "content", children: /* @__PURE__ */ e.jsx(R, { blocks: r.blocks }) })
|
|
1331
1331
|
]
|
|
1332
1332
|
}
|
|
@@ -1336,7 +1336,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1336
1336
|
className: N("openblock", a && a !== "open" ? a : "", r.role),
|
|
1337
1337
|
...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
|
|
1338
1338
|
children: [
|
|
1339
|
-
/* @__PURE__ */ e.jsx(
|
|
1339
|
+
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|
|
1340
1340
|
/* @__PURE__ */ e.jsx("div", { className: "content", children: /* @__PURE__ */ e.jsx(R, { blocks: r.blocks }) })
|
|
1341
1341
|
]
|
|
1342
1342
|
}
|
|
@@ -1348,11 +1348,11 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1348
1348
|
className: N("paragraph", r.role),
|
|
1349
1349
|
...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
|
|
1350
1350
|
children: [
|
|
1351
|
-
/* @__PURE__ */ e.jsx(
|
|
1351
|
+
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|
|
1352
1352
|
r.content && /* @__PURE__ */ e.jsx("p", { dangerouslySetInnerHTML: { __html: r.content } })
|
|
1353
1353
|
]
|
|
1354
1354
|
}
|
|
1355
|
-
), ht = ({ node: r }) => /* @__PURE__ */ e.jsx(e.Fragment, { children:
|
|
1355
|
+
), ht = ({ node: r }) => /* @__PURE__ */ e.jsx(e.Fragment, { children: D(r.content || "") }), bt = ({ node: r }) => {
|
|
1356
1356
|
const { document: a } = I(), s = a.attributes || {}, o = s["toc-placement"] === "preamble" && a.sections && a.sections.length > 0 && s.toc !== void 0;
|
|
1357
1357
|
return /* @__PURE__ */ e.jsx("div", { id: "preamble", ...r.lineNumber ? { "data-lineno": r.lineNumber } : {}, children: /* @__PURE__ */ e.jsxs("div", { className: "sectionbody", children: [
|
|
1358
1358
|
/* @__PURE__ */ e.jsx(R, { blocks: r.blocks }),
|
|
@@ -1362,7 +1362,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1362
1362
|
id: "toc",
|
|
1363
1363
|
className: r.attributes["toc-class"] ? `${r.attributes["toc-class"]}` : "toc",
|
|
1364
1364
|
children: [
|
|
1365
|
-
/* @__PURE__ */ e.jsx("div", { id: "toctitle", children:
|
|
1365
|
+
/* @__PURE__ */ e.jsx("div", { id: "toctitle", children: D(`${s["toc-title"]}`) }),
|
|
1366
1366
|
a.sections && /* @__PURE__ */ e.jsx(ur, { sections: a.sections })
|
|
1367
1367
|
]
|
|
1368
1368
|
}
|
|
@@ -1377,12 +1377,12 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1377
1377
|
className: N("quoteblock", r.role),
|
|
1378
1378
|
...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
|
|
1379
1379
|
children: [
|
|
1380
|
-
/* @__PURE__ */ e.jsx(
|
|
1380
|
+
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|
|
1381
1381
|
r.content && /* @__PURE__ */ e.jsx("blockquote", { dangerouslySetInnerHTML: { __html: r.content } }),
|
|
1382
1382
|
/* @__PURE__ */ e.jsx(R, { blocks: r.blocks }),
|
|
1383
1383
|
a && /* @__PURE__ */ e.jsxs("div", { className: "attribution", children: [
|
|
1384
1384
|
"— ",
|
|
1385
|
-
a,
|
|
1385
|
+
D(a.toString()),
|
|
1386
1386
|
s && /* @__PURE__ */ e.jsx("cite", { children: s })
|
|
1387
1387
|
] })
|
|
1388
1388
|
]
|
|
@@ -1440,7 +1440,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1440
1440
|
className: N("sidebarblock", r.role),
|
|
1441
1441
|
...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
|
|
1442
1442
|
children: /* @__PURE__ */ e.jsxs("div", { className: "content", children: [
|
|
1443
|
-
/* @__PURE__ */ e.jsx(
|
|
1443
|
+
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|
|
1444
1444
|
/* @__PURE__ */ e.jsx(R, { blocks: r.blocks })
|
|
1445
1445
|
] })
|
|
1446
1446
|
}
|
|
@@ -1467,7 +1467,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1467
1467
|
children: [
|
|
1468
1468
|
r.title && /* @__PURE__ */ e.jsxs("caption", { className: "title", children: [
|
|
1469
1469
|
!y && /* @__PURE__ */ e.jsx("a", { className: "anchor", id: h }),
|
|
1470
|
-
/* @__PURE__ */ e.jsx("a", { href: `#${h}`, children: /* @__PURE__ */ e.jsx(
|
|
1470
|
+
/* @__PURE__ */ e.jsx("a", { href: `#${h}`, children: /* @__PURE__ */ e.jsx(k, { text: r.title }) })
|
|
1471
1471
|
] }),
|
|
1472
1472
|
r.columns.length > 0 && /* @__PURE__ */ e.jsx("colgroup", { children: r.columns.map((u, f) => {
|
|
1473
1473
|
const w = u.attributes.colpcwidth;
|
|
@@ -1507,7 +1507,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1507
1507
|
));
|
|
1508
1508
|
{
|
|
1509
1509
|
let tr = E;
|
|
1510
|
-
return /* @__PURE__ */ G("td", { ...H, key: C }, tr.length === 0 ? "" :
|
|
1510
|
+
return /* @__PURE__ */ G("td", { ...H, key: C }, tr.length === 0 ? "" : D(
|
|
1511
1511
|
`<p class="tableblock">${tr.join(
|
|
1512
1512
|
`</p>
|
|
1513
1513
|
<p class="tableblock">`
|
|
@@ -1524,7 +1524,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1524
1524
|
let n = r.id || "toc";
|
|
1525
1525
|
const p = r.title ? r.title : s["toc-title"], m = s["toc-placement"], i = s.toc !== void 0, c = r.attributes.levels ? parseInt(`${r.attributes.levels}`) : void 0;
|
|
1526
1526
|
return m === "macro" && o && i ? /* @__PURE__ */ e.jsxs("div", { id: n, className: N("toc", r.role), children: [
|
|
1527
|
-
/* @__PURE__ */ e.jsx("div", { id: `${n}title`, className: "title", children:
|
|
1527
|
+
/* @__PURE__ */ e.jsx("div", { id: `${n}title`, className: "title", children: D(`${p}` || "") }),
|
|
1528
1528
|
a.sections && /* @__PURE__ */ e.jsx(ur, { sections: a.sections, opts: { tocLevels: c } })
|
|
1529
1529
|
] }) : null;
|
|
1530
1530
|
}, Et = () => /* @__PURE__ */ e.jsx("hr", {}), Nt = ({ node: r }) => {
|
|
@@ -1536,7 +1536,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1536
1536
|
className: N("ulist", r.style, r.role, a && "checklist"),
|
|
1537
1537
|
...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
|
|
1538
1538
|
children: [
|
|
1539
|
-
/* @__PURE__ */ e.jsx(
|
|
1539
|
+
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|
|
1540
1540
|
/* @__PURE__ */ e.jsx("ul", { className: a ? "checklist" : "", children: r.items.map((s, o) => a ? /* @__PURE__ */ e.jsx("li", { id: s.id, className: r.role, children: /* @__PURE__ */ e.jsxs("p", { children: [
|
|
1541
1541
|
a && s.attributes.checkbox && /* @__PURE__ */ e.jsx(
|
|
1542
1542
|
"i",
|
|
@@ -1548,7 +1548,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1548
1548
|
}
|
|
1549
1549
|
),
|
|
1550
1550
|
" ",
|
|
1551
|
-
|
|
1551
|
+
D(s.text || "")
|
|
1552
1552
|
] }) }, o) : /* @__PURE__ */ e.jsxs("li", { id: s.id, className: r.role, children: [
|
|
1553
1553
|
/* @__PURE__ */ e.jsx("p", { dangerouslySetInnerHTML: { __html: s.text || "" } }),
|
|
1554
1554
|
/* @__PURE__ */ e.jsx(R, { blocks: s.blocks })
|
|
@@ -1565,7 +1565,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1565
1565
|
className: N("verseblock", r.role),
|
|
1566
1566
|
...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
|
|
1567
1567
|
children: [
|
|
1568
|
-
/* @__PURE__ */ e.jsx(
|
|
1568
|
+
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|
|
1569
1569
|
r.content && /* @__PURE__ */ e.jsx("pre", { className: "content", dangerouslySetInnerHTML: { __html: r.content } }),
|
|
1570
1570
|
a && /* @__PURE__ */ e.jsxs("div", { className: "attribution", children: [
|
|
1571
1571
|
"— ",
|
|
@@ -1583,7 +1583,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1583
1583
|
className: "videoblock",
|
|
1584
1584
|
...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
|
|
1585
1585
|
children: [
|
|
1586
|
-
/* @__PURE__ */ e.jsx(
|
|
1586
|
+
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|
|
1587
1587
|
/* @__PURE__ */ e.jsx("div", { className: "content", children: /* @__PURE__ */ e.jsx(
|
|
1588
1588
|
"video",
|
|
1589
1589
|
{
|
|
@@ -1701,7 +1701,7 @@ export {
|
|
|
1701
1701
|
wt as Table,
|
|
1702
1702
|
jt as TableOfContents,
|
|
1703
1703
|
Et as ThematicBreak,
|
|
1704
|
-
|
|
1704
|
+
k as Title,
|
|
1705
1705
|
Nt as UList,
|
|
1706
1706
|
At as Verse,
|
|
1707
1707
|
Dt as Video,
|