@superdoc-dev/cli 0.7.0-next.27 → 0.7.0-next.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +234 -94
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -205572,7 +205572,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
|
|
|
205572
205572
|
init_remark_gfm_BhnWr3yf_es();
|
|
205573
205573
|
});
|
|
205574
205574
|
|
|
205575
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
205575
|
+
// ../../packages/superdoc/dist/chunks/src-BSdWFICK.es.js
|
|
205576
205576
|
function deleteProps(obj, propOrProps) {
|
|
205577
205577
|
const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
|
|
205578
205578
|
const removeNested = (target, pathParts, index2 = 0) => {
|
|
@@ -277504,7 +277504,77 @@ var Node$13 = class Node$14 {
|
|
|
277504
277504
|
.superdoc-layout .annotation * {
|
|
277505
277505
|
caret-color: transparent;
|
|
277506
277506
|
}
|
|
277507
|
-
`, IMAGE_SELECTION_STYLES,
|
|
277507
|
+
`, IMAGE_SELECTION_STYLES, MATH_MENCLOSE_STYLES = `
|
|
277508
|
+
/* MathML <menclose> polyfill.
|
|
277509
|
+
*
|
|
277510
|
+
* MathML 3 defined <menclose notation="..."> with borders, strikes, and other
|
|
277511
|
+
* enclosure notations. MathML Core (the subset shipped in Chrome 109+, 2023)
|
|
277512
|
+
* dropped <menclose> — the WG moved its rendering to CSS/SVG. Firefox and
|
|
277513
|
+
* WebKit also do not paint it. Without this polyfill, m:borderBox content
|
|
277514
|
+
* imports correctly (the notation attribute is right) but renders invisibly.
|
|
277515
|
+
*
|
|
277516
|
+
* Each notation token is composable: "box horizontalstrike" draws the box
|
|
277517
|
+
* border and a horizontal strike together. Diagonal strikes layer through
|
|
277518
|
+
* CSS custom properties so X patterns (both diagonals) stack correctly.
|
|
277519
|
+
*
|
|
277520
|
+
* @spec MathML 3 §3.3.8 menclose
|
|
277521
|
+
*/
|
|
277522
|
+
menclose {
|
|
277523
|
+
display: inline-block;
|
|
277524
|
+
position: relative;
|
|
277525
|
+
padding: 0.15em 0.25em;
|
|
277526
|
+
|
|
277527
|
+
--sd-menclose-stroke: currentColor;
|
|
277528
|
+
--sd-menclose-h: none;
|
|
277529
|
+
--sd-menclose-v: none;
|
|
277530
|
+
--sd-menclose-up: none;
|
|
277531
|
+
--sd-menclose-down: none;
|
|
277532
|
+
}
|
|
277533
|
+
|
|
277534
|
+
menclose[notation~="box"] { border: 1px solid var(--sd-menclose-stroke); }
|
|
277535
|
+
menclose[notation~="roundedbox"] { border: 1px solid var(--sd-menclose-stroke); border-radius: 0.3em; }
|
|
277536
|
+
menclose[notation~="top"] { border-top: 1px solid var(--sd-menclose-stroke); }
|
|
277537
|
+
menclose[notation~="bottom"] { border-bottom: 1px solid var(--sd-menclose-stroke); }
|
|
277538
|
+
menclose[notation~="left"] { border-left: 1px solid var(--sd-menclose-stroke); }
|
|
277539
|
+
menclose[notation~="right"] { border-right: 1px solid var(--sd-menclose-stroke); }
|
|
277540
|
+
|
|
277541
|
+
menclose[notation~="horizontalstrike"] {
|
|
277542
|
+
--sd-menclose-h: linear-gradient(var(--sd-menclose-stroke), var(--sd-menclose-stroke)) no-repeat center / 100% 1px;
|
|
277543
|
+
}
|
|
277544
|
+
menclose[notation~="verticalstrike"] {
|
|
277545
|
+
--sd-menclose-v: linear-gradient(var(--sd-menclose-stroke), var(--sd-menclose-stroke)) no-repeat center / 1px 100%;
|
|
277546
|
+
}
|
|
277547
|
+
/* Gradient direction is perpendicular to the stripe it produces.
|
|
277548
|
+
* "to bottom right" → stripe runs bottom-left → top-right (visually "/") = updiagonalstrike.
|
|
277549
|
+
* "to top right" → stripe runs top-left → bottom-right (visually "") = downdiagonalstrike.
|
|
277550
|
+
*/
|
|
277551
|
+
menclose[notation~="updiagonalstrike"] {
|
|
277552
|
+
--sd-menclose-up: linear-gradient(
|
|
277553
|
+
to bottom right,
|
|
277554
|
+
transparent calc(50% - 0.5px),
|
|
277555
|
+
var(--sd-menclose-stroke) calc(50% - 0.5px),
|
|
277556
|
+
var(--sd-menclose-stroke) calc(50% + 0.5px),
|
|
277557
|
+
transparent calc(50% + 0.5px)
|
|
277558
|
+
);
|
|
277559
|
+
}
|
|
277560
|
+
menclose[notation~="downdiagonalstrike"] {
|
|
277561
|
+
--sd-menclose-down: linear-gradient(
|
|
277562
|
+
to top right,
|
|
277563
|
+
transparent calc(50% - 0.5px),
|
|
277564
|
+
var(--sd-menclose-stroke) calc(50% - 0.5px),
|
|
277565
|
+
var(--sd-menclose-stroke) calc(50% + 0.5px),
|
|
277566
|
+
transparent calc(50% + 0.5px)
|
|
277567
|
+
);
|
|
277568
|
+
}
|
|
277569
|
+
|
|
277570
|
+
menclose::after {
|
|
277571
|
+
content: "";
|
|
277572
|
+
position: absolute;
|
|
277573
|
+
inset: 0;
|
|
277574
|
+
pointer-events: none;
|
|
277575
|
+
background: var(--sd-menclose-h), var(--sd-menclose-v), var(--sd-menclose-up), var(--sd-menclose-down);
|
|
277576
|
+
}
|
|
277577
|
+
`, printStylesInjected = false, linkStylesInjected = false, trackChangeStylesInjected = false, sdtContainerStylesInjected = false, fieldAnnotationStylesInjected = false, imageSelectionStylesInjected = false, mathMencloseStylesInjected = false, ensurePrintStyles = (doc$12) => {
|
|
277508
277578
|
if (printStylesInjected || !doc$12)
|
|
277509
277579
|
return;
|
|
277510
277580
|
const styleEl = doc$12.createElement("style");
|
|
@@ -277552,6 +277622,14 @@ var Node$13 = class Node$14 {
|
|
|
277552
277622
|
styleEl.textContent = IMAGE_SELECTION_STYLES;
|
|
277553
277623
|
doc$12.head?.appendChild(styleEl);
|
|
277554
277624
|
imageSelectionStylesInjected = true;
|
|
277625
|
+
}, ensureMathMencloseStyles = (doc$12) => {
|
|
277626
|
+
if (mathMencloseStylesInjected || !doc$12)
|
|
277627
|
+
return;
|
|
277628
|
+
const styleEl = doc$12.createElement("style");
|
|
277629
|
+
styleEl.setAttribute("data-superdoc-math-menclose-styles", "true");
|
|
277630
|
+
styleEl.textContent = MATH_MENCLOSE_STYLES;
|
|
277631
|
+
doc$12.head?.appendChild(styleEl);
|
|
277632
|
+
mathMencloseStylesInjected = true;
|
|
277555
277633
|
}, gradientIdCounter = 0, getFragmentParagraphBorders = (fragment2, blockLookup) => {
|
|
277556
277634
|
const lookup3 = blockLookup.get(fragment2.blockId);
|
|
277557
277635
|
if (!lookup3)
|
|
@@ -278964,7 +279042,7 @@ var Node$13 = class Node$14 {
|
|
|
278964
279042
|
}
|
|
278965
279043
|
element3.style.textAlign = resolveTextAlign(attrs?.alignment, rtl);
|
|
278966
279044
|
return rtl;
|
|
278967
|
-
}, shouldUseSegmentPositioning = (hasExplicitPositioning, hasSegments, isRtl) => hasExplicitPositioning && hasSegments && !isRtl, MATHML_NS$
|
|
279045
|
+
}, shouldUseSegmentPositioning = (hasExplicitPositioning, hasSegments, isRtl) => hasExplicitPositioning && hasSegments && !isRtl, MATHML_NS$19 = "http://www.w3.org/1998/Math/MathML", OPERATOR_CHARS, STY_TO_VARIANT, SCR_TO_VARIANT, convertMathRun = (node3, doc$12) => {
|
|
278968
279046
|
const elements = node3.elements ?? [];
|
|
278969
279047
|
let text5 = "";
|
|
278970
279048
|
for (const child of elements)
|
|
@@ -278978,66 +279056,66 @@ var Node$13 = class Node$14 {
|
|
|
278978
279056
|
return null;
|
|
278979
279057
|
const variant = resolveMathVariant(elements.find((el$1) => el$1.name === "m:rPr"));
|
|
278980
279058
|
const tag = classifyMathText(text5);
|
|
278981
|
-
const el = doc$12.createElementNS(MATHML_NS$
|
|
279059
|
+
const el = doc$12.createElementNS(MATHML_NS$19, tag);
|
|
278982
279060
|
el.textContent = text5;
|
|
278983
279061
|
if (variant)
|
|
278984
279062
|
el.setAttribute("mathvariant", variant);
|
|
278985
279063
|
return el;
|
|
278986
|
-
}, MATHML_NS$
|
|
279064
|
+
}, MATHML_NS$18 = "http://www.w3.org/1998/Math/MathML", convertFraction = (node3, doc$12, convertChildren) => {
|
|
278987
279065
|
const elements = node3.elements ?? [];
|
|
278988
279066
|
const num = elements.find((e) => e.name === "m:num");
|
|
278989
279067
|
const den = elements.find((e) => e.name === "m:den");
|
|
278990
|
-
const frac = doc$12.createElementNS(MATHML_NS$
|
|
278991
|
-
const numRow = doc$12.createElementNS(MATHML_NS$
|
|
279068
|
+
const frac = doc$12.createElementNS(MATHML_NS$18, "mfrac");
|
|
279069
|
+
const numRow = doc$12.createElementNS(MATHML_NS$18, "mrow");
|
|
278992
279070
|
numRow.appendChild(convertChildren(num?.elements ?? []));
|
|
278993
279071
|
frac.appendChild(numRow);
|
|
278994
|
-
const denRow = doc$12.createElementNS(MATHML_NS$
|
|
279072
|
+
const denRow = doc$12.createElementNS(MATHML_NS$18, "mrow");
|
|
278995
279073
|
denRow.appendChild(convertChildren(den?.elements ?? []));
|
|
278996
279074
|
frac.appendChild(denRow);
|
|
278997
279075
|
return frac;
|
|
278998
|
-
}, MATHML_NS$
|
|
279076
|
+
}, MATHML_NS$17 = "http://www.w3.org/1998/Math/MathML", convertBar = (node3, doc$12, convertChildren) => {
|
|
278999
279077
|
const elements = node3.elements ?? [];
|
|
279000
279078
|
const isUnder = elements.find((e) => e.name === "m:barPr")?.elements?.find((e) => e.name === "m:pos")?.attributes?.["m:val"] !== "top";
|
|
279001
279079
|
const base5 = elements.find((e) => e.name === "m:e");
|
|
279002
|
-
const wrapper = doc$12.createElementNS(MATHML_NS$
|
|
279080
|
+
const wrapper = doc$12.createElementNS(MATHML_NS$17, isUnder ? "munder" : "mover");
|
|
279003
279081
|
const baseContent = convertChildren(base5?.elements ?? []);
|
|
279004
|
-
const mrow = doc$12.createElementNS(MATHML_NS$
|
|
279082
|
+
const mrow = doc$12.createElementNS(MATHML_NS$17, "mrow");
|
|
279005
279083
|
mrow.appendChild(baseContent);
|
|
279006
279084
|
wrapper.appendChild(mrow);
|
|
279007
|
-
const accent = doc$12.createElementNS(MATHML_NS$
|
|
279085
|
+
const accent = doc$12.createElementNS(MATHML_NS$17, "mo");
|
|
279008
279086
|
accent.setAttribute("stretchy", "true");
|
|
279009
279087
|
accent.textContent = "‾";
|
|
279010
279088
|
wrapper.appendChild(accent);
|
|
279011
279089
|
return wrapper;
|
|
279012
|
-
}, MATHML_NS$
|
|
279090
|
+
}, MATHML_NS$16 = "http://www.w3.org/1998/Math/MathML", FUNCTION_APPLY_OPERATOR = "", convertFunction = (node3, doc$12, convertChildren) => {
|
|
279013
279091
|
const elements = node3.elements ?? [];
|
|
279014
279092
|
const functionName = elements.find((element3) => element3.name === "m:fName");
|
|
279015
279093
|
const argument = elements.find((element3) => element3.name === "m:e");
|
|
279016
|
-
const wrapper = doc$12.createElementNS(MATHML_NS$
|
|
279017
|
-
const functionNameRow = doc$12.createElementNS(MATHML_NS$
|
|
279094
|
+
const wrapper = doc$12.createElementNS(MATHML_NS$16, "mrow");
|
|
279095
|
+
const functionNameRow = doc$12.createElementNS(MATHML_NS$16, "mrow");
|
|
279018
279096
|
functionNameRow.appendChild(convertChildren(functionName?.elements ?? []));
|
|
279019
279097
|
forceNormalMathVariant(functionNameRow);
|
|
279020
279098
|
if (functionNameRow.childNodes.length > 0)
|
|
279021
279099
|
wrapper.appendChild(functionNameRow);
|
|
279022
|
-
const argumentRow = doc$12.createElementNS(MATHML_NS$
|
|
279100
|
+
const argumentRow = doc$12.createElementNS(MATHML_NS$16, "mrow");
|
|
279023
279101
|
argumentRow.appendChild(convertChildren(argument?.elements ?? []));
|
|
279024
279102
|
if (functionNameRow.childNodes.length > 0 && argumentRow.childNodes.length > 0) {
|
|
279025
|
-
const applyOperator = doc$12.createElementNS(MATHML_NS$
|
|
279103
|
+
const applyOperator = doc$12.createElementNS(MATHML_NS$16, "mo");
|
|
279026
279104
|
applyOperator.textContent = FUNCTION_APPLY_OPERATOR;
|
|
279027
279105
|
wrapper.appendChild(applyOperator);
|
|
279028
279106
|
}
|
|
279029
279107
|
if (argumentRow.childNodes.length > 0)
|
|
279030
279108
|
wrapper.appendChild(argumentRow);
|
|
279031
279109
|
return wrapper.childNodes.length > 0 ? wrapper : null;
|
|
279032
|
-
}, MATHML_NS$
|
|
279110
|
+
}, MATHML_NS$15 = "http://www.w3.org/1998/Math/MathML", DEFAULT_BEGIN_DELIMITER = "(", DEFAULT_END_DELIMITER = ")", DEFAULT_SEPARATOR_DELIMITER = "│", convertDelimiter = (node3, doc$12, convertChildren) => {
|
|
279033
279111
|
const elements = node3.elements ?? [];
|
|
279034
279112
|
const delimiterProps = elements.find((element3) => element3.name === "m:dPr");
|
|
279035
279113
|
const expressions = elements.filter((element3) => element3.name === "m:e");
|
|
279036
279114
|
const beginDelimiter = getDelimiterValue(delimiterProps, "m:begChr", DEFAULT_BEGIN_DELIMITER);
|
|
279037
279115
|
const endDelimiter = getDelimiterValue(delimiterProps, "m:endChr", DEFAULT_END_DELIMITER);
|
|
279038
279116
|
const separatorDelimiter = getDelimiterValue(delimiterProps, "m:sepChr", DEFAULT_SEPARATOR_DELIMITER);
|
|
279039
|
-
const wrapper = doc$12.createElementNS(MATHML_NS$
|
|
279040
|
-
const begin = doc$12.createElementNS(MATHML_NS$
|
|
279117
|
+
const wrapper = doc$12.createElementNS(MATHML_NS$15, "mrow");
|
|
279118
|
+
const begin = doc$12.createElementNS(MATHML_NS$15, "mo");
|
|
279041
279119
|
begin.textContent = beginDelimiter;
|
|
279042
279120
|
wrapper.appendChild(begin);
|
|
279043
279121
|
let renderedCount = 0;
|
|
@@ -279046,60 +279124,60 @@ var Node$13 = class Node$14 {
|
|
|
279046
279124
|
if (fragment2.childNodes.length === 0)
|
|
279047
279125
|
continue;
|
|
279048
279126
|
if (renderedCount > 0) {
|
|
279049
|
-
const separator = doc$12.createElementNS(MATHML_NS$
|
|
279127
|
+
const separator = doc$12.createElementNS(MATHML_NS$15, "mo");
|
|
279050
279128
|
separator.textContent = separatorDelimiter;
|
|
279051
279129
|
wrapper.appendChild(separator);
|
|
279052
279130
|
}
|
|
279053
|
-
const group = doc$12.createElementNS(MATHML_NS$
|
|
279131
|
+
const group = doc$12.createElementNS(MATHML_NS$15, "mrow");
|
|
279054
279132
|
group.appendChild(fragment2);
|
|
279055
279133
|
wrapper.appendChild(group);
|
|
279056
279134
|
renderedCount++;
|
|
279057
279135
|
}
|
|
279058
|
-
const end$1 = doc$12.createElementNS(MATHML_NS$
|
|
279136
|
+
const end$1 = doc$12.createElementNS(MATHML_NS$15, "mo");
|
|
279059
279137
|
end$1.textContent = endDelimiter;
|
|
279060
279138
|
wrapper.appendChild(end$1);
|
|
279061
279139
|
return wrapper;
|
|
279062
|
-
}, MATHML_NS$
|
|
279140
|
+
}, MATHML_NS$14 = "http://www.w3.org/1998/Math/MathML", convertSubscript = (node3, doc$12, convertChildren) => {
|
|
279063
279141
|
const elements = node3.elements ?? [];
|
|
279064
279142
|
const base5 = elements.find((e) => e.name === "m:e");
|
|
279065
279143
|
const sub = elements.find((e) => e.name === "m:sub");
|
|
279066
|
-
const msub = doc$12.createElementNS(MATHML_NS$
|
|
279067
|
-
const baseRow = doc$12.createElementNS(MATHML_NS$
|
|
279144
|
+
const msub = doc$12.createElementNS(MATHML_NS$14, "msub");
|
|
279145
|
+
const baseRow = doc$12.createElementNS(MATHML_NS$14, "mrow");
|
|
279068
279146
|
baseRow.appendChild(convertChildren(base5?.elements ?? []));
|
|
279069
279147
|
msub.appendChild(baseRow);
|
|
279070
|
-
const subRow = doc$12.createElementNS(MATHML_NS$
|
|
279148
|
+
const subRow = doc$12.createElementNS(MATHML_NS$14, "mrow");
|
|
279071
279149
|
subRow.appendChild(convertChildren(sub?.elements ?? []));
|
|
279072
279150
|
msub.appendChild(subRow);
|
|
279073
279151
|
return msub;
|
|
279074
|
-
}, MATHML_NS$
|
|
279152
|
+
}, MATHML_NS$13 = "http://www.w3.org/1998/Math/MathML", convertSuperscript = (node3, doc$12, convertChildren) => {
|
|
279075
279153
|
const elements = node3.elements ?? [];
|
|
279076
279154
|
const base5 = elements.find((e) => e.name === "m:e");
|
|
279077
279155
|
const sup = elements.find((e) => e.name === "m:sup");
|
|
279078
|
-
const msup = doc$12.createElementNS(MATHML_NS$
|
|
279079
|
-
const baseRow = doc$12.createElementNS(MATHML_NS$
|
|
279156
|
+
const msup = doc$12.createElementNS(MATHML_NS$13, "msup");
|
|
279157
|
+
const baseRow = doc$12.createElementNS(MATHML_NS$13, "mrow");
|
|
279080
279158
|
baseRow.appendChild(convertChildren(base5?.elements ?? []));
|
|
279081
279159
|
msup.appendChild(baseRow);
|
|
279082
|
-
const supRow = doc$12.createElementNS(MATHML_NS$
|
|
279160
|
+
const supRow = doc$12.createElementNS(MATHML_NS$13, "mrow");
|
|
279083
279161
|
supRow.appendChild(convertChildren(sup?.elements ?? []));
|
|
279084
279162
|
msup.appendChild(supRow);
|
|
279085
279163
|
return msup;
|
|
279086
|
-
}, MATHML_NS$
|
|
279164
|
+
}, MATHML_NS$12 = "http://www.w3.org/1998/Math/MathML", convertSubSuperscript = (node3, doc$12, convertChildren) => {
|
|
279087
279165
|
const elements = node3.elements ?? [];
|
|
279088
279166
|
const base5 = elements.find((e) => e.name === "m:e");
|
|
279089
279167
|
const sub = elements.find((e) => e.name === "m:sub");
|
|
279090
279168
|
const sup = elements.find((e) => e.name === "m:sup");
|
|
279091
|
-
const msubsup = doc$12.createElementNS(MATHML_NS$
|
|
279092
|
-
const baseRow = doc$12.createElementNS(MATHML_NS$
|
|
279169
|
+
const msubsup = doc$12.createElementNS(MATHML_NS$12, "msubsup");
|
|
279170
|
+
const baseRow = doc$12.createElementNS(MATHML_NS$12, "mrow");
|
|
279093
279171
|
baseRow.appendChild(convertChildren(base5?.elements ?? []));
|
|
279094
279172
|
msubsup.appendChild(baseRow);
|
|
279095
|
-
const subRow = doc$12.createElementNS(MATHML_NS$
|
|
279173
|
+
const subRow = doc$12.createElementNS(MATHML_NS$12, "mrow");
|
|
279096
279174
|
subRow.appendChild(convertChildren(sub?.elements ?? []));
|
|
279097
279175
|
msubsup.appendChild(subRow);
|
|
279098
|
-
const supRow = doc$12.createElementNS(MATHML_NS$
|
|
279176
|
+
const supRow = doc$12.createElementNS(MATHML_NS$12, "mrow");
|
|
279099
279177
|
supRow.appendChild(convertChildren(sup?.elements ?? []));
|
|
279100
279178
|
msubsup.appendChild(supRow);
|
|
279101
279179
|
return msubsup;
|
|
279102
|
-
}, MATHML_NS$
|
|
279180
|
+
}, MATHML_NS$11 = "http://www.w3.org/1998/Math/MathML", DEFAULT_ACCENT_CHAR = "̂", COMBINING_TO_SPACING, convertAccent = (node3, doc$12, convertChildren) => {
|
|
279103
279181
|
const elements = node3.elements ?? [];
|
|
279104
279182
|
const base5 = elements.find((e) => e.name === "m:e");
|
|
279105
279183
|
if (!base5)
|
|
@@ -279107,37 +279185,37 @@ var Node$13 = class Node$14 {
|
|
|
279107
279185
|
const chr = elements.find((e) => e.name === "m:accPr")?.elements?.find((e) => e.name === "m:chr");
|
|
279108
279186
|
const rawVal = chr?.attributes?.["m:val"];
|
|
279109
279187
|
const accentChar = chr === undefined ? DEFAULT_ACCENT_CHAR : rawVal && rawVal.length > 0 ? rawVal : "";
|
|
279110
|
-
const baseRow = doc$12.createElementNS(MATHML_NS$
|
|
279188
|
+
const baseRow = doc$12.createElementNS(MATHML_NS$11, "mrow");
|
|
279111
279189
|
baseRow.appendChild(convertChildren(base5.elements ?? []));
|
|
279112
279190
|
if (!accentChar)
|
|
279113
279191
|
return baseRow;
|
|
279114
279192
|
const renderChar = COMBINING_TO_SPACING[accentChar] ?? accentChar;
|
|
279115
|
-
const mover = doc$12.createElementNS(MATHML_NS$
|
|
279193
|
+
const mover = doc$12.createElementNS(MATHML_NS$11, "mover");
|
|
279116
279194
|
mover.setAttribute("accent", "true");
|
|
279117
279195
|
mover.appendChild(baseRow);
|
|
279118
|
-
const mo = doc$12.createElementNS(MATHML_NS$
|
|
279196
|
+
const mo = doc$12.createElementNS(MATHML_NS$11, "mo");
|
|
279119
279197
|
mo.setAttribute("stretchy", "true");
|
|
279120
279198
|
mo.textContent = renderChar;
|
|
279121
279199
|
mover.appendChild(mo);
|
|
279122
279200
|
return mover;
|
|
279123
|
-
}, MATHML_NS$
|
|
279201
|
+
}, MATHML_NS$10 = "http://www.w3.org/1998/Math/MathML", convertPreSubSuperscript = (node3, doc$12, convertChildren) => {
|
|
279124
279202
|
const elements = node3.elements ?? [];
|
|
279125
279203
|
const base5 = elements.find((e) => e.name === "m:e");
|
|
279126
279204
|
const sub = elements.find((e) => e.name === "m:sub");
|
|
279127
279205
|
const sup = elements.find((e) => e.name === "m:sup");
|
|
279128
|
-
const mmultiscripts = doc$12.createElementNS(MATHML_NS$
|
|
279129
|
-
const baseRow = doc$12.createElementNS(MATHML_NS$
|
|
279206
|
+
const mmultiscripts = doc$12.createElementNS(MATHML_NS$10, "mmultiscripts");
|
|
279207
|
+
const baseRow = doc$12.createElementNS(MATHML_NS$10, "mrow");
|
|
279130
279208
|
baseRow.appendChild(convertChildren(base5?.elements ?? []));
|
|
279131
279209
|
mmultiscripts.appendChild(baseRow);
|
|
279132
|
-
mmultiscripts.appendChild(doc$12.createElementNS(MATHML_NS$
|
|
279133
|
-
const subRow = doc$12.createElementNS(MATHML_NS$
|
|
279210
|
+
mmultiscripts.appendChild(doc$12.createElementNS(MATHML_NS$10, "mprescripts"));
|
|
279211
|
+
const subRow = doc$12.createElementNS(MATHML_NS$10, "mrow");
|
|
279134
279212
|
subRow.appendChild(convertChildren(sub?.elements ?? []));
|
|
279135
279213
|
mmultiscripts.appendChild(subRow);
|
|
279136
|
-
const supRow = doc$12.createElementNS(MATHML_NS$
|
|
279214
|
+
const supRow = doc$12.createElementNS(MATHML_NS$10, "mrow");
|
|
279137
279215
|
supRow.appendChild(convertChildren(sup?.elements ?? []));
|
|
279138
279216
|
mmultiscripts.appendChild(supRow);
|
|
279139
279217
|
return mmultiscripts;
|
|
279140
|
-
}, MATHML_NS$
|
|
279218
|
+
}, MATHML_NS$9 = "http://www.w3.org/1998/Math/MathML", stripAlignmentMarkers = (nodes) => nodes.map((node3) => {
|
|
279141
279219
|
if (node3?.type === "text" && typeof node3.text === "string" && node3.text.includes("&"))
|
|
279142
279220
|
return {
|
|
279143
279221
|
...node3,
|
|
@@ -279151,12 +279229,12 @@ var Node$13 = class Node$14 {
|
|
|
279151
279229
|
return node3;
|
|
279152
279230
|
}), convertEquationArray = (node3, doc$12, convertChildren) => {
|
|
279153
279231
|
const rows = (node3.elements ?? []).filter((e) => e.name === "m:e");
|
|
279154
|
-
const mtable = doc$12.createElementNS(MATHML_NS$
|
|
279232
|
+
const mtable = doc$12.createElementNS(MATHML_NS$9, "mtable");
|
|
279155
279233
|
mtable.setAttribute("columnalign", "left");
|
|
279156
279234
|
for (const row2 of rows) {
|
|
279157
|
-
const mtr = doc$12.createElementNS(MATHML_NS$
|
|
279158
|
-
const mtd = doc$12.createElementNS(MATHML_NS$
|
|
279159
|
-
const mrow = doc$12.createElementNS(MATHML_NS$
|
|
279235
|
+
const mtr = doc$12.createElementNS(MATHML_NS$9, "mtr");
|
|
279236
|
+
const mtd = doc$12.createElementNS(MATHML_NS$9, "mtd");
|
|
279237
|
+
const mrow = doc$12.createElementNS(MATHML_NS$9, "mrow");
|
|
279160
279238
|
const cleanedChildren = stripAlignmentMarkers(row2.elements ?? []);
|
|
279161
279239
|
mrow.appendChild(convertChildren(cleanedChildren));
|
|
279162
279240
|
mtd.appendChild(mrow);
|
|
@@ -279164,7 +279242,7 @@ var Node$13 = class Node$14 {
|
|
|
279164
279242
|
mtable.appendChild(mtr);
|
|
279165
279243
|
}
|
|
279166
279244
|
return mtable.childNodes.length > 0 ? mtable : null;
|
|
279167
|
-
}, MATHML_NS$
|
|
279245
|
+
}, MATHML_NS$8 = "http://www.w3.org/1998/Math/MathML", convertRadical = (node3, doc$12, convertChildren) => {
|
|
279168
279246
|
const elements = node3.elements ?? [];
|
|
279169
279247
|
const radPr = elements.find((e) => e.name === "m:radPr");
|
|
279170
279248
|
const deg = elements.find((e) => e.name === "m:deg");
|
|
@@ -279172,45 +279250,45 @@ var Node$13 = class Node$14 {
|
|
|
279172
279250
|
const degHideEl = radPr?.elements?.find((e) => e.name === "m:degHide");
|
|
279173
279251
|
const degHideVal = degHideEl?.attributes?.["m:val"];
|
|
279174
279252
|
if (degHideEl !== undefined && degHideVal !== "0" && degHideVal !== "false" && degHideVal !== "off" || !deg || (deg.elements ?? []).length === 0) {
|
|
279175
|
-
const msqrt = doc$12.createElementNS(MATHML_NS$
|
|
279176
|
-
const radicandRow$1 = doc$12.createElementNS(MATHML_NS$
|
|
279253
|
+
const msqrt = doc$12.createElementNS(MATHML_NS$8, "msqrt");
|
|
279254
|
+
const radicandRow$1 = doc$12.createElementNS(MATHML_NS$8, "mrow");
|
|
279177
279255
|
radicandRow$1.appendChild(convertChildren(radicand?.elements ?? []));
|
|
279178
279256
|
msqrt.appendChild(radicandRow$1);
|
|
279179
279257
|
return msqrt;
|
|
279180
279258
|
}
|
|
279181
|
-
const mroot = doc$12.createElementNS(MATHML_NS$
|
|
279182
|
-
const radicandRow = doc$12.createElementNS(MATHML_NS$
|
|
279259
|
+
const mroot = doc$12.createElementNS(MATHML_NS$8, "mroot");
|
|
279260
|
+
const radicandRow = doc$12.createElementNS(MATHML_NS$8, "mrow");
|
|
279183
279261
|
radicandRow.appendChild(convertChildren(radicand?.elements ?? []));
|
|
279184
279262
|
mroot.appendChild(radicandRow);
|
|
279185
|
-
const degRow = doc$12.createElementNS(MATHML_NS$
|
|
279263
|
+
const degRow = doc$12.createElementNS(MATHML_NS$8, "mrow");
|
|
279186
279264
|
degRow.appendChild(convertChildren(deg?.elements ?? []));
|
|
279187
279265
|
mroot.appendChild(degRow);
|
|
279188
279266
|
return mroot;
|
|
279189
|
-
}, MATHML_NS$
|
|
279267
|
+
}, MATHML_NS$7 = "http://www.w3.org/1998/Math/MathML", convertLowerLimit = (node3, doc$12, convertChildren) => {
|
|
279190
279268
|
const elements = node3.elements ?? [];
|
|
279191
279269
|
const base5 = elements.find((e) => e.name === "m:e");
|
|
279192
279270
|
const lim = elements.find((e) => e.name === "m:lim");
|
|
279193
|
-
const munder = doc$12.createElementNS(MATHML_NS$
|
|
279194
|
-
const baseRow = doc$12.createElementNS(MATHML_NS$
|
|
279271
|
+
const munder = doc$12.createElementNS(MATHML_NS$7, "munder");
|
|
279272
|
+
const baseRow = doc$12.createElementNS(MATHML_NS$7, "mrow");
|
|
279195
279273
|
baseRow.appendChild(convertChildren(base5?.elements ?? []));
|
|
279196
279274
|
munder.appendChild(baseRow);
|
|
279197
|
-
const limRow = doc$12.createElementNS(MATHML_NS$
|
|
279275
|
+
const limRow = doc$12.createElementNS(MATHML_NS$7, "mrow");
|
|
279198
279276
|
limRow.appendChild(convertChildren(lim?.elements ?? []));
|
|
279199
279277
|
munder.appendChild(limRow);
|
|
279200
279278
|
return munder;
|
|
279201
|
-
}, MATHML_NS$
|
|
279279
|
+
}, MATHML_NS$6 = "http://www.w3.org/1998/Math/MathML", convertUpperLimit = (node3, doc$12, convertChildren) => {
|
|
279202
279280
|
const elements = node3.elements ?? [];
|
|
279203
279281
|
const base5 = elements.find((e) => e.name === "m:e");
|
|
279204
279282
|
const lim = elements.find((e) => e.name === "m:lim");
|
|
279205
|
-
const mover = doc$12.createElementNS(MATHML_NS$
|
|
279206
|
-
const baseRow = doc$12.createElementNS(MATHML_NS$
|
|
279283
|
+
const mover = doc$12.createElementNS(MATHML_NS$6, "mover");
|
|
279284
|
+
const baseRow = doc$12.createElementNS(MATHML_NS$6, "mrow");
|
|
279207
279285
|
baseRow.appendChild(convertChildren(base5?.elements ?? []));
|
|
279208
279286
|
mover.appendChild(baseRow);
|
|
279209
|
-
const limRow = doc$12.createElementNS(MATHML_NS$
|
|
279287
|
+
const limRow = doc$12.createElementNS(MATHML_NS$6, "mrow");
|
|
279210
279288
|
limRow.appendChild(convertChildren(lim?.elements ?? []));
|
|
279211
279289
|
mover.appendChild(limRow);
|
|
279212
279290
|
return mover;
|
|
279213
|
-
}, MATHML_NS$
|
|
279291
|
+
}, MATHML_NS$5 = "http://www.w3.org/1998/Math/MathML", DEFAULT_NARY_CHAR = "∫", INTEGRAL_CHARS, convertNary = (node3, doc$12, convertChildren) => {
|
|
279214
279292
|
const elements = node3.elements ?? [];
|
|
279215
279293
|
const naryPr = elements.find((e) => e.name === "m:naryPr");
|
|
279216
279294
|
const sub = elements.find((e) => e.name === "m:sub");
|
|
@@ -279237,7 +279315,7 @@ var Node$13 = class Node$14 {
|
|
|
279237
279315
|
const hasSub = renderSubChildren.length > 0 || sub !== undefined && !subHidden;
|
|
279238
279316
|
const hasSup = renderSupChildren.length > 0 || sup !== undefined && !supHidden;
|
|
279239
279317
|
const growOff = grow !== undefined && !isStOnOffTrue(grow);
|
|
279240
|
-
const mo = doc$12.createElementNS(MATHML_NS$
|
|
279318
|
+
const mo = doc$12.createElementNS(MATHML_NS$5, "mo");
|
|
279241
279319
|
mo.textContent = opChar;
|
|
279242
279320
|
if (growOff) {
|
|
279243
279321
|
mo.setAttribute("largeop", "false");
|
|
@@ -279246,38 +279324,38 @@ var Node$13 = class Node$14 {
|
|
|
279246
279324
|
let operatorEl;
|
|
279247
279325
|
if (hasSub && hasSup) {
|
|
279248
279326
|
const tag = isUndOvr ? "munderover" : "msubsup";
|
|
279249
|
-
operatorEl = doc$12.createElementNS(MATHML_NS$
|
|
279327
|
+
operatorEl = doc$12.createElementNS(MATHML_NS$5, tag);
|
|
279250
279328
|
operatorEl.appendChild(mo);
|
|
279251
|
-
const subRow = doc$12.createElementNS(MATHML_NS$
|
|
279329
|
+
const subRow = doc$12.createElementNS(MATHML_NS$5, "mrow");
|
|
279252
279330
|
subRow.appendChild(convertChildren(renderSubChildren));
|
|
279253
279331
|
operatorEl.appendChild(subRow);
|
|
279254
|
-
const supRow = doc$12.createElementNS(MATHML_NS$
|
|
279332
|
+
const supRow = doc$12.createElementNS(MATHML_NS$5, "mrow");
|
|
279255
279333
|
supRow.appendChild(convertChildren(renderSupChildren));
|
|
279256
279334
|
operatorEl.appendChild(supRow);
|
|
279257
279335
|
} else if (hasSub) {
|
|
279258
279336
|
const tag = isUndOvr ? "munder" : "msub";
|
|
279259
|
-
operatorEl = doc$12.createElementNS(MATHML_NS$
|
|
279337
|
+
operatorEl = doc$12.createElementNS(MATHML_NS$5, tag);
|
|
279260
279338
|
operatorEl.appendChild(mo);
|
|
279261
|
-
const subRow = doc$12.createElementNS(MATHML_NS$
|
|
279339
|
+
const subRow = doc$12.createElementNS(MATHML_NS$5, "mrow");
|
|
279262
279340
|
subRow.appendChild(convertChildren(renderSubChildren));
|
|
279263
279341
|
operatorEl.appendChild(subRow);
|
|
279264
279342
|
} else if (hasSup) {
|
|
279265
279343
|
const tag = isUndOvr ? "mover" : "msup";
|
|
279266
|
-
operatorEl = doc$12.createElementNS(MATHML_NS$
|
|
279344
|
+
operatorEl = doc$12.createElementNS(MATHML_NS$5, tag);
|
|
279267
279345
|
operatorEl.appendChild(mo);
|
|
279268
|
-
const supRow = doc$12.createElementNS(MATHML_NS$
|
|
279346
|
+
const supRow = doc$12.createElementNS(MATHML_NS$5, "mrow");
|
|
279269
279347
|
supRow.appendChild(convertChildren(renderSupChildren));
|
|
279270
279348
|
operatorEl.appendChild(supRow);
|
|
279271
279349
|
} else
|
|
279272
279350
|
operatorEl = mo;
|
|
279273
|
-
const wrapper = doc$12.createElementNS(MATHML_NS$
|
|
279351
|
+
const wrapper = doc$12.createElementNS(MATHML_NS$5, "mrow");
|
|
279274
279352
|
wrapper.appendChild(operatorEl);
|
|
279275
|
-
const bodyRow = doc$12.createElementNS(MATHML_NS$
|
|
279353
|
+
const bodyRow = doc$12.createElementNS(MATHML_NS$5, "mrow");
|
|
279276
279354
|
bodyRow.appendChild(convertChildren(body?.elements ?? []));
|
|
279277
279355
|
if (bodyRow.childNodes.length > 0)
|
|
279278
279356
|
wrapper.appendChild(bodyRow);
|
|
279279
279357
|
return wrapper;
|
|
279280
|
-
}, MATHML_NS$
|
|
279358
|
+
}, MATHML_NS$4 = "http://www.w3.org/1998/Math/MathML", convertPhantom = (node3, doc$12, convertChildren) => {
|
|
279281
279359
|
const elements = node3.elements ?? [];
|
|
279282
279360
|
const phantPr = elements.find((e) => e.name === "m:phantPr");
|
|
279283
279361
|
const base5 = elements.find((e) => e.name === "m:e");
|
|
@@ -279290,11 +279368,11 @@ var Node$13 = class Node$14 {
|
|
|
279290
279368
|
const hasZeroDimension = zeroWid || zeroAsc || zeroDesc;
|
|
279291
279369
|
const content3 = convertChildren(base5?.elements ?? []);
|
|
279292
279370
|
if (!isVisible$1 && !hasZeroDimension) {
|
|
279293
|
-
const mphantom = doc$12.createElementNS(MATHML_NS$
|
|
279371
|
+
const mphantom = doc$12.createElementNS(MATHML_NS$4, "mphantom");
|
|
279294
279372
|
mphantom.appendChild(content3);
|
|
279295
279373
|
return mphantom;
|
|
279296
279374
|
}
|
|
279297
|
-
const mpadded = doc$12.createElementNS(MATHML_NS$
|
|
279375
|
+
const mpadded = doc$12.createElementNS(MATHML_NS$4, "mpadded");
|
|
279298
279376
|
const isZeroVal = (el) => el && (isOnOffTrue(el.attributes?.["m:val"]) || !el.attributes);
|
|
279299
279377
|
if (isZeroVal(zeroWid))
|
|
279300
279378
|
mpadded.setAttribute("width", "0");
|
|
@@ -279303,13 +279381,13 @@ var Node$13 = class Node$14 {
|
|
|
279303
279381
|
if (isZeroVal(zeroDesc))
|
|
279304
279382
|
mpadded.setAttribute("depth", "0");
|
|
279305
279383
|
if (!isVisible$1) {
|
|
279306
|
-
const mphantom = doc$12.createElementNS(MATHML_NS$
|
|
279384
|
+
const mphantom = doc$12.createElementNS(MATHML_NS$4, "mphantom");
|
|
279307
279385
|
mphantom.appendChild(content3);
|
|
279308
279386
|
mpadded.appendChild(mphantom);
|
|
279309
279387
|
} else
|
|
279310
279388
|
mpadded.appendChild(content3);
|
|
279311
279389
|
return mpadded;
|
|
279312
|
-
}, MATHML_NS$
|
|
279390
|
+
}, MATHML_NS$3 = "http://www.w3.org/1998/Math/MathML", DEFAULT_GROUP_CHAR = "⏟", VERT_JC_SHIFT_EM = 1, convertGroupCharacter = (node3, doc$12, convertChildren) => {
|
|
279313
279391
|
const elements = node3.elements ?? [];
|
|
279314
279392
|
const groupChrPr = elements.find((e) => e.name === "m:groupChrPr");
|
|
279315
279393
|
const base5 = elements.find((e) => e.name === "m:e");
|
|
@@ -279319,11 +279397,11 @@ var Node$13 = class Node$14 {
|
|
|
279319
279397
|
const groupChar = chr ? chr.attributes?.["m:val"] ?? "" : DEFAULT_GROUP_CHAR;
|
|
279320
279398
|
const position4 = pos?.attributes?.["m:val"] ?? "bot";
|
|
279321
279399
|
const vertJustify = vertJc ? vertJc.attributes?.["m:val"] ?? "bot" : null;
|
|
279322
|
-
const wrapper = doc$12.createElementNS(MATHML_NS$
|
|
279323
|
-
const baseRow = doc$12.createElementNS(MATHML_NS$
|
|
279400
|
+
const wrapper = doc$12.createElementNS(MATHML_NS$3, position4 === "top" ? "mover" : "munder");
|
|
279401
|
+
const baseRow = doc$12.createElementNS(MATHML_NS$3, "mrow");
|
|
279324
279402
|
baseRow.appendChild(convertChildren(base5?.elements ?? []));
|
|
279325
279403
|
wrapper.appendChild(baseRow);
|
|
279326
|
-
const mo = doc$12.createElementNS(MATHML_NS$
|
|
279404
|
+
const mo = doc$12.createElementNS(MATHML_NS$3, "mo");
|
|
279327
279405
|
mo.setAttribute("stretchy", "true");
|
|
279328
279406
|
mo.textContent = groupChar;
|
|
279329
279407
|
wrapper.appendChild(mo);
|
|
@@ -279335,21 +279413,21 @@ var Node$13 = class Node$14 {
|
|
|
279335
279413
|
}
|
|
279336
279414
|
}
|
|
279337
279415
|
return wrapper;
|
|
279338
|
-
}, MATHML_NS$
|
|
279416
|
+
}, MATHML_NS$2 = "http://www.w3.org/1998/Math/MathML", EMPTY_CELL_PLACEHOLDER = "□", convertMatrix = (node3, doc$12, convertChildren) => {
|
|
279339
279417
|
const elements = node3.elements ?? [];
|
|
279340
279418
|
const rows = elements.filter((e) => e.name === "m:mr");
|
|
279341
279419
|
const plcHide = elements.find((e) => e.name === "m:mPr")?.elements?.find((e) => e.name === "m:plcHide");
|
|
279342
279420
|
const hidePlaceholders = isPlaceholderHidden(plcHide);
|
|
279343
|
-
const mtable = doc$12.createElementNS(MATHML_NS$
|
|
279421
|
+
const mtable = doc$12.createElementNS(MATHML_NS$2, "mtable");
|
|
279344
279422
|
for (const row2 of rows) {
|
|
279345
|
-
const mtr = doc$12.createElementNS(MATHML_NS$
|
|
279423
|
+
const mtr = doc$12.createElementNS(MATHML_NS$2, "mtr");
|
|
279346
279424
|
const cells = row2.elements?.filter((e) => e.name === "m:e") ?? [];
|
|
279347
279425
|
for (const cell2 of cells) {
|
|
279348
|
-
const mtd = doc$12.createElementNS(MATHML_NS$
|
|
279349
|
-
const mrow = doc$12.createElementNS(MATHML_NS$
|
|
279426
|
+
const mtd = doc$12.createElementNS(MATHML_NS$2, "mtd");
|
|
279427
|
+
const mrow = doc$12.createElementNS(MATHML_NS$2, "mrow");
|
|
279350
279428
|
const fragment2 = convertChildren(cell2.elements ?? []);
|
|
279351
279429
|
if (fragment2.childNodes.length === 0 && !hidePlaceholders) {
|
|
279352
|
-
const placeholder = doc$12.createElementNS(MATHML_NS$
|
|
279430
|
+
const placeholder = doc$12.createElementNS(MATHML_NS$2, "mi");
|
|
279353
279431
|
placeholder.textContent = EMPTY_CELL_PLACEHOLDER;
|
|
279354
279432
|
mrow.appendChild(placeholder);
|
|
279355
279433
|
} else
|
|
@@ -279360,6 +279438,67 @@ var Node$13 = class Node$14 {
|
|
|
279360
279438
|
mtable.appendChild(mtr);
|
|
279361
279439
|
}
|
|
279362
279440
|
return mtable.childNodes.length > 0 ? mtable : null;
|
|
279441
|
+
}, MATHML_NS$1 = "http://www.w3.org/1998/Math/MathML", convertBox = (node3, doc$12, convertChildren) => {
|
|
279442
|
+
const base5 = (node3.elements ?? []).find((e) => e.name === "m:e");
|
|
279443
|
+
const mrow = doc$12.createElementNS(MATHML_NS$1, "mrow");
|
|
279444
|
+
mrow.appendChild(convertChildren(base5?.elements ?? []));
|
|
279445
|
+
return mrow.childNodes.length > 0 ? mrow : null;
|
|
279446
|
+
}, convertBorderBox = (node3, doc$12, convertChildren) => {
|
|
279447
|
+
const elements = node3.elements ?? [];
|
|
279448
|
+
const props = elements.find((e) => e.name === "m:borderBoxPr");
|
|
279449
|
+
const base5 = elements.find((e) => e.name === "m:e");
|
|
279450
|
+
const isOn = (el) => {
|
|
279451
|
+
if (!el)
|
|
279452
|
+
return false;
|
|
279453
|
+
const val = el.attributes?.["m:val"];
|
|
279454
|
+
if (val === undefined)
|
|
279455
|
+
return true;
|
|
279456
|
+
return val === "1" || val === "true" || val === "on";
|
|
279457
|
+
};
|
|
279458
|
+
const hideTop = props?.elements?.find((e) => e.name === "m:hideTop");
|
|
279459
|
+
const hideBot = props?.elements?.find((e) => e.name === "m:hideBot");
|
|
279460
|
+
const hideLeft = props?.elements?.find((e) => e.name === "m:hideLeft");
|
|
279461
|
+
const hideRight = props?.elements?.find((e) => e.name === "m:hideRight");
|
|
279462
|
+
const strikeBLTR = props?.elements?.find((e) => e.name === "m:strikeBLTR");
|
|
279463
|
+
const strikeH = props?.elements?.find((e) => e.name === "m:strikeH");
|
|
279464
|
+
const strikeTLBR = props?.elements?.find((e) => e.name === "m:strikeTLBR");
|
|
279465
|
+
const strikeV = props?.elements?.find((e) => e.name === "m:strikeV");
|
|
279466
|
+
const notations = [];
|
|
279467
|
+
if (!(isOn(hideTop) && isOn(hideBot) && isOn(hideLeft) && isOn(hideRight)))
|
|
279468
|
+
if (!isOn(hideTop) && !isOn(hideBot) && !isOn(hideLeft) && !isOn(hideRight))
|
|
279469
|
+
notations.push("box");
|
|
279470
|
+
else {
|
|
279471
|
+
if (!isOn(hideTop))
|
|
279472
|
+
notations.push("top");
|
|
279473
|
+
if (!isOn(hideBot))
|
|
279474
|
+
notations.push("bottom");
|
|
279475
|
+
if (!isOn(hideLeft))
|
|
279476
|
+
notations.push("left");
|
|
279477
|
+
if (!isOn(hideRight))
|
|
279478
|
+
notations.push("right");
|
|
279479
|
+
}
|
|
279480
|
+
if (isOn(strikeBLTR))
|
|
279481
|
+
notations.push("updiagonalstrike");
|
|
279482
|
+
if (isOn(strikeH))
|
|
279483
|
+
notations.push("horizontalstrike");
|
|
279484
|
+
if (isOn(strikeTLBR))
|
|
279485
|
+
notations.push("downdiagonalstrike");
|
|
279486
|
+
if (isOn(strikeV))
|
|
279487
|
+
notations.push("verticalstrike");
|
|
279488
|
+
const content3 = convertChildren(base5?.elements ?? []);
|
|
279489
|
+
if (content3.childNodes.length === 0)
|
|
279490
|
+
return null;
|
|
279491
|
+
if (notations.length === 0) {
|
|
279492
|
+
const mrow = doc$12.createElementNS(MATHML_NS$1, "mrow");
|
|
279493
|
+
mrow.appendChild(content3);
|
|
279494
|
+
return mrow;
|
|
279495
|
+
}
|
|
279496
|
+
const innerMrow = doc$12.createElementNS(MATHML_NS$1, "mrow");
|
|
279497
|
+
innerMrow.appendChild(content3);
|
|
279498
|
+
const menclose = doc$12.createElementNS(MATHML_NS$1, "menclose");
|
|
279499
|
+
menclose.setAttribute("notation", notations.join(" "));
|
|
279500
|
+
menclose.appendChild(innerMrow);
|
|
279501
|
+
return menclose;
|
|
279363
279502
|
}, MATHML_NS = "http://www.w3.org/1998/Math/MathML", MATH_OBJECT_REGISTRY, ARGUMENT_ELEMENTS, LIST_MARKER_GAP$1 = 8, DEFAULT_PAGE_HEIGHT_PX = 1056, DEFAULT_VIRTUALIZED_PAGE_GAP = 72, LINK_DATASET_KEYS, MAX_HREF_LENGTH = 2048, SAFE_ANCHOR_PATTERN, MAX_DATA_URL_LENGTH, VALID_IMAGE_DATA_URL, SVG_NS = "http://www.w3.org/2000/svg", WORDART_LINE_FILL_RATIO = 0.9, MAX_RESIZE_MULTIPLIER = 3, FALLBACK_MAX_DIMENSION = 1000, MIN_IMAGE_DIMENSION = 20, AMBIGUOUS_LINK_PATTERNS, linkMetrics, TRACK_CHANGE_BASE_CLASS, TRACK_CHANGE_MODIFIER_CLASS, LINK_TARGET_SET, normalizeAnchor$1 = (value) => {
|
|
279364
279503
|
if (typeof value !== "string")
|
|
279365
279504
|
return null;
|
|
@@ -289595,7 +289734,7 @@ var Node$13 = class Node$14 {
|
|
|
289595
289734
|
return;
|
|
289596
289735
|
console.log(...args$1);
|
|
289597
289736
|
}, HEADER_FOOTER_INIT_BUDGET_MS = 200, MAX_ZOOM_WARNING_THRESHOLD = 10, MAX_SELECTION_RECTS_PER_USER = 100, SEMANTIC_RESIZE_DEBOUNCE_MS = 120, MIN_SEMANTIC_CONTENT_WIDTH_PX = 1, GLOBAL_PERFORMANCE, PresentationEditor, ICONS, TEXTS, tableActionsOptions;
|
|
289598
|
-
var
|
|
289737
|
+
var init_src_BSdWFICK_es = __esm(() => {
|
|
289599
289738
|
init_rolldown_runtime_Bg48TavK_es();
|
|
289600
289739
|
init_SuperConverter_CpoUNyba_es();
|
|
289601
289740
|
init_jszip_C49i9kUs_es();
|
|
@@ -315266,8 +315405,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
315266
315405
|
"m:sSup": convertSuperscript,
|
|
315267
315406
|
"m:sSubSup": convertSubSuperscript,
|
|
315268
315407
|
"m:sPre": convertPreSubSuperscript,
|
|
315269
|
-
"m:borderBox":
|
|
315270
|
-
"m:box":
|
|
315408
|
+
"m:borderBox": convertBorderBox,
|
|
315409
|
+
"m:box": convertBox,
|
|
315271
315410
|
"m:groupChr": convertGroupCharacter
|
|
315272
315411
|
};
|
|
315273
315412
|
ARGUMENT_ELEMENTS = new Set([
|
|
@@ -315634,6 +315773,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
315634
315773
|
ensureFieldAnnotationStyles(doc$12);
|
|
315635
315774
|
ensureSdtContainerStyles(doc$12);
|
|
315636
315775
|
ensureImageSelectionStyles(doc$12);
|
|
315776
|
+
ensureMathMencloseStyles(doc$12);
|
|
315637
315777
|
if (!this.isSemanticFlow && this.options.ruler?.enabled)
|
|
315638
315778
|
ensureRulerStyles(doc$12);
|
|
315639
315779
|
mount.classList.add(CLASS_NAMES$1.container);
|
|
@@ -324417,7 +324557,7 @@ var init_zipper_DbkgrypV_es = __esm(() => {
|
|
|
324417
324557
|
|
|
324418
324558
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
324419
324559
|
var init_super_editor_es = __esm(() => {
|
|
324420
|
-
|
|
324560
|
+
init_src_BSdWFICK_es();
|
|
324421
324561
|
init_SuperConverter_CpoUNyba_es();
|
|
324422
324562
|
init_jszip_C49i9kUs_es();
|
|
324423
324563
|
init_xml_js_CqGKpaft_es();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc-dev/cli",
|
|
3
|
-
"version": "0.7.0-next.
|
|
3
|
+
"version": "0.7.0-next.28",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"superdoc": "./dist/index.js"
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
"access": "public"
|
|
35
35
|
},
|
|
36
36
|
"optionalDependencies": {
|
|
37
|
-
"@superdoc-dev/cli-darwin-arm64": "0.7.0-next.
|
|
38
|
-
"@superdoc-dev/cli-darwin-x64": "0.7.0-next.
|
|
39
|
-
"@superdoc-dev/cli-linux-x64": "0.7.0-next.
|
|
40
|
-
"@superdoc-dev/cli-windows-x64": "0.7.0-next.
|
|
41
|
-
"@superdoc-dev/cli-linux-arm64": "0.7.0-next.
|
|
37
|
+
"@superdoc-dev/cli-darwin-arm64": "0.7.0-next.28",
|
|
38
|
+
"@superdoc-dev/cli-darwin-x64": "0.7.0-next.28",
|
|
39
|
+
"@superdoc-dev/cli-linux-x64": "0.7.0-next.28",
|
|
40
|
+
"@superdoc-dev/cli-windows-x64": "0.7.0-next.28",
|
|
41
|
+
"@superdoc-dev/cli-linux-arm64": "0.7.0-next.28"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"predev": "node scripts/ensure-superdoc-build.js",
|