katex 0.16.43 → 0.16.44

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/katex.mjs CHANGED
@@ -9631,9 +9631,10 @@ var htmlBuilder$6 = function htmlBuilder(group, options) {
9631
9631
  }
9632
9632
  }
9633
9633
  // In AMS multiline environments such as aligned and gathered, rows
9634
- // correspond to lines that have additional \jot added to the
9635
- // \baselineskip via \openup.
9636
- if (group.addJot) {
9634
+ // correspond to lines that have additional \jot added between lines
9635
+ // via \openup.
9636
+ // We simulate this by adding \jot depth to each row except the last.
9637
+ if (group.addJot && r < group.body.length - 1) {
9637
9638
  depth += jot;
9638
9639
  }
9639
9640
  outrow.height = height;
@@ -16403,7 +16404,7 @@ var renderToHTMLTree = function renderToHTMLTree(expression, options) {
16403
16404
  return renderError(error, expression, settings);
16404
16405
  }
16405
16406
  };
16406
- var version = "0.16.43";
16407
+ var version = "0.16.44";
16407
16408
  var __domTree = {
16408
16409
  Span,
16409
16410
  Anchor,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "katex",
3
- "version": "0.16.43",
3
+ "version": "0.16.44",
4
4
  "description": "Fast math typesetting for the web.",
5
5
  "main": "dist/katex.js",
6
6
  "types": "types/katex.d.ts",
@@ -366,9 +366,10 @@ const htmlBuilder: HtmlBuilder<"array"> = function(group, options) {
366
366
  }
367
367
  }
368
368
  // In AMS multiline environments such as aligned and gathered, rows
369
- // correspond to lines that have additional \jot added to the
370
- // \baselineskip via \openup.
371
- if (group.addJot) {
369
+ // correspond to lines that have additional \jot added between lines
370
+ // via \openup.
371
+ // We simulate this by adding \jot depth to each row except the last.
372
+ if (group.addJot && r < group.body.length - 1) {
372
373
  depth += jot;
373
374
  }
374
375