@drghaliasri/butex 7.3.0 → 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.mjs CHANGED
@@ -1467,8 +1467,9 @@ function characterFontSpec(fontId) {
1467
1467
  // src/editor/divideOperator.ts
1468
1468
  var DIVIDE_OPERATOR_EN = "/";
1469
1469
  var DIVIDE_OPERATOR_AR = "\\";
1470
+ var DIVIDE_OPERATOR_AR_LATEX = "\\backslash";
1470
1471
  function isDivideOperatorExpr(expr) {
1471
- return expr === DIVIDE_OPERATOR_EN || expr === DIVIDE_OPERATOR_AR;
1472
+ return expr === DIVIDE_OPERATOR_EN || expr === DIVIDE_OPERATOR_AR || expr === DIVIDE_OPERATOR_AR_LATEX;
1472
1473
  }
1473
1474
  function divideOperatorSurfaceExpr(expr, side) {
1474
1475
  if (!isDivideOperatorExpr(expr)) {
@@ -4410,6 +4411,10 @@ function buildBaseNodeBody(node, digitForm = "western", side = "english") {
4410
4411
  if (node.wrapperCommand === "\\boldarabic" || node.wrapperCommand === "\\mathbf") {
4411
4412
  value.classList.add("node-value--bold");
4412
4413
  }
4414
+ if (node.wrapperCommand === "\\unit") {
4415
+ value.classList.add("node-value--unit");
4416
+ value.title = "\u0648\u062D\u062F\u0629 (unit)";
4417
+ }
4413
4418
  }
4414
4419
  const surfaceExpr = node.kind === "operator" ? divideOperatorSurfaceExpr(node.expr, side) : node.expr;
4415
4420
  value.textContent = surfaceExpr === "" ? "\u25A1" : formatDigits(surfaceExpr, digitForm);
@@ -5335,6 +5340,13 @@ ${CHARACTER_FONT_CSS}
5335
5340
  font-weight: 700;
5336
5341
  }
5337
5342
 
5343
+ .node-value--unit {
5344
+ font-style: normal;
5345
+ text-decoration-line: underline;
5346
+ text-decoration-style: dotted;
5347
+ text-underline-offset: 0.2em;
5348
+ }
5349
+
5338
5350
  .chain {
5339
5351
  display: inline-flex;
5340
5352
  align-items: center;