@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/README.md CHANGED
@@ -144,6 +144,8 @@ floating major tag, so CDN updates cannot change rendering behavior silently.
144
144
 
145
145
  ### 2) GUI editor contract (shippable editor UX)
146
146
 
147
+ When exporting a structured delimiter to English LaTeX, BuTeX places an ordinary space after its opening delimiter. In math mode this is a harmless token separator that keeps command-style delimiters such as `\left\lVert x\right\rVert` valid.
148
+
147
149
  Use this when you want the same editor UX as the demo:
148
150
 
149
151
  - Inject editor styles once via `injectBuTeXEditorStyles(document)` (or embed `BUTEX_EDITOR_CSS`).
package/dist/document.js CHANGED
@@ -198,7 +198,7 @@ var DelimiterNode = class extends BaseAstNode {
198
198
  this.rightDelimExpr = rightDelimExpr2;
199
199
  }
200
200
  latex() {
201
- return this.leftDelimExpr + this.innerExpr.latex() + this.rightDelimExpr + this.latexScripts();
201
+ return this.leftDelimExpr + " " + this.innerExpr.latex() + this.rightDelimExpr + this.latexScripts();
202
202
  }
203
203
  arabicLatex() {
204
204
  const sup = this.superscript !== null ? this.superscript.arabicLatex() : "";