@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.
@@ -2187,8 +2187,9 @@ function characterFontSpec(fontId) {
2187
2187
  // src/editor/divideOperator.ts
2188
2188
  var DIVIDE_OPERATOR_EN = "/";
2189
2189
  var DIVIDE_OPERATOR_AR = "\\";
2190
+ var DIVIDE_OPERATOR_AR_LATEX = "\\backslash";
2190
2191
  function isDivideOperatorExpr(expr) {
2191
- return expr === DIVIDE_OPERATOR_EN || expr === DIVIDE_OPERATOR_AR;
2192
+ return expr === DIVIDE_OPERATOR_EN || expr === DIVIDE_OPERATOR_AR || expr === DIVIDE_OPERATOR_AR_LATEX;
2192
2193
  }
2193
2194
  function divideOperatorSurfaceExpr(expr, side) {
2194
2195
  if (!isDivideOperatorExpr(expr)) {
@@ -5130,6 +5131,10 @@ function buildBaseNodeBody(node, digitForm = "western", side = "english") {
5130
5131
  if (node.wrapperCommand === "\\boldarabic" || node.wrapperCommand === "\\mathbf") {
5131
5132
  value.classList.add("node-value--bold");
5132
5133
  }
5134
+ if (node.wrapperCommand === "\\unit") {
5135
+ value.classList.add("node-value--unit");
5136
+ value.title = "\u0648\u062D\u062F\u0629 (unit)";
5137
+ }
5133
5138
  }
5134
5139
  const surfaceExpr = node.kind === "operator" ? divideOperatorSurfaceExpr(node.expr, side) : node.expr;
5135
5140
  value.textContent = surfaceExpr === "" ? "\u25A1" : formatDigits(surfaceExpr, digitForm);
@@ -6055,6 +6060,13 @@ ${CHARACTER_FONT_CSS}
6055
6060
  font-weight: 700;
6056
6061
  }
6057
6062
 
6063
+ .node-value--unit {
6064
+ font-style: normal;
6065
+ text-decoration-line: underline;
6066
+ text-decoration-style: dotted;
6067
+ text-underline-offset: 0.2em;
6068
+ }
6069
+
6058
6070
  .chain {
6059
6071
  display: inline-flex;
6060
6072
  align-items: center;