markmap-lib 0.17.3-beta.3 → 0.17.3-beta.4
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.iife.js +724 -612
- package/dist/browser/index.mjs +9 -5
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.no-plugins.js +1 -1
- package/dist/index.no-plugins.mjs +1 -1
- package/dist/plugins/katex/vendor.d.ts +2 -0
- package/dist/plugins.js +8 -4
- package/dist/plugins.mjs +8 -4
- package/package.json +7 -7
package/dist/browser/index.mjs
CHANGED
|
@@ -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
|
|
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.
|
|
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.
|
|
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.
|
|
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-beta.
|
|
459
|
+
"markmap-lib": "0.17.3-beta.4"
|
|
456
460
|
};
|
|
457
461
|
export {
|
|
458
462
|
Transformer,
|
package/dist/index.js
CHANGED
package/dist/index.mjs
CHANGED
package/dist/index.no-plugins.js
CHANGED
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
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
|
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.
|
|
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.
|
|
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.
|
|
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-beta.
|
|
3
|
+
"version": "0.17.3-beta.4+120a195",
|
|
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": "
|
|
12
|
-
"prepublishOnly": "
|
|
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-beta.
|
|
64
|
+
"markmap-common": "0.17.3-beta.4+120a195",
|
|
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-beta.
|
|
78
|
-
"markmap-view": "0.17.3-beta.
|
|
77
|
+
"markmap-html-parser": "0.17.3-beta.4+120a195",
|
|
78
|
+
"markmap-view": "0.17.3-beta.4+120a195",
|
|
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": "
|
|
99
|
+
"gitHead": "120a1954940590e194130156a4c5fb60d82c0b3d"
|
|
100
100
|
}
|