@drghaliasri/butex 5.5.1 → 5.5.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 +3 -3
- package/dist/document.js +2 -2
- package/dist/document.js.map +1 -1
- package/dist/document.mjs +2 -2
- package/dist/document.mjs.map +1 -1
- package/dist/document2.js +5 -5
- package/dist/document2.js.map +1 -1
- package/dist/document2.mjs +5 -5
- package/dist/document2.mjs.map +1 -1
- package/dist/index.global.js +1 -1
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/react-document.js +3 -3
- package/dist/react-document.js.map +1 -1
- package/dist/react-document.mjs +3 -3
- package/dist/react-document.mjs.map +1 -1
- package/dist/react-document2.js +5 -5
- package/dist/react-document2.js.map +1 -1
- package/dist/react-document2.mjs +5 -5
- package/dist/react-document2.mjs.map +1 -1
- package/dist/react.js +1 -1
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +1 -1
- package/dist/react.mjs.map +1 -1
- package/package.json +1 -1
package/dist/react-document.js
CHANGED
|
@@ -196,7 +196,7 @@ var CommandNode = class extends BaseAstNode {
|
|
|
196
196
|
arabicLatex() {
|
|
197
197
|
const sup = this.superscript !== null ? this.superscript.arabicLatex() : "";
|
|
198
198
|
const sub = this.subscript !== null ? this.subscript.arabicLatex() : "";
|
|
199
|
-
const arabicName = this.name === "\\sqrt"
|
|
199
|
+
const arabicName = this.name === "\\sqrt" || this.name === "\\arabsqrt" ? "\\arsqrt" : this.name;
|
|
200
200
|
const content = renderCommandCore({
|
|
201
201
|
name: arabicName,
|
|
202
202
|
optionalArgs: this.optionalArgs,
|
|
@@ -2195,7 +2195,7 @@ function renderNodeArabic(node, options) {
|
|
|
2195
2195
|
return arabicScripts(node, content, options);
|
|
2196
2196
|
}
|
|
2197
2197
|
if (node.kind === "sqrt" && node.radicand) {
|
|
2198
|
-
const content = `\\
|
|
2198
|
+
const content = `\\arsqrt${optionalRootIndexArabic(node, options)}{${renderChainArabic(node.radicand, options)}}`;
|
|
2199
2199
|
return arabicScripts(node, content, options);
|
|
2200
2200
|
}
|
|
2201
2201
|
if (node.kind === "overset" && node.baseExpr) {
|
|
@@ -7018,7 +7018,7 @@ function commandToEditorNode(node) {
|
|
|
7018
7018
|
}
|
|
7019
7019
|
return { editable: true, node: frac };
|
|
7020
7020
|
}
|
|
7021
|
-
if ((node.name === "\\sqrt" || node.name === "\\arabsqrt") && node.mandatoryArgs.length >= 1) {
|
|
7021
|
+
if ((node.name === "\\sqrt" || node.name === "\\arabsqrt" || node.name === "\\arsqrt") && node.mandatoryArgs.length >= 1) {
|
|
7022
7022
|
const sqrt = createSqrtNode();
|
|
7023
7023
|
const radicand = chainToEditorChain(node.mandatoryArgs[0]);
|
|
7024
7024
|
if (!radicand.editable) {
|