@oxide/react-asciidoc 1.1.3 → 1.1.4--canary.145defd.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.
- package/dist/react-asciidoc.js +60 -59
- package/dist/react-asciidoc.umd.cjs +7 -7
- package/package.json +1 -1
package/dist/react-asciidoc.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import ae, { Fragment as jr, createElement as G, createContext as He, useContext as se } from "react";
|
|
2
|
-
import
|
|
2
|
+
import N from "html-react-parser";
|
|
3
3
|
import { default as It } from "html-react-parser";
|
|
4
4
|
var Xr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
5
5
|
function $e(r) {
|
|
@@ -262,18 +262,18 @@ function Ge() {
|
|
|
262
262
|
if (L && g && typeof L.stack == "string") {
|
|
263
263
|
for (var b = L.stack.split(`
|
|
264
264
|
`), T = g.stack.split(`
|
|
265
|
-
`),
|
|
265
|
+
`), D = b.length - 1, S = T.length - 1; D >= 1 && S >= 0 && b[D] !== T[S]; )
|
|
266
266
|
S--;
|
|
267
|
-
for (;
|
|
268
|
-
if (b[
|
|
269
|
-
if (
|
|
267
|
+
for (; D >= 1 && S >= 0; D--, S--)
|
|
268
|
+
if (b[D] !== T[S]) {
|
|
269
|
+
if (D !== 1 || S !== 1)
|
|
270
270
|
do
|
|
271
|
-
if (
|
|
271
|
+
if (D--, S--, S < 0 || b[D] !== T[S]) {
|
|
272
272
|
var _ = `
|
|
273
|
-
` + b[
|
|
273
|
+
` + b[D].replace(" at new ", " at ");
|
|
274
274
|
return t.displayName && _.includes("<anonymous>") && (_ = _.replace("<anonymous>", t.displayName)), typeof t == "function" && ir.set(t, _), _;
|
|
275
275
|
}
|
|
276
|
-
while (
|
|
276
|
+
while (D >= 1 && S >= 0);
|
|
277
277
|
break;
|
|
278
278
|
}
|
|
279
279
|
}
|
|
@@ -339,8 +339,8 @@ function Ge() {
|
|
|
339
339
|
throw T.name = "Invariant Violation", T;
|
|
340
340
|
}
|
|
341
341
|
b = t[v](l, v, g, d, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
342
|
-
} catch (
|
|
343
|
-
b =
|
|
342
|
+
} catch (D) {
|
|
343
|
+
b = D;
|
|
344
344
|
}
|
|
345
345
|
b && !(b instanceof Error) && (or(x), E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", g || "React class", d, v, typeof b), or(null)), b instanceof Error && !(b.message in Ir) && (Ir[b.message] = !0, or(x), E("Failed %s type: %s", d, b.message), or(null));
|
|
346
346
|
}
|
|
@@ -457,9 +457,9 @@ function Ge() {
|
|
|
457
457
|
for (q in l)
|
|
458
458
|
Z.call(l, q) && !Ee.hasOwnProperty(q) && (v[q] = l[q]);
|
|
459
459
|
if (t && t.defaultProps) {
|
|
460
|
-
var
|
|
461
|
-
for (q in
|
|
462
|
-
v[q] === void 0 && (v[q] =
|
|
460
|
+
var D = t.defaultProps;
|
|
461
|
+
for (q in D)
|
|
462
|
+
v[q] === void 0 && (v[q] = D[q]);
|
|
463
463
|
}
|
|
464
464
|
if (b || T) {
|
|
465
465
|
var S = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
|
|
@@ -587,8 +587,8 @@ Check the top-level render call using <` + d + ">.");
|
|
|
587
587
|
(t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (b += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
588
588
|
var T = Ce();
|
|
589
589
|
T ? b += T : b += Mr();
|
|
590
|
-
var
|
|
591
|
-
t === null ?
|
|
590
|
+
var D;
|
|
591
|
+
t === null ? D = "null" : fr(t) ? D = "array" : t !== void 0 && t.$$typeof === a ? (D = "<" + (U(t.type) || "Unknown") + " />", b = " Did you accidentally export a JSX literal instead of a component?") : D = 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", D, b);
|
|
592
592
|
}
|
|
593
593
|
var S = Te(t, l, d, x, q);
|
|
594
594
|
if (S == null)
|
|
@@ -635,7 +635,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
635
635
|
}
|
|
636
636
|
process.env.NODE_ENV === "production" ? Er.exports = ze() : Er.exports = Ge();
|
|
637
637
|
var e = Er.exports;
|
|
638
|
-
const k = ({ text: r }) => r ? /* @__PURE__ */ e.jsx("div", { className: "title", children:
|
|
638
|
+
const k = ({ text: r }) => r ? /* @__PURE__ */ e.jsx("div", { className: "title", children: N(r) }) : null, Me = ({ 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",
|
|
@@ -646,7 +646,7 @@ const k = ({ text: r }) => r ? /* @__PURE__ */ e.jsx("div", { className: "title"
|
|
|
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
648
|
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|
|
649
|
-
r.content &&
|
|
649
|
+
r.content && N(r.content),
|
|
650
650
|
/* @__PURE__ */ e.jsx(R, { blocks: r.blocks })
|
|
651
651
|
] })
|
|
652
652
|
] }) }) })
|
|
@@ -682,7 +682,7 @@ const k = ({ text: r }) => r ? /* @__PURE__ */ e.jsx("div", { className: "title"
|
|
|
682
682
|
/* @__PURE__ */ e.jsx("b", { children: s + 1 })
|
|
683
683
|
] }),
|
|
684
684
|
/* @__PURE__ */ e.jsxs("td", { children: [
|
|
685
|
-
a.text &&
|
|
685
|
+
a.text && N(a.text),
|
|
686
686
|
/* @__PURE__ */ e.jsx(R, { blocks: a.blocks })
|
|
687
687
|
] })
|
|
688
688
|
] }, s)) }) })
|
|
@@ -724,7 +724,7 @@ var ie = { exports: {} };
|
|
|
724
724
|
})();
|
|
725
725
|
})(ie);
|
|
726
726
|
var Je = ie.exports;
|
|
727
|
-
const
|
|
727
|
+
const A = /* @__PURE__ */ $e(Je);
|
|
728
728
|
var cr = {}, ur = {};
|
|
729
729
|
Object.defineProperty(ur, "__esModule", { value: !0 });
|
|
730
730
|
ur.bodyRegExps = { xml: /&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g, html4: /∉|&(?:nbsp|iexcl|cent|pound|curren|yen|brvbar|sect|uml|copy|ordf|laquo|not|shy|reg|macr|deg|plusmn|sup2|sup3|acute|micro|para|middot|cedil|sup1|ordm|raquo|frac14|frac12|frac34|iquest|Agrave|Aacute|Acirc|Atilde|Auml|Aring|AElig|Ccedil|Egrave|Eacute|Ecirc|Euml|Igrave|Iacute|Icirc|Iuml|ETH|Ntilde|Ograve|Oacute|Ocirc|Otilde|Ouml|times|Oslash|Ugrave|Uacute|Ucirc|Uuml|Yacute|THORN|szlig|agrave|aacute|acirc|atilde|auml|aring|aelig|ccedil|egrave|eacute|ecirc|euml|igrave|iacute|icirc|iuml|eth|ntilde|ograve|oacute|ocirc|otilde|ouml|divide|oslash|ugrave|uacute|ucirc|uuml|yacute|thorn|yuml|quot|amp|lt|gt|#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g, html5: /·|℗|⋇|⪧|⩺|⋗|⦕|⩼|⪆|⥸|⋗|⋛|⪌|≷|≳|⪦|⩹|⋖|⋋|⋉|⥶|⩻|⦖|◃|⊴|◂|∉|⋹̸|⋵̸|∉|⋷|⋶|∌|∌|⋾|⋽|∥|⊠|⨱|⨰|&(?:AElig|AMP|Aacute|Acirc|Agrave|Aring|Atilde|Auml|COPY|Ccedil|ETH|Eacute|Ecirc|Egrave|Euml|GT|Iacute|Icirc|Igrave|Iuml|LT|Ntilde|Oacute|Ocirc|Ograve|Oslash|Otilde|Ouml|QUOT|REG|THORN|Uacute|Ucirc|Ugrave|Uuml|Yacute|aacute|acirc|acute|aelig|agrave|amp|aring|atilde|auml|brvbar|ccedil|cedil|cent|copy|curren|deg|divide|eacute|ecirc|egrave|eth|euml|frac12|frac14|frac34|gt|iacute|icirc|iexcl|igrave|iquest|iuml|laquo|lt|macr|micro|middot|nbsp|not|ntilde|oacute|ocirc|ograve|ordf|ordm|oslash|otilde|ouml|para|plusmn|pound|quot|raquo|reg|sect|shy|sup1|sup2|sup3|szlig|thorn|times|uacute|ucirc|ugrave|uml|uuml|yacute|yen|yuml|#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g };
|
|
@@ -1013,7 +1013,7 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1013
1013
|
}, s = (o) => {
|
|
1014
1014
|
if (o)
|
|
1015
1015
|
return /* @__PURE__ */ e.jsxs("dd", { children: [
|
|
1016
|
-
o.text && /* @__PURE__ */ e.jsx("p", { children:
|
|
1016
|
+
o.text && /* @__PURE__ */ e.jsx("p", { children: N(o.text) }),
|
|
1017
1017
|
/* @__PURE__ */ e.jsx(R, { blocks: o.blocks })
|
|
1018
1018
|
] });
|
|
1019
1019
|
};
|
|
@@ -1021,7 +1021,7 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1021
1021
|
return /* @__PURE__ */ e.jsxs(
|
|
1022
1022
|
"div",
|
|
1023
1023
|
{
|
|
1024
|
-
className:
|
|
1024
|
+
className: A("qlist qanda", r.role),
|
|
1025
1025
|
...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
|
|
1026
1026
|
children: [
|
|
1027
1027
|
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|
|
@@ -1029,7 +1029,7 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1029
1029
|
const { terms: p, dd: m } = a(o);
|
|
1030
1030
|
if (p)
|
|
1031
1031
|
return /* @__PURE__ */ e.jsxs("li", { children: [
|
|
1032
|
-
p.map((i, c) => /* @__PURE__ */ e.jsx("p", { children: /* @__PURE__ */ e.jsx("em", { children:
|
|
1032
|
+
p.map((i, c) => /* @__PURE__ */ e.jsx("p", { children: /* @__PURE__ */ e.jsx("em", { children: N(i.text) }) }, c)),
|
|
1033
1033
|
s(m)
|
|
1034
1034
|
] }, n);
|
|
1035
1035
|
}) })
|
|
@@ -1038,7 +1038,7 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1038
1038
|
);
|
|
1039
1039
|
if (r.style === "horizontal") {
|
|
1040
1040
|
const o = r.attributes.labelwidth, n = r.attributes.itemwidth;
|
|
1041
|
-
return /* @__PURE__ */ e.jsxs("div", { className:
|
|
1041
|
+
return /* @__PURE__ */ e.jsxs("div", { className: A("hdlist", r.role), children: [
|
|
1042
1042
|
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|
|
1043
1043
|
/* @__PURE__ */ e.jsxs("table", { children: [
|
|
1044
1044
|
(o || n) && /* @__PURE__ */ e.jsxs("colgroup", { children: [
|
|
@@ -1067,18 +1067,18 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1067
1067
|
/* @__PURE__ */ e.jsx(
|
|
1068
1068
|
"td",
|
|
1069
1069
|
{
|
|
1070
|
-
className:
|
|
1070
|
+
className: A(
|
|
1071
1071
|
"hdlist1",
|
|
1072
1072
|
tr(r.attributes, "strong") ? "strong" : ""
|
|
1073
1073
|
),
|
|
1074
1074
|
children: i.map((j, y) => /* @__PURE__ */ e.jsxs(jr, { children: [
|
|
1075
1075
|
y !== 0 && /* @__PURE__ */ e.jsx("br", {}),
|
|
1076
|
-
|
|
1076
|
+
N(j.text)
|
|
1077
1077
|
] }, y))
|
|
1078
1078
|
}
|
|
1079
1079
|
),
|
|
1080
1080
|
c && /* @__PURE__ */ e.jsxs("td", { className: "hdlist2", children: [
|
|
1081
|
-
c.text && /* @__PURE__ */ e.jsx("p", { children:
|
|
1081
|
+
c.text && /* @__PURE__ */ e.jsx("p", { children: N(c.text) }),
|
|
1082
1082
|
/* @__PURE__ */ e.jsx(R, { blocks: c.blocks })
|
|
1083
1083
|
] })
|
|
1084
1084
|
] }, m);
|
|
@@ -1086,13 +1086,13 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1086
1086
|
] })
|
|
1087
1087
|
] });
|
|
1088
1088
|
} else
|
|
1089
|
-
return /* @__PURE__ */ e.jsxs("div", { className:
|
|
1089
|
+
return /* @__PURE__ */ e.jsxs("div", { className: A("dlist", r.style, r.role), children: [
|
|
1090
1090
|
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|
|
1091
1091
|
/* @__PURE__ */ e.jsx("dl", { children: r.items.map((o, n) => {
|
|
1092
1092
|
const { terms: p, dd: m } = a(o);
|
|
1093
1093
|
if (p)
|
|
1094
1094
|
return /* @__PURE__ */ e.jsxs(jr, { children: [
|
|
1095
|
-
p.map((i, c) => /* @__PURE__ */ e.jsx("dt", { className: "hdlist1", children:
|
|
1095
|
+
p.map((i, c) => /* @__PURE__ */ e.jsx("dt", { className: "hdlist1", children: N(i.text) }, c)),
|
|
1096
1096
|
s(m)
|
|
1097
1097
|
] }, n);
|
|
1098
1098
|
}) })
|
|
@@ -1110,7 +1110,7 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1110
1110
|
const y = c.level;
|
|
1111
1111
|
let h = c.title;
|
|
1112
1112
|
return y <= m && (h = `${j} ${c.title}`), /* @__PURE__ */ e.jsxs("li", { children: [
|
|
1113
|
-
/* @__PURE__ */ e.jsx("a", { href: `#${c.id}`, children:
|
|
1113
|
+
/* @__PURE__ */ e.jsx("a", { href: `#${c.id}`, children: N(h) }),
|
|
1114
1114
|
y < i && /* @__PURE__ */ e.jsx(
|
|
1115
1115
|
pr,
|
|
1116
1116
|
{
|
|
@@ -1156,7 +1156,7 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1156
1156
|
/* @__PURE__ */ e.jsx("a", { href: `#_footnoteref_${n.index}`, children: n.index }),
|
|
1157
1157
|
".",
|
|
1158
1158
|
" ",
|
|
1159
|
-
|
|
1159
|
+
N(n.text || "")
|
|
1160
1160
|
]
|
|
1161
1161
|
},
|
|
1162
1162
|
n.index
|
|
@@ -1164,11 +1164,11 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1164
1164
|
] }) : 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: [
|
|
1165
1165
|
r.authors.map((n, p) => /* @__PURE__ */ e.jsxs(jr, { children: [
|
|
1166
1166
|
n.name && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1167
|
-
/* @__PURE__ */ e.jsx("span", { id: `author${p + 1 > 1 ? p + 1 : ""}`, className: "author", children:
|
|
1167
|
+
/* @__PURE__ */ e.jsx("span", { id: `author${p + 1 > 1 ? p + 1 : ""}`, className: "author", children: N(n.name) }),
|
|
1168
1168
|
/* @__PURE__ */ e.jsx("br", {})
|
|
1169
1169
|
] }),
|
|
1170
1170
|
n.email && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1171
|
-
/* @__PURE__ */ e.jsx("span", { id: `email${p + 1 > 1 ? p + 1 : ""}`, className: "email", children:
|
|
1171
|
+
/* @__PURE__ */ e.jsx("span", { id: `email${p + 1 > 1 ? p + 1 : ""}`, className: "email", children: N(n.email) }),
|
|
1172
1172
|
/* @__PURE__ */ e.jsx("br", {})
|
|
1173
1173
|
] })
|
|
1174
1174
|
] }, p)),
|
|
@@ -1195,7 +1195,7 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1195
1195
|
...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
|
|
1196
1196
|
...r.id ? { id: r.id } : {},
|
|
1197
1197
|
children: [
|
|
1198
|
-
/* @__PURE__ */ e.jsx("summary", { className: "title", children:
|
|
1198
|
+
/* @__PURE__ */ e.jsx("summary", { className: "title", children: N(s) }),
|
|
1199
1199
|
/* @__PURE__ */ e.jsx("div", { className: "content", children: /* @__PURE__ */ e.jsx(R, { blocks: r.blocks }) })
|
|
1200
1200
|
]
|
|
1201
1201
|
}
|
|
@@ -1204,7 +1204,7 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1204
1204
|
return /* @__PURE__ */ e.jsxs(
|
|
1205
1205
|
"div",
|
|
1206
1206
|
{
|
|
1207
|
-
className:
|
|
1207
|
+
className: A("exampleblock", r.role),
|
|
1208
1208
|
...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
|
|
1209
1209
|
...r.id ? { id: r.id } : {},
|
|
1210
1210
|
children: [
|
|
@@ -1224,8 +1224,8 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1224
1224
|
),
|
|
1225
1225
|
G(
|
|
1226
1226
|
`h${r.level + 1}`,
|
|
1227
|
-
{ className:
|
|
1228
|
-
|
|
1227
|
+
{ className: A(r.role, r.style) },
|
|
1228
|
+
N(r.title || "")
|
|
1229
1229
|
)
|
|
1230
1230
|
] }), dt = ({ node: r }) => {
|
|
1231
1231
|
let a = /* @__PURE__ */ e.jsx(
|
|
@@ -1263,7 +1263,7 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1263
1263
|
...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
|
|
1264
1264
|
children: [
|
|
1265
1265
|
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|
|
1266
|
-
/* @__PURE__ */ e.jsx("div", { className: "content", children: /* @__PURE__ */ e.jsx("pre", { className:
|
|
1266
|
+
/* @__PURE__ */ e.jsx("div", { className: "content", children: /* @__PURE__ */ e.jsx("pre", { className: A("highlight", o ? " nowrap" : ""), children: n ? /* @__PURE__ */ e.jsx(
|
|
1267
1267
|
"code",
|
|
1268
1268
|
{
|
|
1269
1269
|
className: n ? `language-${n}` : "",
|
|
@@ -1287,7 +1287,7 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1287
1287
|
/* @__PURE__ */ e.jsx("div", { className: "content", children: /* @__PURE__ */ e.jsx(
|
|
1288
1288
|
"pre",
|
|
1289
1289
|
{
|
|
1290
|
-
className:
|
|
1290
|
+
className: A("highlight !block", o ? "nowrap" : ""),
|
|
1291
1291
|
dangerouslySetInnerHTML: {
|
|
1292
1292
|
__html: r.content || ""
|
|
1293
1293
|
}
|
|
@@ -1312,7 +1312,7 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1312
1312
|
}, ft = ({ node: r }) => /* @__PURE__ */ e.jsxs(
|
|
1313
1313
|
"div",
|
|
1314
1314
|
{
|
|
1315
|
-
className:
|
|
1315
|
+
className: A("olist", r.role, r.style),
|
|
1316
1316
|
...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
|
|
1317
1317
|
children: [
|
|
1318
1318
|
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|
|
@@ -1323,7 +1323,7 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1323
1323
|
reversed: tr(r.attributes, "reversed"),
|
|
1324
1324
|
...r.attributes.start ? { start: parseInt(`${r.attributes.start}`) } : {},
|
|
1325
1325
|
children: r.items.map((a, s) => /* @__PURE__ */ e.jsxs("li", { className: r.role ? r.role : "", children: [
|
|
1326
|
-
/* @__PURE__ */ e.jsx("p", { children:
|
|
1326
|
+
/* @__PURE__ */ e.jsx("p", { children: N(a.text || "") }),
|
|
1327
1327
|
/* @__PURE__ */ e.jsx(R, { blocks: a.blocks })
|
|
1328
1328
|
] }, s))
|
|
1329
1329
|
}
|
|
@@ -1335,7 +1335,7 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1335
1335
|
return a === "abstract" ? /* @__PURE__ */ e.jsxs(
|
|
1336
1336
|
"div",
|
|
1337
1337
|
{
|
|
1338
|
-
className:
|
|
1338
|
+
className: A("quoteblock abstract", r.role),
|
|
1339
1339
|
...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
|
|
1340
1340
|
children: [
|
|
1341
1341
|
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|
|
@@ -1345,7 +1345,7 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1345
1345
|
) : /* @__PURE__ */ e.jsxs(
|
|
1346
1346
|
"div",
|
|
1347
1347
|
{
|
|
1348
|
-
className:
|
|
1348
|
+
className: A("openblock", a && a !== "open" ? a : "", r.role),
|
|
1349
1349
|
...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
|
|
1350
1350
|
children: [
|
|
1351
1351
|
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|
|
@@ -1357,14 +1357,14 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1357
1357
|
"div",
|
|
1358
1358
|
{
|
|
1359
1359
|
...r.id ? { id: r.id } : {},
|
|
1360
|
-
className:
|
|
1360
|
+
className: A("paragraph", r.role),
|
|
1361
1361
|
...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
|
|
1362
1362
|
children: [
|
|
1363
1363
|
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|
|
1364
1364
|
r.content && /* @__PURE__ */ e.jsx("p", { dangerouslySetInnerHTML: { __html: r.content } })
|
|
1365
1365
|
]
|
|
1366
1366
|
}
|
|
1367
|
-
), xt = ({ node: r }) => /* @__PURE__ */ e.jsx(e.Fragment, { children:
|
|
1367
|
+
), xt = ({ node: r }) => /* @__PURE__ */ e.jsx(e.Fragment, { children: N(r.content || "") }), yt = ({ node: r }) => {
|
|
1368
1368
|
const { document: a } = I(), s = a.attributes || {}, o = s["toc-placement"] === "preamble" && a.sections && a.sections.length > 0 && s.toc !== void 0;
|
|
1369
1369
|
return /* @__PURE__ */ e.jsx("div", { id: "preamble", ...r.lineNumber ? { "data-lineno": r.lineNumber } : {}, children: /* @__PURE__ */ e.jsxs("div", { className: "sectionbody", children: [
|
|
1370
1370
|
/* @__PURE__ */ e.jsx(R, { blocks: r.blocks }),
|
|
@@ -1374,7 +1374,7 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1374
1374
|
id: "toc",
|
|
1375
1375
|
className: r.attributes["toc-class"] ? `${r.attributes["toc-class"]}` : "toc",
|
|
1376
1376
|
children: [
|
|
1377
|
-
/* @__PURE__ */ e.jsx("div", { id: "toctitle", children:
|
|
1377
|
+
/* @__PURE__ */ e.jsx("div", { id: "toctitle", children: N(`${s["toc-title"]}`) }),
|
|
1378
1378
|
a.sections && /* @__PURE__ */ e.jsx(pr, { sections: a.sections })
|
|
1379
1379
|
]
|
|
1380
1380
|
}
|
|
@@ -1386,7 +1386,7 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1386
1386
|
"div",
|
|
1387
1387
|
{
|
|
1388
1388
|
...r.id ? { id: r.id } : {},
|
|
1389
|
-
className:
|
|
1389
|
+
className: A("quoteblock", r.role),
|
|
1390
1390
|
...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
|
|
1391
1391
|
children: [
|
|
1392
1392
|
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|
|
@@ -1394,7 +1394,7 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1394
1394
|
/* @__PURE__ */ e.jsx(R, { blocks: r.blocks }),
|
|
1395
1395
|
a && /* @__PURE__ */ e.jsxs("div", { className: "attribution", children: [
|
|
1396
1396
|
"— ",
|
|
1397
|
-
|
|
1397
|
+
N(a.toString()),
|
|
1398
1398
|
s && /* @__PURE__ */ e.jsx("cite", { children: s })
|
|
1399
1399
|
] })
|
|
1400
1400
|
]
|
|
@@ -1428,7 +1428,7 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1428
1428
|
/* @__PURE__ */ e.jsx(
|
|
1429
1429
|
"h1",
|
|
1430
1430
|
{
|
|
1431
|
-
className:
|
|
1431
|
+
className: A("sect0", r.role),
|
|
1432
1432
|
"data-sectnum": n,
|
|
1433
1433
|
...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
|
|
1434
1434
|
children: o
|
|
@@ -1438,7 +1438,7 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1438
1438
|
] }) : /* @__PURE__ */ e.jsxs(
|
|
1439
1439
|
"div",
|
|
1440
1440
|
{
|
|
1441
|
-
className:
|
|
1441
|
+
className: A(`sect${r.level}`, r.role),
|
|
1442
1442
|
...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
|
|
1443
1443
|
children: [
|
|
1444
1444
|
G(`h${r.level + 1}`, { "data-sectnum": n }, o),
|
|
@@ -1449,10 +1449,11 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1449
1449
|
}, jt = ({ node: r }) => /* @__PURE__ */ e.jsx(
|
|
1450
1450
|
"div",
|
|
1451
1451
|
{
|
|
1452
|
-
className:
|
|
1452
|
+
className: A("sidebarblock", r.role),
|
|
1453
1453
|
...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
|
|
1454
1454
|
children: /* @__PURE__ */ e.jsxs("div", { className: "content", children: [
|
|
1455
1455
|
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|
|
1456
|
+
r.content && N(r.content),
|
|
1456
1457
|
/* @__PURE__ */ e.jsx(R, { blocks: r.blocks })
|
|
1457
1458
|
] })
|
|
1458
1459
|
}
|
|
@@ -1465,7 +1466,7 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1465
1466
|
n && o.push("stripes-" + n);
|
|
1466
1467
|
let p = tr(r.attributes, "autowidth"), m = parseInt(`${r.attributes.tablepcwidth}`), i = null;
|
|
1467
1468
|
p && !P(r.attributes, "width") ? o.push("fit-content") : m === 100 ? o.push("stretch") : i = `${m}%`, P(r.attributes, "float") && o.push(`${r.attributes.float}`), r.role && o.push(r.role || "");
|
|
1468
|
-
const c = (u) =>
|
|
1469
|
+
const c = (u) => A(
|
|
1469
1470
|
"tableblock",
|
|
1470
1471
|
`halign-${u.attributes.halign}`,
|
|
1471
1472
|
`valign-${u.attributes.valign}`
|
|
@@ -1473,7 +1474,7 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1473
1474
|
return /* @__PURE__ */ e.jsxs(
|
|
1474
1475
|
"table",
|
|
1475
1476
|
{
|
|
1476
|
-
className:
|
|
1477
|
+
className: A("tableblock", ...o),
|
|
1477
1478
|
style: { width: i || void 0 },
|
|
1478
1479
|
...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
|
|
1479
1480
|
children: [
|
|
@@ -1519,7 +1520,7 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1519
1520
|
));
|
|
1520
1521
|
{
|
|
1521
1522
|
let ar = E;
|
|
1522
|
-
return /* @__PURE__ */ G("td", { ...H, key: C }, ar.length === 0 ? "" :
|
|
1523
|
+
return /* @__PURE__ */ G("td", { ...H, key: C }, ar.length === 0 ? "" : N(
|
|
1523
1524
|
`<p class="tableblock">${ar.join(
|
|
1524
1525
|
`</p>
|
|
1525
1526
|
<p class="tableblock">`
|
|
@@ -1535,8 +1536,8 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1535
1536
|
const { document: a } = I(), s = a.attributes || {}, o = a.sections && a.sections.length > 0;
|
|
1536
1537
|
let n = r.id || "toc";
|
|
1537
1538
|
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;
|
|
1538
|
-
return m === "macro" && o && i ? /* @__PURE__ */ e.jsxs("div", { id: n, className:
|
|
1539
|
-
/* @__PURE__ */ e.jsx("div", { id: `${n}title`, className: "title", children:
|
|
1539
|
+
return m === "macro" && o && i ? /* @__PURE__ */ e.jsxs("div", { id: n, className: A("toc", r.role), children: [
|
|
1540
|
+
/* @__PURE__ */ e.jsx("div", { id: `${n}title`, className: "title", children: N(`${p}` || "") }),
|
|
1540
1541
|
a.sections && /* @__PURE__ */ e.jsx(pr, { sections: a.sections, opts: { tocLevels: c } })
|
|
1541
1542
|
] }) : null;
|
|
1542
1543
|
}, Dt = () => /* @__PURE__ */ e.jsx("hr", {}), kt = ({ node: r }) => {
|
|
@@ -1545,7 +1546,7 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1545
1546
|
"div",
|
|
1546
1547
|
{
|
|
1547
1548
|
...r.id ? { id: r.id } : {},
|
|
1548
|
-
className:
|
|
1549
|
+
className: A("ulist", r.style, r.role, a && "checklist"),
|
|
1549
1550
|
...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
|
|
1550
1551
|
children: [
|
|
1551
1552
|
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|
|
@@ -1553,14 +1554,14 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1553
1554
|
a && s.attributes.checkbox && /* @__PURE__ */ e.jsx(
|
|
1554
1555
|
"i",
|
|
1555
1556
|
{
|
|
1556
|
-
className:
|
|
1557
|
+
className: A(
|
|
1557
1558
|
"fa",
|
|
1558
1559
|
s.attributes.checked ? "fa-check-square-o" : "fa-square-o"
|
|
1559
1560
|
)
|
|
1560
1561
|
}
|
|
1561
1562
|
),
|
|
1562
1563
|
" ",
|
|
1563
|
-
|
|
1564
|
+
N(s.text || "")
|
|
1564
1565
|
] }) }, o) : /* @__PURE__ */ e.jsxs("li", { id: s.id, className: r.role, children: [
|
|
1565
1566
|
/* @__PURE__ */ e.jsx("p", { dangerouslySetInnerHTML: { __html: s.text || "" } }),
|
|
1566
1567
|
/* @__PURE__ */ e.jsx(R, { blocks: s.blocks })
|
|
@@ -1574,7 +1575,7 @@ const tr = (r, a) => r[`${a}-option`] !== void 0, nr = (r, a, s = void 0, o, n)
|
|
|
1574
1575
|
"div",
|
|
1575
1576
|
{
|
|
1576
1577
|
...r.id ? { id: r.id } : {},
|
|
1577
|
-
className:
|
|
1578
|
+
className: A("verseblock", r.role),
|
|
1578
1579
|
...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
|
|
1579
1580
|
children: [
|
|
1580
1581
|
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|