@drghaliasri/butex 7.3.3 → 7.3.4

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/dist/document2.js CHANGED
@@ -670,7 +670,7 @@ var DelimiterNode = class extends BaseAstNode {
670
670
  this.rightDelimExpr = rightDelimExpr2;
671
671
  }
672
672
  latex() {
673
- return this.leftDelimExpr + this.innerExpr.latex() + this.rightDelimExpr + this.latexScripts();
673
+ return this.leftDelimExpr + " " + this.innerExpr.latex() + this.rightDelimExpr + this.latexScripts();
674
674
  }
675
675
  arabicLatex() {
676
676
  const sup = this.superscript !== null ? this.superscript.arabicLatex() : "";
@@ -3398,7 +3398,7 @@ function renderCharContent(node, options) {
3398
3398
  }
3399
3399
  function renderNodeEnglish(node, options) {
3400
3400
  if (node.kind === "delimiter" && node.innerExpr) {
3401
- return `${node.leftDelimExpr}${renderChainEnglish(node.innerExpr, options)}${node.rightDelimExpr}${latinScripts(node, options)}`;
3401
+ return `${node.leftDelimExpr} ${renderChainEnglish(node.innerExpr, options)}${node.rightDelimExpr}${latinScripts(node, options)}`;
3402
3402
  }
3403
3403
  if (node.kind === "boxed" && node.innerExpr) {
3404
3404
  const body = `\\boxed{${renderChainEnglish(node.innerExpr, options)}}`;