katex 0.18.8 → 0.18.9
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 +3 -3
- 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 +3 -3
- 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 +1 -1
- package/dist/katex.min.css +1 -1
- package/dist/katex.min.js +1 -1
- package/dist/katex.mjs +1 -1
- package/package.json +41 -11
- package/types/contrib/auto-render.d.cts +24 -0
- package/types/contrib/auto-render.d.mts +20 -0
- package/types/contrib/copy-tex.d.cts +1 -0
- package/types/contrib/copy-tex.d.mts +1 -0
- package/types/contrib/mathtex-script-type.d.cts +1 -0
- package/types/contrib/mathtex-script-type.d.mts +1 -0
- package/types/contrib/mhchem.d.cts +1 -0
- package/types/contrib/mhchem.d.mts +1 -0
- package/types/contrib/render-a11y-string.d.cts +8 -0
- package/types/contrib/render-a11y-string.d.mts +6 -0
package/dist/katex.mjs
CHANGED
|
@@ -16310,7 +16310,7 @@ var renderToHTMLTree = function renderToHTMLTree(expression, options) {
|
|
|
16310
16310
|
return renderError(error, expression, settings);
|
|
16311
16311
|
}
|
|
16312
16312
|
};
|
|
16313
|
-
var version = "0.18.
|
|
16313
|
+
var version = "0.18.9";
|
|
16314
16314
|
var __domTree = {
|
|
16315
16315
|
Span,
|
|
16316
16316
|
Anchor,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "katex",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.9",
|
|
4
4
|
"description": "Fast math typesetting for the web.",
|
|
5
5
|
"main": "dist/katex.js",
|
|
6
6
|
"types": "types/katex.d.ts",
|
|
@@ -16,24 +16,54 @@
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"./contrib/auto-render": {
|
|
19
|
-
"require":
|
|
20
|
-
|
|
19
|
+
"require": {
|
|
20
|
+
"types": "./types/contrib/auto-render.d.cts",
|
|
21
|
+
"default": "./dist/contrib/auto-render.js"
|
|
22
|
+
},
|
|
23
|
+
"import": {
|
|
24
|
+
"types": "./types/contrib/auto-render.d.mts",
|
|
25
|
+
"default": "./dist/contrib/auto-render.mjs"
|
|
26
|
+
}
|
|
21
27
|
},
|
|
22
28
|
"./contrib/mhchem": {
|
|
23
|
-
"require":
|
|
24
|
-
|
|
29
|
+
"require": {
|
|
30
|
+
"types": "./types/contrib/mhchem.d.cts",
|
|
31
|
+
"default": "./dist/contrib/mhchem.js"
|
|
32
|
+
},
|
|
33
|
+
"import": {
|
|
34
|
+
"types": "./types/contrib/mhchem.d.mts",
|
|
35
|
+
"default": "./dist/contrib/mhchem.mjs"
|
|
36
|
+
}
|
|
25
37
|
},
|
|
26
38
|
"./contrib/copy-tex": {
|
|
27
|
-
"require":
|
|
28
|
-
|
|
39
|
+
"require": {
|
|
40
|
+
"types": "./types/contrib/copy-tex.d.cts",
|
|
41
|
+
"default": "./dist/contrib/copy-tex.js"
|
|
42
|
+
},
|
|
43
|
+
"import": {
|
|
44
|
+
"types": "./types/contrib/copy-tex.d.mts",
|
|
45
|
+
"default": "./dist/contrib/copy-tex.mjs"
|
|
46
|
+
}
|
|
29
47
|
},
|
|
30
48
|
"./contrib/mathtex-script-type": {
|
|
31
|
-
"require":
|
|
32
|
-
|
|
49
|
+
"require": {
|
|
50
|
+
"types": "./types/contrib/mathtex-script-type.d.cts",
|
|
51
|
+
"default": "./dist/contrib/mathtex-script-type.js"
|
|
52
|
+
},
|
|
53
|
+
"import": {
|
|
54
|
+
"types": "./types/contrib/mathtex-script-type.d.mts",
|
|
55
|
+
"default": "./dist/contrib/mathtex-script-type.mjs"
|
|
56
|
+
}
|
|
33
57
|
},
|
|
34
58
|
"./contrib/render-a11y-string": {
|
|
35
|
-
"require":
|
|
36
|
-
|
|
59
|
+
"require": {
|
|
60
|
+
"types": "./types/contrib/render-a11y-string.d.cts",
|
|
61
|
+
"default": "./dist/contrib/render-a11y-string.js"
|
|
62
|
+
},
|
|
63
|
+
"import": {
|
|
64
|
+
"types": "./types/contrib/render-a11y-string.d.mts",
|
|
65
|
+
"default": "./dist/contrib/render-a11y-string.mjs"
|
|
66
|
+
}
|
|
37
67
|
},
|
|
38
68
|
"./*": "./*"
|
|
39
69
|
},
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type {KatexOptions} from "../katex";
|
|
2
|
+
|
|
3
|
+
declare function renderMathInElement(
|
|
4
|
+
elem: HTMLElement,
|
|
5
|
+
options?: renderMathInElement.RenderMathInElementOptions,
|
|
6
|
+
): void;
|
|
7
|
+
|
|
8
|
+
declare namespace renderMathInElement {
|
|
9
|
+
interface DelimiterSpec {
|
|
10
|
+
left: string;
|
|
11
|
+
right: string;
|
|
12
|
+
display: boolean;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
interface RenderMathInElementOptions extends KatexOptions {
|
|
16
|
+
delimiters?: readonly DelimiterSpec[];
|
|
17
|
+
preProcess?: (math: string) => string;
|
|
18
|
+
ignoredTags?: readonly string[];
|
|
19
|
+
ignoredClasses?: readonly string[];
|
|
20
|
+
errorCallback?: (msg: string, err: Error) => void;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export = renderMathInElement;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type {KatexOptions} from "../katex.js";
|
|
2
|
+
|
|
3
|
+
export interface DelimiterSpec {
|
|
4
|
+
left: string;
|
|
5
|
+
right: string;
|
|
6
|
+
display: boolean;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface RenderMathInElementOptions extends KatexOptions {
|
|
10
|
+
delimiters?: readonly DelimiterSpec[];
|
|
11
|
+
preProcess?: (math: string) => string;
|
|
12
|
+
ignoredTags?: readonly string[];
|
|
13
|
+
ignoredClasses?: readonly string[];
|
|
14
|
+
errorCallback?: (msg: string, err: Error) => void;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export default function renderMathInElement(
|
|
18
|
+
elem: HTMLElement,
|
|
19
|
+
options?: RenderMathInElementOptions,
|
|
20
|
+
): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|