@mdit/plugin-mathjax-slim 1.0.1 → 1.1.1
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/index.d.ts +3 -10
- package/dist/sync-node.d.ts +3 -10
- package/package.json +8 -8
package/dist/index.d.ts
CHANGED
|
@@ -15,7 +15,6 @@ import { LiteAdaptor } from "@mathjax/src/js/adaptors/liteAdaptor.js";
|
|
|
15
15
|
import { CHTML } from "@mathjax/src/js/output/chtml.js";
|
|
16
16
|
import { SVG } from "@mathjax/src/js/output/svg.js";
|
|
17
17
|
import MarkdownIt from "markdown-it";
|
|
18
|
-
|
|
19
18
|
//#region src/mathjax.d.ts
|
|
20
19
|
type TexPackage = "action" | "ams" | "amscd" | "bbm" | "bboldx" | "bbox" | "begingroup" | "boldsymbol" | "braket" | "bussproofs" | "cancel" | "cases" | "centernot" | "color" | "colortbl" | "colorv2" | "configmacros" | "dsfont" | "empheq" | "enclose" | "extpfeil" | "gensymb" | "html" | "mathtools" | "mhchem" | "newcommand" | "noerrors" | "noundefined" | "physics" | "setoptions" | "tagformat" | "texhtml" | "textcomp" | "textmacros" | "unicode" | "units" | "upgreek" | "verb";
|
|
21
20
|
interface MathJaxTexInputOptions {
|
|
@@ -204,7 +203,8 @@ interface MathjaxCommonOutputOptions {
|
|
|
204
203
|
*
|
|
205
204
|
* @default 0.2
|
|
206
205
|
*/
|
|
207
|
-
lineleading?: number;
|
|
206
|
+
lineleading?: number;
|
|
207
|
+
/** For developers only */
|
|
208
208
|
LinebreakVisitor?: typeof LinebreakVisitor;
|
|
209
209
|
};
|
|
210
210
|
/**
|
|
@@ -390,14 +390,7 @@ interface MathjaxInstance<Sync extends boolean = false> extends Required<Pick<Ma
|
|
|
390
390
|
//#region src/plugin.d.ts
|
|
391
391
|
declare const getDocumentOptions: (options: MarkdownItMathjaxOptions) => Promise<DocumentOptions>;
|
|
392
392
|
declare const createMathjaxInstance: (options?: MarkdownItMathjaxOptions) => Promise<MathjaxInstance | null>;
|
|
393
|
-
declare const mathjax: (md: MarkdownIt, {
|
|
394
|
-
allowInlineWithSpace,
|
|
395
|
-
adaptor,
|
|
396
|
-
delimiters,
|
|
397
|
-
documentOptions,
|
|
398
|
-
mathFence,
|
|
399
|
-
transformer
|
|
400
|
-
}: MathjaxInstance) => void;
|
|
393
|
+
declare const mathjax: (md: MarkdownIt, { allowInlineWithSpace, adaptor, delimiters, documentOptions, mathFence, transformer }: MathjaxInstance) => void;
|
|
401
394
|
//#endregion
|
|
402
395
|
export { type DocumentOptions, type MarkdownItMathjaxOptions, type MathJaxTexInputOptions, type MathjaxCommonHTMLOutputOptions, type MathjaxCommonOutputOptions, type MathjaxFilter, type MathjaxFilterData, type MathjaxInstance, type MathjaxSVGOutputOptions, type TeXTransformer, type TexPackage, createMathjaxInstance, getDocumentOptions, mathjax };
|
|
403
396
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/sync-node.d.ts
CHANGED
|
@@ -15,7 +15,6 @@ import { LinebreakVisitor } from "@mathjax/src/js/output/common/LinebreakVisitor
|
|
|
15
15
|
import { SvgFontData } from "@mathjax/src/js/output/svg/FontData.js";
|
|
16
16
|
import { SvgWrapperFactory } from "@mathjax/src/js/output/svg/WrapperFactory.js";
|
|
17
17
|
import { CssStyles } from "@mathjax/src/js/ui/menu/mj-context-menu.js";
|
|
18
|
-
|
|
19
18
|
//#region src/mathjax.d.ts
|
|
20
19
|
type TexPackage = "action" | "ams" | "amscd" | "bbm" | "bboldx" | "bbox" | "begingroup" | "boldsymbol" | "braket" | "bussproofs" | "cancel" | "cases" | "centernot" | "color" | "colortbl" | "colorv2" | "configmacros" | "dsfont" | "empheq" | "enclose" | "extpfeil" | "gensymb" | "html" | "mathtools" | "mhchem" | "newcommand" | "noerrors" | "noundefined" | "physics" | "setoptions" | "tagformat" | "texhtml" | "textcomp" | "textmacros" | "unicode" | "units" | "upgreek" | "verb";
|
|
21
20
|
interface MathJaxTexInputOptions {
|
|
@@ -204,7 +203,8 @@ interface MathjaxCommonOutputOptions {
|
|
|
204
203
|
*
|
|
205
204
|
* @default 0.2
|
|
206
205
|
*/
|
|
207
|
-
lineleading?: number;
|
|
206
|
+
lineleading?: number;
|
|
207
|
+
/** For developers only */
|
|
208
208
|
LinebreakVisitor?: typeof LinebreakVisitor;
|
|
209
209
|
};
|
|
210
210
|
/**
|
|
@@ -390,14 +390,7 @@ interface MathjaxInstance<Sync extends boolean = false> extends Required<Pick<Ma
|
|
|
390
390
|
//#region src/sync.d.ts
|
|
391
391
|
declare const getDocumentOptions: (options: MarkdownItMathjaxOptions) => DocumentOptions;
|
|
392
392
|
declare const createMathjaxInstance: (options?: MarkdownItMathjaxOptions) => MathjaxInstance<true> | null;
|
|
393
|
-
declare const mathjax: (md: MarkdownIt, {
|
|
394
|
-
allowInlineWithSpace,
|
|
395
|
-
adaptor,
|
|
396
|
-
delimiters,
|
|
397
|
-
documentOptions,
|
|
398
|
-
mathFence,
|
|
399
|
-
transformer
|
|
400
|
-
}: MathjaxInstance) => void;
|
|
393
|
+
declare const mathjax: (md: MarkdownIt, { allowInlineWithSpace, adaptor, delimiters, documentOptions, mathFence, transformer }: MathjaxInstance) => void;
|
|
401
394
|
//#endregion
|
|
402
395
|
export { createMathjaxInstance, getDocumentOptions, mathjax };
|
|
403
396
|
//# sourceMappingURL=sync-node.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mdit/plugin-mathjax-slim",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "mathjax plugin for MarkdownIt",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"markdown-it",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"repository": {
|
|
21
21
|
"type": "git",
|
|
22
22
|
"url": "git+https://github.com/mdit-plugins/mdit-plugins.git",
|
|
23
|
-
"directory": "packages/mathjax"
|
|
23
|
+
"directory": "packages/plugin-mathjax"
|
|
24
24
|
},
|
|
25
25
|
"files": [
|
|
26
26
|
"dist"
|
|
@@ -46,16 +46,16 @@
|
|
|
46
46
|
"clean": "rimraf ./dist"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@mdit/plugin-tex": "1.0.
|
|
49
|
+
"@mdit/plugin-tex": "1.0.2",
|
|
50
50
|
"@types/markdown-it": "^14.1.2"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@mathjax/mathjax-tex-font": "4.1.
|
|
54
|
-
"@mathjax/src": "4.1.
|
|
53
|
+
"@mathjax/mathjax-tex-font": "4.1.3",
|
|
54
|
+
"@mathjax/src": "4.1.3"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"@mathjax/mathjax-newcm-font": "^4.1.
|
|
58
|
-
"@mathjax/src": "^4.
|
|
57
|
+
"@mathjax/mathjax-newcm-font": "^4.1.3",
|
|
58
|
+
"@mathjax/src": "^4.1.3",
|
|
59
59
|
"markdown-it": "^14.2.0"
|
|
60
60
|
},
|
|
61
61
|
"peerDependenciesMeta": {
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"engines": {
|
|
73
73
|
"node": ">=22"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "d427e93b351b7aecc466008c88deee042477853e"
|
|
76
76
|
}
|