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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "markmap-lib",
3
- "version": "0.13.6-alpha.3+3e26a91",
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.16.3",
50
+ "@babel/runtime": "^7.18.9",
50
51
  "js-yaml": "^4.1.0",
51
- "katex": "^0.15.1",
52
- "markmap-common": "^0.13.4",
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.8"
55
+ "remarkable-katex": "^1.2.1"
56
+ },
57
+ "peerDependencies": {
58
+ "markmap-common": "^0.13.4"
56
59
  },
57
- "gitHead": "3e26a917be187039277d215033fcd537915bb837"
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 when Markdown content is transformed.
10
+ * Tapped every time before Markdown content is parsed.
11
11
  */
12
- transform: Hook<[md: Remarkable, context: ITransformContext]>;
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
- * Indicate that the last transformation is not complete for reasons like
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
  }