@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.mjs
CHANGED
|
@@ -167,7 +167,7 @@ var CommandNode = class extends BaseAstNode {
|
|
|
167
167
|
arabicLatex() {
|
|
168
168
|
const sup = this.superscript !== null ? this.superscript.arabicLatex() : "";
|
|
169
169
|
const sub = this.subscript !== null ? this.subscript.arabicLatex() : "";
|
|
170
|
-
const arabicName = this.name === "\\sqrt"
|
|
170
|
+
const arabicName = this.name === "\\sqrt" || this.name === "\\arabsqrt" ? "\\arsqrt" : this.name;
|
|
171
171
|
const content = renderCommandCore({
|
|
172
172
|
name: arabicName,
|
|
173
173
|
optionalArgs: this.optionalArgs,
|
|
@@ -2166,7 +2166,7 @@ function renderNodeArabic(node, options) {
|
|
|
2166
2166
|
return arabicScripts(node, content, options);
|
|
2167
2167
|
}
|
|
2168
2168
|
if (node.kind === "sqrt" && node.radicand) {
|
|
2169
|
-
const content = `\\
|
|
2169
|
+
const content = `\\arsqrt${optionalRootIndexArabic(node, options)}{${renderChainArabic(node.radicand, options)}}`;
|
|
2170
2170
|
return arabicScripts(node, content, options);
|
|
2171
2171
|
}
|
|
2172
2172
|
if (node.kind === "overset" && node.baseExpr) {
|
|
@@ -6989,7 +6989,7 @@ function commandToEditorNode(node) {
|
|
|
6989
6989
|
}
|
|
6990
6990
|
return { editable: true, node: frac };
|
|
6991
6991
|
}
|
|
6992
|
-
if ((node.name === "\\sqrt" || node.name === "\\arabsqrt") && node.mandatoryArgs.length >= 1) {
|
|
6992
|
+
if ((node.name === "\\sqrt" || node.name === "\\arabsqrt" || node.name === "\\arsqrt") && node.mandatoryArgs.length >= 1) {
|
|
6993
6993
|
const sqrt = createSqrtNode();
|
|
6994
6994
|
const radicand = chainToEditorChain(node.mandatoryArgs[0]);
|
|
6995
6995
|
if (!radicand.editable) {
|