@mx-space/cli 0.15.0 → 0.15.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/README.md +1 -1
- package/dist/{Lexical.dev-Cck4n26y.mjs → Lexical.dev-Df5TNMgP.mjs} +129 -96
- package/dist/{Lexical.node-D6wf2D5M.mjs → Lexical.node-B064E4Hy.mjs} +1 -1
- package/dist/{Lexical.prod-DCwS1oTq.mjs → Lexical.prod-DRFSwoE7.mjs} +6 -4
- package/dist/{LexicalClipboard.dev-CMkPHV7O.mjs → LexicalClipboard.dev-ClOWeg5v.mjs} +18 -14
- package/dist/{LexicalClipboard.node-m4nZ7IYw.mjs → LexicalClipboard.node-BJBLWpEi.mjs} +1 -1
- package/dist/{LexicalClipboard.prod-B_rN1vE1.mjs → LexicalClipboard.prod-Ytt65eQo.mjs} +10 -10
- package/dist/{LexicalCodeCore.dev-DyJw3i8V.mjs → LexicalCodeCore.dev-CzEPINOT.mjs} +43 -25
- package/dist/{LexicalCodeCore.prod-DPXLHQLF.mjs → LexicalCodeCore.prod-DOVk7lL_.mjs} +6 -6
- package/dist/{LexicalDragon.dev-ZkNfMwrE.mjs → LexicalDragon.dev-DxePN9fP.mjs} +2 -2
- package/dist/{LexicalDragon.node-Ds9oLUFh.mjs → LexicalDragon.node-DBwaqStp.mjs} +1 -1
- package/dist/{LexicalDragon.prod-B58ic2av.mjs → LexicalDragon.prod-Bji84-Hq.mjs} +2 -2
- package/dist/{LexicalExtension.dev-DvwHs1Xv.mjs → LexicalExtension.dev-DtSRyjbf.mjs} +25 -13
- package/dist/{LexicalExtension.node-5OymZQfy.mjs → LexicalExtension.node-3nsS5NjU.mjs} +1 -1
- package/dist/{LexicalExtension.prod-Ce0T5smQ.mjs → LexicalExtension.prod-Ddk0ja_6.mjs} +16 -13
- package/dist/{LexicalHeadless.dev-DA0WldSR.mjs → LexicalHeadless.dev-DdWJsPoH.mjs} +1 -1
- package/dist/{LexicalHeadless.prod-1kQgKB6c.mjs → LexicalHeadless.prod-CH74ZDMt.mjs} +1 -1
- package/dist/{LexicalHtml.dev-BDB7CUrx.mjs → LexicalHtml.dev-DN7QIb_7.mjs} +20 -14
- package/dist/{LexicalHtml.node-DpVNt7It.mjs → LexicalHtml.node-DAwuaPeI.mjs} +1 -1
- package/dist/{LexicalHtml.prod-HkxM5scw.mjs → LexicalHtml.prod-X4eTHEfI.mjs} +4 -4
- package/dist/{LexicalLink.dev-C5zNJlrm.mjs → LexicalLink.dev-owitIl6I.mjs} +28 -21
- package/dist/{LexicalLink.prod-Bkt9hQAt.mjs → LexicalLink.prod-BZ7ZZkVD.mjs} +6 -5
- package/dist/{LexicalList.dev-B7VgME-m.mjs → LexicalList.dev-CUbi09Yo.mjs} +4 -4
- package/dist/{LexicalList.prod-B8c7TDjH.mjs → LexicalList.prod-pUsUZa0r.mjs} +4 -4
- package/dist/{LexicalMarkdown.dev-B5z9kLbV.mjs → LexicalMarkdown.dev-S2yWckH9.mjs} +40 -29
- package/dist/{LexicalMarkdown.prod-wKzw7FFH.mjs → LexicalMarkdown.prod-TRkMWfmC.mjs} +10 -7
- package/dist/{LexicalRichText.dev-CUd6Li5F.mjs → LexicalRichText.dev-Y3ybFF2S.mjs} +15 -11
- package/dist/{LexicalRichText.node-BKfaQ-CH.mjs → LexicalRichText.node-wNAi2Z4i.mjs} +4 -4
- package/dist/{LexicalRichText.prod-SBewjJHx.mjs → LexicalRichText.prod-HLxqZ6hQ.mjs} +17 -11
- package/dist/{LexicalSelection.dev-D27JOCqj.mjs → LexicalSelection.dev-CyhKOKbs.mjs} +28 -24
- package/dist/{LexicalSelection.node-DBEwPjBu.mjs → LexicalSelection.node-BCuHMbzl.mjs} +1 -1
- package/dist/{LexicalSelection.prod-OaYhXHOL.mjs → LexicalSelection.prod-RebDJliC.mjs} +2 -2
- package/dist/{LexicalTable.dev-6IFFOAE0.mjs → LexicalTable.dev-DN3ezVey.mjs} +33 -28
- package/dist/{LexicalTable.prod-2CaLZ7fH.mjs → LexicalTable.prod-B0MioVyq.mjs} +10 -9
- package/dist/{LexicalUtils.dev-DJA7J_7v.mjs → LexicalUtils.dev-Bw6LFRlt.mjs} +8 -5
- package/dist/{LexicalUtils.node-Df9oPTlA.mjs → LexicalUtils.node-BPKMFN80.mjs} +1 -1
- package/dist/{LexicalUtils.prod-Bb7V4Ewg.mjs → LexicalUtils.prod-CJYQVQJO.mjs} +7 -6
- package/dist/bin/mxs.mjs +1 -1
- package/dist/{esm-DLzrv7gD.mjs → esm-7vSMGlFz.mjs} +428 -505
- package/dist/esm-ZrfYH2y2.mjs +2 -0
- package/dist/index.mjs +1 -1
- package/dist/{mxs-BIRW5Axj.mjs → mxs-DKv-4ZTg.mjs} +1091 -806
- package/dist/{rolldown-runtime-JspESFgx.mjs → rolldown-runtime-B4iAMlE-.mjs} +1 -1
- package/dist/vendor/litexml/cli.mjs +113 -42
- package/dist/vendor/litexml/litexml-html-preview-client.css +575 -997
- package/dist/vendor/litexml/litexml-html-preview-client.js +8177 -7143
- package/dist/vendor/litexml/style.css +9 -5
- package/package.json +28 -25
- package/skills/safety.md +1 -1
- package/LICENSE +0 -33
- package/dist/esm-CDcJmHkG.mjs +0 -2
|
@@ -26,7 +26,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
26
26
|
}
|
|
27
27
|
return to;
|
|
28
28
|
};
|
|
29
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
29
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
30
30
|
value: mod,
|
|
31
31
|
enumerable: true
|
|
32
32
|
}) : target, mod));
|
|
@@ -149,7 +149,7 @@ function renderJson(state, compact) {
|
|
|
149
149
|
return JSON.stringify(state, null, compact ? 0 : 2);
|
|
150
150
|
}
|
|
151
151
|
//#endregion
|
|
152
|
-
//#region \0@oxc-project+runtime@0.
|
|
152
|
+
//#region \0@oxc-project+runtime@0.146.0/helpers/esm/typeof.js
|
|
153
153
|
function _typeof(o) {
|
|
154
154
|
"@babel/helpers - typeof";
|
|
155
155
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -159,7 +159,7 @@ function _typeof(o) {
|
|
|
159
159
|
}, _typeof(o);
|
|
160
160
|
}
|
|
161
161
|
//#endregion
|
|
162
|
-
//#region \0@oxc-project+runtime@0.
|
|
162
|
+
//#region \0@oxc-project+runtime@0.146.0/helpers/esm/toPrimitive.js
|
|
163
163
|
function toPrimitive(t, r) {
|
|
164
164
|
if ("object" != _typeof(t) || !t) return t;
|
|
165
165
|
var e = t[Symbol.toPrimitive];
|
|
@@ -171,13 +171,13 @@ function toPrimitive(t, r) {
|
|
|
171
171
|
return ("string" === r ? String : Number)(t);
|
|
172
172
|
}
|
|
173
173
|
//#endregion
|
|
174
|
-
//#region \0@oxc-project+runtime@0.
|
|
174
|
+
//#region \0@oxc-project+runtime@0.146.0/helpers/esm/toPropertyKey.js
|
|
175
175
|
function toPropertyKey(t) {
|
|
176
176
|
var i = toPrimitive(t, "string");
|
|
177
177
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
178
178
|
}
|
|
179
179
|
//#endregion
|
|
180
|
-
//#region \0@oxc-project+runtime@0.
|
|
180
|
+
//#region \0@oxc-project+runtime@0.146.0/helpers/esm/defineProperty.js
|
|
181
181
|
function _defineProperty(e, r, t) {
|
|
182
182
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
183
183
|
value: t,
|
|
@@ -235,6 +235,10 @@ var M = 6;
|
|
|
235
235
|
var A = a || l || d ? "\xA0" : "";
|
|
236
236
|
var D = "\n\n";
|
|
237
237
|
var F = i ? "\xA0" : A;
|
|
238
|
+
var P = "֑-߿יִ-﷽ﹰ-ﻼ";
|
|
239
|
+
var I = "A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--";
|
|
240
|
+
new RegExp("^[^" + I + "]*[" + P + "]");
|
|
241
|
+
new RegExp("^[^" + P + "]*[" + I + "]");
|
|
238
242
|
var z = {
|
|
239
243
|
bold: 1,
|
|
240
244
|
capitalize: 1024,
|
|
@@ -10935,6 +10939,21 @@ var VideoNode = headlessDecorator("video", [
|
|
|
10935
10939
|
width: void 0,
|
|
10936
10940
|
height: void 0
|
|
10937
10941
|
});
|
|
10942
|
+
var FileNode = headlessDecorator("file", [
|
|
10943
|
+
"src",
|
|
10944
|
+
"name",
|
|
10945
|
+
"size",
|
|
10946
|
+
"mimeType",
|
|
10947
|
+
"ext",
|
|
10948
|
+
"display"
|
|
10949
|
+
], {
|
|
10950
|
+
src: "",
|
|
10951
|
+
name: "",
|
|
10952
|
+
size: void 0,
|
|
10953
|
+
mimeType: void 0,
|
|
10954
|
+
ext: void 0,
|
|
10955
|
+
display: "block"
|
|
10956
|
+
});
|
|
10938
10957
|
var LinkCardNode = headlessDecorator("link-card", [
|
|
10939
10958
|
"url",
|
|
10940
10959
|
"source",
|
|
@@ -11031,6 +11050,7 @@ var customHeadlessNodes = [
|
|
|
11031
11050
|
RichQuoteNode,
|
|
11032
11051
|
ImageNode,
|
|
11033
11052
|
VideoNode,
|
|
11053
|
+
FileNode,
|
|
11034
11054
|
LinkCardNode,
|
|
11035
11055
|
KaTeXInlineNode,
|
|
11036
11056
|
KaTeXBlockNode,
|
|
@@ -12412,9 +12432,10 @@ var Tokenizer = class {
|
|
|
12412
12432
|
handleTrailingData() {
|
|
12413
12433
|
const endIndex = this.buffer.length + this.offset;
|
|
12414
12434
|
if (this.sectionStart >= endIndex) return;
|
|
12415
|
-
if (this.state === State.InCommentLike)
|
|
12416
|
-
|
|
12417
|
-
|
|
12435
|
+
if (this.state === State.InCommentLike) {
|
|
12436
|
+
if (this.currentSequence === Sequences.CdataEnd) this.cbs.oncdata(this.sectionStart, endIndex, 0);
|
|
12437
|
+
else this.cbs.oncomment(this.sectionStart, endIndex, 0);
|
|
12438
|
+
} else if (this.state === State.InTagName || this.state === State.BeforeAttributeName || this.state === State.BeforeAttributeValue || this.state === State.AfterAttributeName || this.state === State.InAttributeName || this.state === State.InAttributeValueSq || this.state === State.InAttributeValueDq || this.state === State.InAttributeValueNq || this.state === State.InClosingTagName) {} else this.cbs.ontext(this.sectionStart, endIndex);
|
|
12418
12439
|
}
|
|
12419
12440
|
emitCodePoint(cp, consumed) {
|
|
12420
12441
|
if (this.baseState !== State.Text && this.baseState !== State.InSpecialTag) {
|
|
@@ -16094,19 +16115,21 @@ function parseSelector(subselects, selector, selectorIndex) {
|
|
|
16094
16115
|
break;
|
|
16095
16116
|
}
|
|
16096
16117
|
let data = null;
|
|
16097
|
-
if (selector.charCodeAt(selectorIndex) === CharCode.LeftParenthesis)
|
|
16098
|
-
if (
|
|
16099
|
-
|
|
16100
|
-
|
|
16101
|
-
|
|
16102
|
-
|
|
16103
|
-
|
|
16104
|
-
|
|
16105
|
-
|
|
16106
|
-
|
|
16107
|
-
|
|
16118
|
+
if (selector.charCodeAt(selectorIndex) === CharCode.LeftParenthesis) {
|
|
16119
|
+
if (unpackPseudos.has(name)) {
|
|
16120
|
+
if (isQuote(selector.charCodeAt(selectorIndex + 1))) throw new Error(`Pseudo-selector ${name} cannot be quoted`);
|
|
16121
|
+
data = [];
|
|
16122
|
+
selectorIndex = parseSelector(data, selector, selectorIndex + 1);
|
|
16123
|
+
if (selector.charCodeAt(selectorIndex) !== CharCode.RightParenthesis) throw new Error(`Missing closing parenthesis in :${name} (${selector})`);
|
|
16124
|
+
selectorIndex += 1;
|
|
16125
|
+
} else {
|
|
16126
|
+
data = readValueWithParenthesis();
|
|
16127
|
+
if (stripQuotesFromPseudos.has(name)) {
|
|
16128
|
+
const quot = data.charCodeAt(0);
|
|
16129
|
+
if (quot === data.charCodeAt(data.length - 1) && isQuote(quot)) data = data.slice(1, -1);
|
|
16130
|
+
}
|
|
16131
|
+
data = unescapeCSS(data);
|
|
16108
16132
|
}
|
|
16109
|
-
data = unescapeCSS(data);
|
|
16110
16133
|
}
|
|
16111
16134
|
tokens.push({
|
|
16112
16135
|
type: SelectorType.Pseudo,
|
|
@@ -21013,9 +21036,10 @@ var require_CSSValueExpression = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21013
21036
|
expression += character;
|
|
21014
21037
|
break;
|
|
21015
21038
|
case "/":
|
|
21016
|
-
if (info = this._parseJSComment(token, idx))
|
|
21017
|
-
|
|
21018
|
-
|
|
21039
|
+
if (info = this._parseJSComment(token, idx)) {
|
|
21040
|
+
if (info.error) error = "css expression error: unfinished comment in expression!";
|
|
21041
|
+
else idx = info.idx;
|
|
21042
|
+
} else if (info = this._parseJSRexExp(token, idx)) {
|
|
21019
21043
|
idx = info.idx;
|
|
21020
21044
|
expression += info.text;
|
|
21021
21045
|
} else expression += character;
|
|
@@ -21455,19 +21479,20 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21455
21479
|
} else buffer += character;
|
|
21456
21480
|
break;
|
|
21457
21481
|
case "(":
|
|
21458
|
-
if (state === "value")
|
|
21459
|
-
|
|
21460
|
-
|
|
21461
|
-
|
|
21462
|
-
|
|
21463
|
-
|
|
21482
|
+
if (state === "value") {
|
|
21483
|
+
if (buffer.trim() === "expression") {
|
|
21484
|
+
var info = new CSSOM.CSSValueExpression(token, i).parse();
|
|
21485
|
+
if (info.error) parseError(info.error);
|
|
21486
|
+
else {
|
|
21487
|
+
buffer += info.expression;
|
|
21488
|
+
i = info.idx;
|
|
21489
|
+
}
|
|
21490
|
+
} else {
|
|
21491
|
+
state = "value-parenthesis";
|
|
21492
|
+
valueParenthesisDepth = 1;
|
|
21493
|
+
buffer += character;
|
|
21464
21494
|
}
|
|
21465
|
-
} else {
|
|
21466
|
-
state = "value-parenthesis";
|
|
21467
|
-
valueParenthesisDepth = 1;
|
|
21468
|
-
buffer += character;
|
|
21469
|
-
}
|
|
21470
|
-
else if (state === "value-parenthesis") {
|
|
21495
|
+
} else if (state === "value-parenthesis") {
|
|
21471
21496
|
valueParenthesisDepth++;
|
|
21472
21497
|
buffer += character;
|
|
21473
21498
|
} else buffer += character;
|
|
@@ -23583,10 +23608,10 @@ function registerBuiltinReaders(registry) {
|
|
|
23583
23608
|
}));
|
|
23584
23609
|
}
|
|
23585
23610
|
//#endregion
|
|
23586
|
-
//#region ../../node_modules/.pnpm/nanoid@6.0.
|
|
23611
|
+
//#region ../../node_modules/.pnpm/nanoid@6.0.1/node_modules/nanoid/url-alphabet/index.js
|
|
23587
23612
|
var urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
23588
23613
|
//#endregion
|
|
23589
|
-
//#region ../../node_modules/.pnpm/nanoid@6.0.
|
|
23614
|
+
//#region ../../node_modules/.pnpm/nanoid@6.0.1/node_modules/nanoid/index.js
|
|
23590
23615
|
var GET_RANDOM_LIMIT = 65536;
|
|
23591
23616
|
function fillRandom(buffer) {
|
|
23592
23617
|
let from = 0;
|
|
@@ -23636,7 +23661,7 @@ function customRandom(alphabet, defaultSize, getRandom) {
|
|
|
23636
23661
|
}
|
|
23637
23662
|
var POOL_MAX = GET_RANDOM_LIMIT / 2;
|
|
23638
23663
|
function customAlphabet(alphabet, defaultSize = 21) {
|
|
23639
|
-
if (typeof alphabet !== "string" || !alphabet
|
|
23664
|
+
if (typeof alphabet !== "string" || !alphabet || alphabet.length > 256) return customRandom(alphabet, defaultSize, random);
|
|
23640
23665
|
for (let i = 0; i < alphabet.length; i++) if (alphabet.charCodeAt(i) > 255) return customRandom(alphabet, defaultSize, random);
|
|
23641
23666
|
let charCodes = Uint8Array.from(alphabet, (str) => {
|
|
23642
23667
|
return str.charCodeAt(0);
|
|
@@ -23704,6 +23729,19 @@ function imageDisplayWidthAttr(el) {
|
|
|
23704
23729
|
const v = numAttr(el, "display-width");
|
|
23705
23730
|
return v !== void 0 && Number.isFinite(v) && v >= 10 && v <= 100 ? v : void 0;
|
|
23706
23731
|
}
|
|
23732
|
+
function imageFixedPxAttr(el, name) {
|
|
23733
|
+
const v = numAttr(el, name);
|
|
23734
|
+
return v !== void 0 && Number.isFinite(v) && v > 0 ? Math.round(v) : void 0;
|
|
23735
|
+
}
|
|
23736
|
+
function exclusiveImageDisplayAttrs(el) {
|
|
23737
|
+
const displayWidth = imageDisplayWidthAttr(el);
|
|
23738
|
+
if (displayWidth !== void 0) return { displayWidth };
|
|
23739
|
+
const fixedWidth = imageFixedPxAttr(el, "fixed-width");
|
|
23740
|
+
if (fixedWidth !== void 0) return { fixedWidth };
|
|
23741
|
+
const fixedHeight = imageFixedPxAttr(el, "fixed-height");
|
|
23742
|
+
if (fixedHeight !== void 0) return { fixedHeight };
|
|
23743
|
+
return {};
|
|
23744
|
+
}
|
|
23707
23745
|
function imageLayoutAttr(el) {
|
|
23708
23746
|
const v = el.getAttribute("layout");
|
|
23709
23747
|
return v !== null && IMAGE_LAYOUTS.has(v) ? v : void 0;
|
|
@@ -23756,7 +23794,7 @@ function registerCustomReaders(registry) {
|
|
|
23756
23794
|
caption: el.getAttribute("caption") ?? void 0,
|
|
23757
23795
|
thumbhash: el.getAttribute("thumbhash") ?? void 0,
|
|
23758
23796
|
accent: el.getAttribute("accent") ?? void 0,
|
|
23759
|
-
|
|
23797
|
+
...exclusiveImageDisplayAttrs(el),
|
|
23760
23798
|
layout: imageLayoutAttr(el),
|
|
23761
23799
|
version: 1
|
|
23762
23800
|
};
|
|
@@ -23770,6 +23808,17 @@ function registerCustomReaders(registry) {
|
|
|
23770
23808
|
height: numAttr(el, "height"),
|
|
23771
23809
|
version: 1
|
|
23772
23810
|
}));
|
|
23811
|
+
registry.registerReader("attachment", (el) => ({
|
|
23812
|
+
type: "file",
|
|
23813
|
+
...extractBlockId(el),
|
|
23814
|
+
src: el.getAttribute("src") ?? "",
|
|
23815
|
+
name: el.getAttribute("name") ?? "",
|
|
23816
|
+
size: numAttr(el, "size"),
|
|
23817
|
+
mimeType: el.getAttribute("mime-type") ?? void 0,
|
|
23818
|
+
ext: el.getAttribute("ext") ?? void 0,
|
|
23819
|
+
display: el.getAttribute("display") === "inline" ? "inline" : "block",
|
|
23820
|
+
version: 1
|
|
23821
|
+
}));
|
|
23773
23822
|
registry.registerReader("link-card", (el) => ({
|
|
23774
23823
|
type: "link-card",
|
|
23775
23824
|
...extractBlockId(el),
|
|
@@ -24237,6 +24286,8 @@ function registerCustomWriters(registry) {
|
|
|
24237
24286
|
"thumbhash": n.thumbhash,
|
|
24238
24287
|
"accent": n.accent,
|
|
24239
24288
|
"display-width": n.displayWidth != null ? String(n.displayWidth) : void 0,
|
|
24289
|
+
"fixed-width": n.fixedWidth != null ? String(n.fixedWidth) : void 0,
|
|
24290
|
+
"fixed-height": n.fixedHeight != null ? String(n.fixedHeight) : void 0,
|
|
24240
24291
|
"layout": n.layout
|
|
24241
24292
|
}),
|
|
24242
24293
|
selfClosing: true
|
|
@@ -24254,6 +24305,22 @@ function registerCustomWriters(registry) {
|
|
|
24254
24305
|
selfClosing: true
|
|
24255
24306
|
};
|
|
24256
24307
|
});
|
|
24308
|
+
registry.registerWriter("file", (node) => {
|
|
24309
|
+
const n = node;
|
|
24310
|
+
return {
|
|
24311
|
+
tag: "attachment",
|
|
24312
|
+
attrs: optAttr({
|
|
24313
|
+
...blockId(n),
|
|
24314
|
+
"src": n.src,
|
|
24315
|
+
"name": n.name,
|
|
24316
|
+
"size": n.size != null ? String(n.size) : void 0,
|
|
24317
|
+
"mime-type": n.mimeType,
|
|
24318
|
+
"ext": n.ext,
|
|
24319
|
+
"display": n.display === "inline" ? "inline" : void 0
|
|
24320
|
+
}),
|
|
24321
|
+
selfClosing: true
|
|
24322
|
+
};
|
|
24323
|
+
});
|
|
24257
24324
|
registry.registerWriter("link-card", (node) => {
|
|
24258
24325
|
const n = node;
|
|
24259
24326
|
return {
|
|
@@ -24737,8 +24804,10 @@ function createReaderContext(registry) {
|
|
|
24737
24804
|
else if (child.nodeType === 1) {
|
|
24738
24805
|
flushText();
|
|
24739
24806
|
const parsed = parseElement(child, registry, ctx, 0);
|
|
24740
|
-
if (parsed)
|
|
24741
|
-
|
|
24807
|
+
if (parsed) {
|
|
24808
|
+
if (Array.isArray(parsed)) nodes.push(...parsed);
|
|
24809
|
+
else nodes.push(parsed);
|
|
24810
|
+
}
|
|
24742
24811
|
}
|
|
24743
24812
|
flushText();
|
|
24744
24813
|
return nodes;
|
|
@@ -24776,8 +24845,10 @@ function parseInlineChildren(element, registry, ctx, format) {
|
|
|
24776
24845
|
else if (child.nodeType === 1) {
|
|
24777
24846
|
flushText();
|
|
24778
24847
|
const parsed = parseElement(child, registry, ctx, format);
|
|
24779
|
-
if (parsed)
|
|
24780
|
-
|
|
24848
|
+
if (parsed) {
|
|
24849
|
+
if (Array.isArray(parsed)) nodes.push(...parsed);
|
|
24850
|
+
else nodes.push(parsed);
|
|
24851
|
+
}
|
|
24781
24852
|
}
|
|
24782
24853
|
flushText();
|
|
24783
24854
|
return nodes;
|