math-exercises 1.3.67 → 1.3.68
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.
|
@@ -41,7 +41,7 @@ class MultiplyNode extends operatorNode_1.OperatorNode {
|
|
|
41
41
|
let showTimesSign = !isNaN(+rightTex[0]) || this.rightChild.type === node_1.NodeType.number;
|
|
42
42
|
if (this.rightChild.type === node_1.NodeType.operator) {
|
|
43
43
|
const operatorRightChild = this.rightChild;
|
|
44
|
-
showTimesSign ||= [operatorNode_1.OperatorIds.fraction
|
|
44
|
+
showTimesSign ||= [operatorNode_1.OperatorIds.fraction].includes(operatorRightChild.id);
|
|
45
45
|
}
|
|
46
46
|
const nextIsLetter = rightTex[0].toLowerCase() !== rightTex[0].toUpperCase();
|
|
47
47
|
return `${leftTex}${showTimesSign ? `\\times${nextIsLetter ? ' ' : ''}` : ''}${rightTex}`;
|