@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.
@@ -3137,8 +3137,9 @@ function characterFontSpec(fontId) {
3137
3137
  // src/editor/divideOperator.ts
3138
3138
  var DIVIDE_OPERATOR_EN = "/";
3139
3139
  var DIVIDE_OPERATOR_AR = "\\";
3140
+ var DIVIDE_OPERATOR_AR_LATEX = "\\backslash";
3140
3141
  function isDivideOperatorExpr(expr) {
3141
- return expr === DIVIDE_OPERATOR_EN || expr === DIVIDE_OPERATOR_AR;
3142
+ return expr === DIVIDE_OPERATOR_EN || expr === DIVIDE_OPERATOR_AR || expr === DIVIDE_OPERATOR_AR_LATEX;
3142
3143
  }
3143
3144
  function divideOperatorSurfaceExpr(expr, side) {
3144
3145
  if (!isDivideOperatorExpr(expr)) {
@@ -6052,6 +6053,10 @@ function buildBaseNodeBody(node, digitForm = "western", side = "english") {
6052
6053
  if (node.wrapperCommand === "\\boldarabic" || node.wrapperCommand === "\\mathbf") {
6053
6054
  value.classList.add("node-value--bold");
6054
6055
  }
6056
+ if (node.wrapperCommand === "\\unit") {
6057
+ value.classList.add("node-value--unit");
6058
+ value.title = "\u0648\u062D\u062F\u0629 (unit)";
6059
+ }
6055
6060
  }
6056
6061
  const surfaceExpr = node.kind === "operator" ? divideOperatorSurfaceExpr(node.expr, side) : node.expr;
6057
6062
  value.textContent = surfaceExpr === "" ? "\u25A1" : formatDigits(surfaceExpr, digitForm);
@@ -6977,6 +6982,13 @@ ${CHARACTER_FONT_CSS}
6977
6982
  font-weight: 700;
6978
6983
  }
6979
6984
 
6985
+ .node-value--unit {
6986
+ font-style: normal;
6987
+ text-decoration-line: underline;
6988
+ text-decoration-style: dotted;
6989
+ text-underline-offset: 0.2em;
6990
+ }
6991
+
6980
6992
  .chain {
6981
6993
  display: inline-flex;
6982
6994
  align-items: center;