markmap-lib 0.13.6-alpha.3 → 0.13.6-alpha.6
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/browser/index.js +23 -15
- package/dist/browser/index.min.js +4 -4
- package/dist/index.esm.js +217 -16
- package/dist/index.js +222 -21
- package/package.json +10 -7
- package/types/types.d.ts +7 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "markmap-lib",
|
|
3
|
-
"version": "0.13.6-alpha.
|
|
3
|
+
"version": "0.13.6-alpha.6+e810c56",
|
|
4
4
|
"description": "Visualize your Markdown as mindmaps with Markmap",
|
|
5
5
|
"author": "Gerald <gera2ld@live.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -42,17 +42,20 @@
|
|
|
42
42
|
"repository": "git@github.com:gera2ld/markmap.git",
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/remarkable": "^2.0.3",
|
|
45
|
+
"markmap-common": "^0.13.4",
|
|
45
46
|
"markmap-view": "^0.13.5",
|
|
46
47
|
"webfontloader": "^1.6.28"
|
|
47
48
|
},
|
|
48
49
|
"dependencies": {
|
|
49
|
-
"@babel/runtime": "^7.
|
|
50
|
+
"@babel/runtime": "^7.18.9",
|
|
50
51
|
"js-yaml": "^4.1.0",
|
|
51
|
-
"katex": "^0.
|
|
52
|
-
"
|
|
53
|
-
"prismjs": "^1.25.0",
|
|
52
|
+
"katex": "^0.16.0",
|
|
53
|
+
"prismjs": "^1.28.0",
|
|
54
54
|
"remarkable": "^2.0.1",
|
|
55
|
-
"remarkable-katex": "^1.1
|
|
55
|
+
"remarkable-katex": "^1.2.1"
|
|
56
|
+
},
|
|
57
|
+
"peerDependencies": {
|
|
58
|
+
"markmap-common": "^0.13.4"
|
|
56
59
|
},
|
|
57
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "e810c56408575eb2cf06e4a062c7048c0d53b059"
|
|
58
61
|
}
|
package/types/types.d.ts
CHANGED
|
@@ -7,16 +7,19 @@ export interface ITransformHooks {
|
|
|
7
7
|
*/
|
|
8
8
|
parser: Hook<[md: Remarkable]>;
|
|
9
9
|
/**
|
|
10
|
-
* Tapped every time
|
|
10
|
+
* Tapped every time before Markdown content is parsed.
|
|
11
11
|
*/
|
|
12
|
-
|
|
12
|
+
beforeParse: Hook<[md: Remarkable, context: ITransformContext]>;
|
|
13
|
+
/**
|
|
14
|
+
* Tapped every time after Markdown content is parsed.
|
|
15
|
+
*/
|
|
16
|
+
afterParse: Hook<[md: Remarkable, context: ITransformContext]>;
|
|
13
17
|
/**
|
|
14
18
|
* Tapped when Remarkable renders an HTML tag in Markdown.
|
|
15
19
|
*/
|
|
16
20
|
htmltag: Hook<[ctx: IWrapContext<Parameters<Htmltag>, ReturnType<Htmltag>>]>;
|
|
17
21
|
/**
|
|
18
|
-
*
|
|
19
|
-
* lack of resources and is called when it is ready for a new transformation.
|
|
22
|
+
* Used in autoloader to force rerender when resource is loaded.
|
|
20
23
|
*/
|
|
21
24
|
retransform: Hook<[]>;
|
|
22
25
|
}
|