js.documents 14.4.6 → 14.4.7
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/latex/lower.cjs +5 -5
- package/dist/latex/lower.js +5 -5
- package/package.json +1 -1
package/dist/latex/lower.cjs
CHANGED
|
@@ -458,8 +458,8 @@ function lowerSupsub(node, context) {
|
|
|
458
458
|
if (binder.status === "degraded") return unparsed(binder.detail);
|
|
459
459
|
const detail = spanOfNodes(context, [node]);
|
|
460
460
|
const base = require_latex_temml.isTemmlNode(node.base) ? node.base : void 0;
|
|
461
|
-
const sub =
|
|
462
|
-
const sup =
|
|
461
|
+
const sub = nodesOfScript(node.sub);
|
|
462
|
+
const sup = nodesOfScript(node.sup);
|
|
463
463
|
if (sub !== void 0) {
|
|
464
464
|
const subWritten = simpleScriptGlyph(sub);
|
|
465
465
|
const baseGlyph = base !== void 0 && (base.type === "mathord" || base.type === "textord") ? glyphOfNode(base) : void 0;
|
|
@@ -520,8 +520,8 @@ function readBinder(node, context) {
|
|
|
520
520
|
if (base.name !== "\\sum" && base.name !== "\\prod") return { status: "not-a-binder" };
|
|
521
521
|
const kind = base.name === "\\sum" ? "sum" : "prod";
|
|
522
522
|
const detail = spanOfNodes(context, [node]);
|
|
523
|
-
const sub =
|
|
524
|
-
const sup =
|
|
523
|
+
const sub = nodesOfScript(node.sub);
|
|
524
|
+
const sup = nodesOfScript(node.sup);
|
|
525
525
|
const upper = sup === void 0 ? implicitBound(context) : lowerNodeList(sup, context);
|
|
526
526
|
if ((sub?.length ?? 0) >= 3) {
|
|
527
527
|
const first = sub?.[0];
|
|
@@ -536,7 +536,7 @@ function readBinder(node, context) {
|
|
|
536
536
|
upper
|
|
537
537
|
};
|
|
538
538
|
}
|
|
539
|
-
if (
|
|
539
|
+
if (sub?.length === 1) {
|
|
540
540
|
const singleGlyph = simpleScriptGlyph(sub);
|
|
541
541
|
if (singleGlyph !== void 0) {
|
|
542
542
|
diagnose(context, "latex/binder-bound-implicit", detail);
|
package/dist/latex/lower.js
CHANGED
|
@@ -457,8 +457,8 @@ function lowerSupsub(node, context) {
|
|
|
457
457
|
if (binder.status === "degraded") return unparsed(binder.detail);
|
|
458
458
|
const detail = spanOfNodes(context, [node]);
|
|
459
459
|
const base = isTemmlNode(node.base) ? node.base : void 0;
|
|
460
|
-
const sub =
|
|
461
|
-
const sup =
|
|
460
|
+
const sub = nodesOfScript(node.sub);
|
|
461
|
+
const sup = nodesOfScript(node.sup);
|
|
462
462
|
if (sub !== void 0) {
|
|
463
463
|
const subWritten = simpleScriptGlyph(sub);
|
|
464
464
|
const baseGlyph = base !== void 0 && (base.type === "mathord" || base.type === "textord") ? glyphOfNode(base) : void 0;
|
|
@@ -519,8 +519,8 @@ function readBinder(node, context) {
|
|
|
519
519
|
if (base.name !== "\\sum" && base.name !== "\\prod") return { status: "not-a-binder" };
|
|
520
520
|
const kind = base.name === "\\sum" ? "sum" : "prod";
|
|
521
521
|
const detail = spanOfNodes(context, [node]);
|
|
522
|
-
const sub =
|
|
523
|
-
const sup =
|
|
522
|
+
const sub = nodesOfScript(node.sub);
|
|
523
|
+
const sup = nodesOfScript(node.sup);
|
|
524
524
|
const upper = sup === void 0 ? implicitBound(context) : lowerNodeList(sup, context);
|
|
525
525
|
if ((sub?.length ?? 0) >= 3) {
|
|
526
526
|
const first = sub?.[0];
|
|
@@ -535,7 +535,7 @@ function readBinder(node, context) {
|
|
|
535
535
|
upper
|
|
536
536
|
};
|
|
537
537
|
}
|
|
538
|
-
if (
|
|
538
|
+
if (sub?.length === 1) {
|
|
539
539
|
const singleGlyph = simpleScriptGlyph(sub);
|
|
540
540
|
if (singleGlyph !== void 0) {
|
|
541
541
|
diagnose(context, "latex/binder-bound-implicit", detail);
|
package/package.json
CHANGED