markmap-lib 0.17.3-alpha.3 → 0.17.3-alpha.8

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.
@@ -6,7 +6,7 @@ import md_mark from "markdown-it-mark";
6
6
  import md_sub from "markdown-it-sub";
7
7
  import md_sup from "markdown-it-sup";
8
8
  import { parse } from "yaml";
9
- import katexPlugin from "@vscode/markdown-it-katex";
9
+ import katexPluginModule from "@vscode/markdown-it-katex";
10
10
  function initializeMarkdownIt() {
11
11
  const md = MarkdownIt({
12
12
  html: true,
@@ -207,18 +207,18 @@ function addDefaultVersions(paths, name2, version) {
207
207
  }
208
208
  const name$2 = "katex";
209
209
  const preloadScripts = [
210
- `katex@${"0.16.11"}/dist/katex.min.js`
210
+ `katex@${"0.16.15"}/dist/katex.min.js`
211
211
  ].map((path) => buildJSItem(path));
212
212
  const webfontloader = buildJSItem(
213
213
  `webfontloader@${"1.6.28"}/webfontloader.js`
214
214
  );
215
215
  webfontloader.data.defer = true;
216
- const styles = [`katex@${"0.16.11"}/dist/katex.min.css`].map(
216
+ const styles = [`katex@${"0.16.15"}/dist/katex.min.css`].map(
217
217
  (path) => buildCSSItem(path)
218
218
  );
219
219
  const config = {
220
220
  versions: {
221
- katex: "0.16.11",
221
+ katex: "0.16.15",
222
222
  webfontloader: "1.6.28"
223
223
  },
224
224
  preloadScripts,
@@ -258,6 +258,10 @@ const config = {
258
258
  ],
259
259
  styles
260
260
  };
261
+ function interop(mod) {
262
+ return mod.default || mod;
263
+ }
264
+ const katexPlugin = interop(katexPluginModule);
261
265
  const plugin$1 = definePlugin({
262
266
  name: name$2,
263
267
  config,
@@ -452,7 +456,7 @@ class Transformer {
452
456
  }
453
457
  }
454
458
  const transformerVersions = {
455
- "markmap-lib": "0.17.3-alpha.3"
459
+ "markmap-lib": "0.17.3-alpha.8"
456
460
  };
457
461
  export {
458
462
  Transformer,
package/dist/index.js CHANGED
@@ -115,7 +115,7 @@ class Transformer {
115
115
  }
116
116
  }
117
117
  const transformerVersions = {
118
- "markmap-lib": "0.17.3-alpha.3"
118
+ "markmap-lib": "0.17.3-alpha.8"
119
119
  };
120
120
  exports.Transformer = Transformer;
121
121
  exports.builtInPlugins = builtInPlugins;
package/dist/index.mjs CHANGED
@@ -113,7 +113,7 @@ class Transformer {
113
113
  }
114
114
  }
115
115
  const transformerVersions = {
116
- "markmap-lib": "0.17.3-alpha.3"
116
+ "markmap-lib": "0.17.3-alpha.8"
117
117
  };
118
118
  export {
119
119
  Transformer,
@@ -123,7 +123,7 @@ class Transformer {
123
123
  }
124
124
  }
125
125
  const transformerVersions = {
126
- "markmap-lib": "0.17.3-alpha.3"
126
+ "markmap-lib": "0.17.3-alpha.8"
127
127
  };
128
128
  exports.Transformer = Transformer;
129
129
  exports.builtInPlugins = builtInPlugins;
@@ -121,7 +121,7 @@ class Transformer {
121
121
  }
122
122
  }
123
123
  const transformerVersions = {
124
- "markmap-lib": "0.17.3-alpha.3"
124
+ "markmap-lib": "0.17.3-alpha.8"
125
125
  };
126
126
  export {
127
127
  Transformer,
@@ -0,0 +1,2 @@
1
+ import katexPluginModule from '@vscode/markdown-it-katex';
2
+ export declare const katexPlugin: typeof katexPluginModule;
package/dist/plugins.js CHANGED
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const markmapCommon = require("markmap-common");
4
4
  const yaml = require("yaml");
5
5
  const hljs = require("highlight.js");
6
- const katexPlugin = require("@vscode/markdown-it-katex");
6
+ const katexPluginModule = require("@vscode/markdown-it-katex");
7
7
  function createTransformHooks(transformer) {
8
8
  return {
9
9
  transformer,
@@ -141,18 +141,18 @@ const plugin$2 = definePlugin({
141
141
  });
142
142
  const name$2 = "katex";
143
143
  const preloadScripts = [
144
- `katex@${"0.16.11"}/dist/katex.min.js`
144
+ `katex@${"0.16.15"}/dist/katex.min.js`
145
145
  ].map((path) => markmapCommon.buildJSItem(path));
146
146
  const webfontloader = markmapCommon.buildJSItem(
147
147
  `webfontloader@${"1.6.28"}/webfontloader.js`
148
148
  );
149
149
  webfontloader.data.defer = true;
150
- const styles = [`katex@${"0.16.11"}/dist/katex.min.css`].map(
150
+ const styles = [`katex@${"0.16.15"}/dist/katex.min.css`].map(
151
151
  (path) => markmapCommon.buildCSSItem(path)
152
152
  );
153
153
  const config = {
154
154
  versions: {
155
- katex: "0.16.11",
155
+ katex: "0.16.15",
156
156
  webfontloader: "1.6.28"
157
157
  },
158
158
  preloadScripts,
@@ -192,6 +192,10 @@ const config = {
192
192
  ],
193
193
  styles
194
194
  };
195
+ function interop(mod) {
196
+ return mod.default || mod;
197
+ }
198
+ const katexPlugin = interop(katexPluginModule);
195
199
  const plugin$1 = definePlugin({
196
200
  name: name$2,
197
201
  config,
package/dist/plugins.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Hook, buildJSItem, buildCSSItem, noop, wrapFunction } from "markmap-common";
2
2
  import { parse } from "yaml";
3
3
  import hljs from "highlight.js";
4
- import katexPlugin from "@vscode/markdown-it-katex";
4
+ import katexPluginModule from "@vscode/markdown-it-katex";
5
5
  function createTransformHooks(transformer) {
6
6
  return {
7
7
  transformer,
@@ -139,18 +139,18 @@ const plugin$2 = definePlugin({
139
139
  });
140
140
  const name$2 = "katex";
141
141
  const preloadScripts = [
142
- `katex@${"0.16.11"}/dist/katex.min.js`
142
+ `katex@${"0.16.15"}/dist/katex.min.js`
143
143
  ].map((path) => buildJSItem(path));
144
144
  const webfontloader = buildJSItem(
145
145
  `webfontloader@${"1.6.28"}/webfontloader.js`
146
146
  );
147
147
  webfontloader.data.defer = true;
148
- const styles = [`katex@${"0.16.11"}/dist/katex.min.css`].map(
148
+ const styles = [`katex@${"0.16.15"}/dist/katex.min.css`].map(
149
149
  (path) => buildCSSItem(path)
150
150
  );
151
151
  const config = {
152
152
  versions: {
153
- katex: "0.16.11",
153
+ katex: "0.16.15",
154
154
  webfontloader: "1.6.28"
155
155
  },
156
156
  preloadScripts,
@@ -190,6 +190,10 @@ const config = {
190
190
  ],
191
191
  styles
192
192
  };
193
+ function interop(mod) {
194
+ return mod.default || mod;
195
+ }
196
+ const katexPlugin = interop(katexPluginModule);
193
197
  const plugin$1 = definePlugin({
194
198
  name: name$2,
195
199
  config,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "markmap-lib",
3
- "version": "0.17.3-alpha.3+89ad076",
3
+ "version": "0.17.3-alpha.8+64b2923",
4
4
  "description": "Visualize your Markdown as mindmaps with Markmap",
5
5
  "author": "Gerald <gera2ld@live.com>",
6
6
  "license": "MIT",
@@ -8,8 +8,8 @@
8
8
  "clean": "del-cli dist",
9
9
  "build:types": "tsc",
10
10
  "build:js": "vite build && TARGET=nodeLight vite build && TARGET=browserEs vite build && TARGET=browserJs vite build",
11
- "build": "run-s clean build:*",
12
- "prepublishOnly": "run-s build",
11
+ "build": "pnpm clean && pnpm /^build:/",
12
+ "prepublishOnly": "pnpm build",
13
13
  "test": "jest test"
14
14
  },
15
15
  "publishConfig": {
@@ -61,7 +61,7 @@
61
61
  "@highlightjs/cdn-assets": "^11.8.0",
62
62
  "@types/katex": "^0.16.7",
63
63
  "@types/markdown-it": "^14.0.0",
64
- "markmap-common": "0.17.3-alpha.3+89ad076",
64
+ "markmap-common": "0.17.3-alpha.8+64b2923",
65
65
  "webfontloader": "^1.6.28"
66
66
  },
67
67
  "dependencies": {
@@ -74,8 +74,8 @@
74
74
  "markdown-it-mark": "^4.0.0",
75
75
  "markdown-it-sub": "^2.0.0",
76
76
  "markdown-it-sup": "^2.0.0",
77
- "markmap-html-parser": "0.17.3-alpha.3+89ad076",
78
- "markmap-view": "0.17.3-alpha.3+89ad076",
77
+ "markmap-html-parser": "0.17.3-alpha.8+64b2923",
78
+ "markmap-view": "0.17.3-alpha.8+64b2923",
79
79
  "prismjs": "^1.29.0",
80
80
  "yaml": "^2.5.1"
81
81
  },
@@ -96,5 +96,5 @@
96
96
  "^(.*\\.svg)\\?raw$": "$1"
97
97
  }
98
98
  },
99
- "gitHead": "89ad076e313dd4c126aeafc49f052315755e8c0d"
99
+ "gitHead": "64b292331f81ae92a3c269c97fc6394f53892c48"
100
100
  }