@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.
@@ -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" ? "\\arabsqrt" : this.name;
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 = `\\arabsqrt${optionalRootIndexArabic(node, options)}{${renderChainArabic(node.radicand, options)}}`;
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) {