@drghaliasri/butex 7.2.2 → 7.3.1

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/react.js CHANGED
@@ -1485,8 +1485,9 @@ function characterFontSpec(fontId) {
1485
1485
  // src/editor/divideOperator.ts
1486
1486
  var DIVIDE_OPERATOR_EN = "/";
1487
1487
  var DIVIDE_OPERATOR_AR = "\\";
1488
+ var DIVIDE_OPERATOR_AR_LATEX = "\\backslash";
1488
1489
  function isDivideOperatorExpr(expr) {
1489
- return expr === DIVIDE_OPERATOR_EN || expr === DIVIDE_OPERATOR_AR;
1490
+ return expr === DIVIDE_OPERATOR_EN || expr === DIVIDE_OPERATOR_AR || expr === DIVIDE_OPERATOR_AR_LATEX;
1490
1491
  }
1491
1492
  function divideOperatorSurfaceExpr(expr, side) {
1492
1493
  if (!isDivideOperatorExpr(expr)) {
@@ -4428,6 +4429,10 @@ function buildBaseNodeBody(node, digitForm = "western", side = "english") {
4428
4429
  if (node.wrapperCommand === "\\boldarabic" || node.wrapperCommand === "\\mathbf") {
4429
4430
  value.classList.add("node-value--bold");
4430
4431
  }
4432
+ if (node.wrapperCommand === "\\unit") {
4433
+ value.classList.add("node-value--unit");
4434
+ value.title = "\u0648\u062D\u062F\u0629 (unit)";
4435
+ }
4431
4436
  }
4432
4437
  const surfaceExpr = node.kind === "operator" ? divideOperatorSurfaceExpr(node.expr, side) : node.expr;
4433
4438
  value.textContent = surfaceExpr === "" ? "\u25A1" : formatDigits(surfaceExpr, digitForm);
@@ -5353,6 +5358,13 @@ ${CHARACTER_FONT_CSS}
5353
5358
  font-weight: 700;
5354
5359
  }
5355
5360
 
5361
+ .node-value--unit {
5362
+ font-style: normal;
5363
+ text-decoration-line: underline;
5364
+ text-decoration-style: dotted;
5365
+ text-underline-offset: 0.2em;
5366
+ }
5367
+
5356
5368
  .chain {
5357
5369
  display: inline-flex;
5358
5370
  align-items: center;