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/README.md +4 -4
- package/contrib/copy-tex/README.md +2 -2
- package/contrib/mathtex-script-type/README.md +5 -5
- package/contrib/mhchem/README.md +1 -1
- package/dist/README.md +4 -4
- package/dist/katex-swap.css +1 -1
- package/dist/katex-swap.min.css +1 -1
- package/dist/katex.css +1 -1
- package/dist/katex.js +5 -6
- package/dist/katex.min.css +1 -1
- package/dist/katex.min.js +1 -1
- package/dist/katex.mjs +5 -5
- package/package.json +1 -1
- package/src/macros.ts +0 -5
- package/src/symbols.ts +4 -0
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.
|
|
16372
|
+
var version = "0.16.39";
|
|
16373
16373
|
var __domTree = {
|
|
16374
16374
|
Span,
|
|
16375
16375
|
Anchor,
|
package/package.json
CHANGED
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", "\\#");
|