katex 0.15.1 → 0.15.2

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
@@ -11191,7 +11191,7 @@ function mathmlBuilder$5(group, options) {
11191
11191
  var inner = buildExpression(group.body, options);
11192
11192
 
11193
11193
  if (group.mclass === "minner") {
11194
- return mathMLTree.newDocumentFragment(inner);
11194
+ node = new mathMLTree.MathNode("mpadded", inner);
11195
11195
  } else if (group.mclass === "mord") {
11196
11196
  if (group.isCharacterBox) {
11197
11197
  node = inner[0];
@@ -11219,6 +11219,10 @@ function mathmlBuilder$5(group, options) {
11219
11219
  } else if (group.mclass === "mopen" || group.mclass === "mclose") {
11220
11220
  node.attributes.lspace = "0em";
11221
11221
  node.attributes.rspace = "0em";
11222
+ } else if (group.mclass === "minner") {
11223
+ node.attributes.lspace = "0.0556em"; // 1 mu is the most likely option
11224
+
11225
+ node.attributes.width = "+0.1111em";
11222
11226
  } // MathML <mo> default space is 5/18 em, so <mrel> needs no action.
11223
11227
  // Ref: https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mo
11224
11228
 
@@ -17955,7 +17959,7 @@ var katex = {
17955
17959
  /**
17956
17960
  * Current KaTeX version
17957
17961
  */
17958
- version: "0.15.1",
17962
+ version: "0.15.2",
17959
17963
 
17960
17964
  /**
17961
17965
  * 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.15.1",
3
+ "version": "0.15.2",
4
4
  "description": "Fast math typesetting for the web.",
5
5
  "main": "dist/katex.js",
6
6
  "exports": {
@@ -47,7 +47,7 @@
47
47
  "dist/"
48
48
  ],
49
49
  "license": "MIT",
50
- "packageManager": "yarn@3.0.1",
50
+ "packageManager": "yarn@3.1.1",
51
51
  "devDependencies": {
52
52
  "@babel/core": "^7.10.4",
53
53
  "@babel/eslint-parser": "^7.15.0",
@@ -115,7 +115,7 @@
115
115
  "sri-toolbox": "^0.2.0",
116
116
  "style-loader": "^3.0.0",
117
117
  "stylelint": "^14.0.0",
118
- "stylelint-config-standard": "^23.0.0",
118
+ "stylelint-config-standard": "^24.0.0",
119
119
  "terser-webpack-plugin": "^5.0.3",
120
120
  "webpack": "^5.51.1",
121
121
  "webpack-bundle-analyzer": "^4.0.0",
@@ -22,7 +22,7 @@ function mathmlBuilder(group: ParseNode<"mclass">, options) {
22
22
  const inner = mml.buildExpression(group.body, options);
23
23
 
24
24
  if (group.mclass === "minner") {
25
- return mathMLTree.newDocumentFragment(inner);
25
+ node = new mathMLTree.MathNode("mpadded", inner);
26
26
  } else if (group.mclass === "mord") {
27
27
  if (group.isCharacterBox) {
28
28
  node = inner[0];
@@ -49,6 +49,9 @@ function mathmlBuilder(group: ParseNode<"mclass">, options) {
49
49
  } else if (group.mclass === "mopen" || group.mclass === "mclose") {
50
50
  node.attributes.lspace = "0em";
51
51
  node.attributes.rspace = "0em";
52
+ } else if (group.mclass === "minner") {
53
+ node.attributes.lspace = "0.0556em"; // 1 mu is the most likely option
54
+ node.attributes.width = "+0.1111em";
52
55
  }
53
56
  // MathML <mo> default space is 5/18 em, so <mrel> needs no action.
54
57
  // Ref: https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mo