katex 0.16.38 → 0.16.39

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
@@ -3748,6 +3748,10 @@ defineSymbol(math, main, rel, "\u220b", "\\owns");
3748
3748
  // Punctuation
3749
3749
  defineSymbol(math, main, punct, "\u002e", "\\ldotp");
3750
3750
  defineSymbol(math, main, punct, "\u22c5", "\\cdotp");
3751
+ // The KaTeX fonts do not contain U+00B7. Use the centered dot glyph at U+22C5
3752
+ // in both modes, but keep math-mode punctuation spacing only in math mode.
3753
+ defineSymbol(math, main, punct, "\u22c5", "\u00b7");
3754
+ defineSymbol(text, main, textord, "\u22c5", "\u00b7");
3751
3755
  // Misc Symbols
3752
3756
  defineSymbol(math, main, textord, "\u0023", "\\#");
3753
3757
  defineSymbol(text, main, textord, "\u0023", "\\#");
@@ -13765,10 +13769,6 @@ defineMacro("\u210C", "\\mathfrak{H}");
13765
13769
  defineMacro("\u2128", "\\mathfrak{Z}");
13766
13770
  // Define \Bbbk with a macro that works in both HTML and MathML.
13767
13771
  defineMacro("\\Bbbk", "\\Bbb{k}");
13768
- // Unicode middle dot
13769
- // The KaTeX fonts do not contain U+00B7. Instead, \cdotp displays
13770
- // the dot at U+22C5 and gives it punct spacing.
13771
- defineMacro("\u00b7", "\\cdotp");
13772
13772
  // \llap and \rlap render their contents in text mode
13773
13773
  defineMacro("\\llap", "\\mathllap{\\textrm{#1}}");
13774
13774
  defineMacro("\\rlap", "\\mathrlap{\\textrm{#1}}");
@@ -16369,7 +16369,7 @@ var renderToHTMLTree = function renderToHTMLTree(expression, options) {
16369
16369
  return renderError(error, expression, settings);
16370
16370
  }
16371
16371
  };
16372
- var version = "0.16.38";
16372
+ var version = "0.16.39";
16373
16373
  var __domTree = {
16374
16374
  Span,
16375
16375
  Anchor,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "katex",
3
- "version": "0.16.38",
3
+ "version": "0.16.39",
4
4
  "description": "Fast math typesetting for the web.",
5
5
  "main": "dist/katex.js",
6
6
  "types": "types/katex.d.ts",
package/src/macros.ts CHANGED
@@ -269,11 +269,6 @@ defineMacro("\u2128", "\\mathfrak{Z}");
269
269
  // Define \Bbbk with a macro that works in both HTML and MathML.
270
270
  defineMacro("\\Bbbk", "\\Bbb{k}");
271
271
 
272
- // Unicode middle dot
273
- // The KaTeX fonts do not contain U+00B7. Instead, \cdotp displays
274
- // the dot at U+22C5 and gives it punct spacing.
275
- defineMacro("\u00b7", "\\cdotp");
276
-
277
272
  // \llap and \rlap render their contents in text mode
278
273
  defineMacro("\\llap", "\\mathllap{\\textrm{#1}}");
279
274
  defineMacro("\\rlap", "\\mathrlap{\\textrm{#1}}");
package/src/symbols.ts CHANGED
@@ -122,6 +122,10 @@ defineSymbol(math, main, rel, "\u220b", "\\owns");
122
122
  // Punctuation
123
123
  defineSymbol(math, main, punct, "\u002e", "\\ldotp");
124
124
  defineSymbol(math, main, punct, "\u22c5", "\\cdotp");
125
+ // The KaTeX fonts do not contain U+00B7. Use the centered dot glyph at U+22C5
126
+ // in both modes, but keep math-mode punctuation spacing only in math mode.
127
+ defineSymbol(math, main, punct, "\u22c5", "\u00b7");
128
+ defineSymbol(text, main, textord, "\u22c5", "\u00b7");
125
129
 
126
130
  // Misc Symbols
127
131
  defineSymbol(math, main, textord, "\u0023", "\\#");