katex 0.16.11 → 0.16.12

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
@@ -18361,7 +18361,7 @@ var katex = {
18361
18361
  /**
18362
18362
  * Current KaTeX version
18363
18363
  */
18364
- version: "0.16.11",
18364
+ version: "0.16.12",
18365
18365
 
18366
18366
  /**
18367
18367
  * Renders the given LaTeX into an HTML+MathML combination, and adds
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "katex",
3
- "version": "0.16.11",
3
+ "version": "0.16.12",
4
4
  "description": "Fast math typesetting for the web.",
5
5
  "main": "dist/katex.js",
6
6
  "exports": {
@@ -108,7 +108,7 @@
108
108
  "prettier": "^2.7.1",
109
109
  "query-string": "^7.1.1",
110
110
  "rimraf": "^3.0.2",
111
- "rollup": "^2.78.1",
111
+ "rollup": "^2.79.2",
112
112
  "sass": "^1.75.6",
113
113
  "sass-loader": "^14.2.1",
114
114
  "selenium-webdriver": "^4.4.0",
@@ -7,6 +7,9 @@ $mu: calc(1em / 18);
7
7
  // The version is dynamically set from package.json via webpack.common.js
8
8
  $version: "" !default;
9
9
 
10
+ // CSS margin property for math in display mode
11
+ $display-margin: 1em 0 !default;
12
+
10
13
  .katex {
11
14
  font: normal 1.21em KaTeX_Main, Times New Roman, serif;
12
15
  line-height: 1.2;
@@ -621,7 +624,7 @@ $version: "" !default;
621
624
 
622
625
  .katex-display {
623
626
  display: block;
624
- margin: 1em 0;
627
+ margin: $display-margin;
625
628
  text-align: center;
626
629
 
627
630
  > .katex {