@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.
@@ -3174,8 +3174,9 @@ function characterFontSpec(fontId) {
3174
3174
  // src/editor/divideOperator.ts
3175
3175
  var DIVIDE_OPERATOR_EN = "/";
3176
3176
  var DIVIDE_OPERATOR_AR = "\\";
3177
+ var DIVIDE_OPERATOR_AR_LATEX = "\\backslash";
3177
3178
  function isDivideOperatorExpr(expr) {
3178
- return expr === DIVIDE_OPERATOR_EN || expr === DIVIDE_OPERATOR_AR;
3179
+ return expr === DIVIDE_OPERATOR_EN || expr === DIVIDE_OPERATOR_AR || expr === DIVIDE_OPERATOR_AR_LATEX;
3179
3180
  }
3180
3181
  function divideOperatorSurfaceExpr(expr, side) {
3181
3182
  if (!isDivideOperatorExpr(expr)) {
@@ -6089,6 +6090,10 @@ function buildBaseNodeBody(node, digitForm = "western", side = "english") {
6089
6090
  if (node.wrapperCommand === "\\boldarabic" || node.wrapperCommand === "\\mathbf") {
6090
6091
  value.classList.add("node-value--bold");
6091
6092
  }
6093
+ if (node.wrapperCommand === "\\unit") {
6094
+ value.classList.add("node-value--unit");
6095
+ value.title = "\u0648\u062D\u062F\u0629 (unit)";
6096
+ }
6092
6097
  }
6093
6098
  const surfaceExpr = node.kind === "operator" ? divideOperatorSurfaceExpr(node.expr, side) : node.expr;
6094
6099
  value.textContent = surfaceExpr === "" ? "\u25A1" : formatDigits(surfaceExpr, digitForm);
@@ -7014,6 +7019,13 @@ ${CHARACTER_FONT_CSS}
7014
7019
  font-weight: 700;
7015
7020
  }
7016
7021
 
7022
+ .node-value--unit {
7023
+ font-style: normal;
7024
+ text-decoration-line: underline;
7025
+ text-decoration-style: dotted;
7026
+ text-underline-offset: 0.2em;
7027
+ }
7028
+
7017
7029
  .chain {
7018
7030
  display: inline-flex;
7019
7031
  align-items: center;