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