markmap-lib 0.14.5-alpha.16 → 0.14.5-alpha.18
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 +10 -9
- package/dist/browser/index.mjs +10 -9
- package/dist/index.js +9 -8
- package/dist/index.mjs +9 -8
- package/package.json +4 -4
package/dist/browser/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! markmap-lib v0.14.5-alpha.
|
|
1
|
+
/*! markmap-lib v0.14.5-alpha.18+44c9639 | MIT License */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('katex')) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports', 'katex'], factory) :
|
|
@@ -20,7 +20,7 @@ function _extends$1() {
|
|
|
20
20
|
return _extends$1.apply(this, arguments);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
/*! markmap-common v0.14.5-alpha.
|
|
23
|
+
/*! markmap-common v0.14.5-alpha.18+44c9639 | MIT License */
|
|
24
24
|
class Hook {
|
|
25
25
|
constructor() {
|
|
26
26
|
this.listeners = [];
|
|
@@ -391,7 +391,7 @@ function buildCSSItem(path, overrideProvider) {
|
|
|
391
391
|
}
|
|
392
392
|
|
|
393
393
|
const template = "<!DOCTYPE html>\n<html>\n<head>\n<meta charset=\"UTF-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n<meta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\">\n<title>Markmap</title>\n<style>\n* {\n margin: 0;\n padding: 0;\n}\n#mindmap {\n display: block;\n width: 100vw;\n height: 100vh;\n}\n</style>\n<!--CSS-->\n</head>\n<body>\n<svg id=\"mindmap\"></svg>\n<!--JS-->\n</body>\n</html>\n" ;
|
|
394
|
-
const baseJsPaths = [`d3@${"6.2.0"}/dist/d3.min.js`, `markmap-view@${"0.14.5-alpha.
|
|
394
|
+
const baseJsPaths = [`d3@${"6.2.0"}/dist/d3.min.js`, `markmap-view@${"0.14.5-alpha.18+44c9639"}/dist/browser/index.js`];
|
|
395
395
|
function fillTemplate(root, assets, extra) {
|
|
396
396
|
var _extra, _extra$baseJs;
|
|
397
397
|
extra = _extends$1({}, extra);
|
|
@@ -11158,13 +11158,13 @@ class Transformer {
|
|
|
11158
11158
|
const stack = [root];
|
|
11159
11159
|
let depth = 0;
|
|
11160
11160
|
for (const token of tokens) {
|
|
11161
|
+
const payload = {};
|
|
11162
|
+
if (token.lines) {
|
|
11163
|
+
payload.lines = token.lines;
|
|
11164
|
+
}
|
|
11161
11165
|
let current = stack[stack.length - 1];
|
|
11162
11166
|
if (token.type.endsWith('_open')) {
|
|
11163
11167
|
const type = token.type.slice(0, -5);
|
|
11164
|
-
const payload = {};
|
|
11165
|
-
if (token.lines) {
|
|
11166
|
-
payload.lines = token.lines;
|
|
11167
|
-
}
|
|
11168
11168
|
if (type === 'heading') {
|
|
11169
11169
|
depth = token.hLevel;
|
|
11170
11170
|
while (((_current = current) == null ? void 0 : _current.depth) >= depth) {
|
|
@@ -11221,7 +11221,8 @@ class Transformer {
|
|
|
11221
11221
|
type: token.type,
|
|
11222
11222
|
depth: depth + 1,
|
|
11223
11223
|
content: result,
|
|
11224
|
-
children: []
|
|
11224
|
+
children: [],
|
|
11225
|
+
payload
|
|
11225
11226
|
});
|
|
11226
11227
|
} else ;
|
|
11227
11228
|
}
|
|
@@ -11276,7 +11277,7 @@ class Transformer {
|
|
|
11276
11277
|
}
|
|
11277
11278
|
|
|
11278
11279
|
const transformerVersions = {
|
|
11279
|
-
'markmap-lib': '0.14.5-alpha.
|
|
11280
|
+
'markmap-lib': '0.14.5-alpha.18+44c9639',
|
|
11280
11281
|
d3: "6.2.0"
|
|
11281
11282
|
};
|
|
11282
11283
|
|
package/dist/browser/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! markmap-lib v0.14.5-alpha.
|
|
1
|
+
/*! markmap-lib v0.14.5-alpha.18+44c9639 | MIT License */
|
|
2
2
|
import require$$0 from 'katex';
|
|
3
3
|
|
|
4
4
|
function _extends$1() {
|
|
@@ -16,7 +16,7 @@ function _extends$1() {
|
|
|
16
16
|
return _extends$1.apply(this, arguments);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
/*! markmap-common v0.14.5-alpha.
|
|
19
|
+
/*! markmap-common v0.14.5-alpha.18+44c9639 | MIT License */
|
|
20
20
|
class Hook {
|
|
21
21
|
constructor() {
|
|
22
22
|
this.listeners = [];
|
|
@@ -387,7 +387,7 @@ function buildCSSItem(path, overrideProvider) {
|
|
|
387
387
|
}
|
|
388
388
|
|
|
389
389
|
const template = "<!DOCTYPE html>\n<html>\n<head>\n<meta charset=\"UTF-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n<meta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\">\n<title>Markmap</title>\n<style>\n* {\n margin: 0;\n padding: 0;\n}\n#mindmap {\n display: block;\n width: 100vw;\n height: 100vh;\n}\n</style>\n<!--CSS-->\n</head>\n<body>\n<svg id=\"mindmap\"></svg>\n<!--JS-->\n</body>\n</html>\n" ;
|
|
390
|
-
const baseJsPaths = [`d3@${"6.2.0"}/dist/d3.min.js`, `markmap-view@${"0.14.5-alpha.
|
|
390
|
+
const baseJsPaths = [`d3@${"6.2.0"}/dist/d3.min.js`, `markmap-view@${"0.14.5-alpha.18+44c9639"}/dist/browser/index.js`];
|
|
391
391
|
function fillTemplate(root, assets, extra) {
|
|
392
392
|
var _extra, _extra$baseJs;
|
|
393
393
|
extra = _extends$1({}, extra);
|
|
@@ -11154,13 +11154,13 @@ class Transformer {
|
|
|
11154
11154
|
const stack = [root];
|
|
11155
11155
|
let depth = 0;
|
|
11156
11156
|
for (const token of tokens) {
|
|
11157
|
+
const payload = {};
|
|
11158
|
+
if (token.lines) {
|
|
11159
|
+
payload.lines = token.lines;
|
|
11160
|
+
}
|
|
11157
11161
|
let current = stack[stack.length - 1];
|
|
11158
11162
|
if (token.type.endsWith('_open')) {
|
|
11159
11163
|
const type = token.type.slice(0, -5);
|
|
11160
|
-
const payload = {};
|
|
11161
|
-
if (token.lines) {
|
|
11162
|
-
payload.lines = token.lines;
|
|
11163
|
-
}
|
|
11164
11164
|
if (type === 'heading') {
|
|
11165
11165
|
depth = token.hLevel;
|
|
11166
11166
|
while (((_current = current) == null ? void 0 : _current.depth) >= depth) {
|
|
@@ -11217,7 +11217,8 @@ class Transformer {
|
|
|
11217
11217
|
type: token.type,
|
|
11218
11218
|
depth: depth + 1,
|
|
11219
11219
|
content: result,
|
|
11220
|
-
children: []
|
|
11220
|
+
children: [],
|
|
11221
|
+
payload
|
|
11221
11222
|
});
|
|
11222
11223
|
} else ;
|
|
11223
11224
|
}
|
|
@@ -11272,7 +11273,7 @@ class Transformer {
|
|
|
11272
11273
|
}
|
|
11273
11274
|
|
|
11274
11275
|
const transformerVersions = {
|
|
11275
|
-
'markmap-lib': '0.14.5-alpha.
|
|
11276
|
+
'markmap-lib': '0.14.5-alpha.18+44c9639',
|
|
11276
11277
|
d3: "6.2.0"
|
|
11277
11278
|
};
|
|
11278
11279
|
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! markmap-lib v0.14.5-alpha.
|
|
1
|
+
/*! markmap-lib v0.14.5-alpha.18+44c9639 | MIT License */
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var _extends = require('@babel/runtime/helpers/extends');
|
|
@@ -10,7 +10,7 @@ var loadLanguages = require('prismjs/components/index.js');
|
|
|
10
10
|
var yaml = require('js-yaml');
|
|
11
11
|
|
|
12
12
|
const template = "<!DOCTYPE html>\n<html>\n<head>\n<meta charset=\"UTF-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n<meta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\">\n<title>Markmap</title>\n<style>\n* {\n margin: 0;\n padding: 0;\n}\n#mindmap {\n display: block;\n width: 100vw;\n height: 100vh;\n}\n</style>\n<!--CSS-->\n</head>\n<body>\n<svg id=\"mindmap\"></svg>\n<!--JS-->\n</body>\n</html>\n" ;
|
|
13
|
-
const baseJsPaths = [`d3@${"6.2.0"}/dist/d3.min.js`, `markmap-view@${"0.14.5-alpha.
|
|
13
|
+
const baseJsPaths = [`d3@${"6.2.0"}/dist/d3.min.js`, `markmap-view@${"0.14.5-alpha.18+44c9639"}/dist/browser/index.js`];
|
|
14
14
|
function fillTemplate(root, assets, extra) {
|
|
15
15
|
var _extra, _extra$baseJs;
|
|
16
16
|
extra = _extends({}, extra);
|
|
@@ -342,13 +342,13 @@ class Transformer {
|
|
|
342
342
|
const stack = [root];
|
|
343
343
|
let depth = 0;
|
|
344
344
|
for (const token of tokens) {
|
|
345
|
+
const payload = {};
|
|
346
|
+
if (token.lines) {
|
|
347
|
+
payload.lines = token.lines;
|
|
348
|
+
}
|
|
345
349
|
let current = stack[stack.length - 1];
|
|
346
350
|
if (token.type.endsWith('_open')) {
|
|
347
351
|
const type = token.type.slice(0, -5);
|
|
348
|
-
const payload = {};
|
|
349
|
-
if (token.lines) {
|
|
350
|
-
payload.lines = token.lines;
|
|
351
|
-
}
|
|
352
352
|
if (type === 'heading') {
|
|
353
353
|
depth = token.hLevel;
|
|
354
354
|
while (((_current = current) == null ? void 0 : _current.depth) >= depth) {
|
|
@@ -405,7 +405,8 @@ class Transformer {
|
|
|
405
405
|
type: token.type,
|
|
406
406
|
depth: depth + 1,
|
|
407
407
|
content: result,
|
|
408
|
-
children: []
|
|
408
|
+
children: [],
|
|
409
|
+
payload
|
|
409
410
|
});
|
|
410
411
|
} else ;
|
|
411
412
|
}
|
|
@@ -460,7 +461,7 @@ class Transformer {
|
|
|
460
461
|
}
|
|
461
462
|
|
|
462
463
|
const transformerVersions = {
|
|
463
|
-
'markmap-lib': '0.14.5-alpha.
|
|
464
|
+
'markmap-lib': '0.14.5-alpha.18+44c9639',
|
|
464
465
|
d3: "6.2.0"
|
|
465
466
|
};
|
|
466
467
|
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! markmap-lib v0.14.5-alpha.
|
|
1
|
+
/*! markmap-lib v0.14.5-alpha.18+44c9639 | MIT License */
|
|
2
2
|
import _extends from '@babel/runtime/helpers/esm/extends';
|
|
3
3
|
import { buildJSItem, persistCSS, persistJS, buildCSSItem, Hook, wrapFunction, noop, getFullUrl } from 'markmap-common';
|
|
4
4
|
import { Remarkable } from 'remarkable';
|
|
@@ -8,7 +8,7 @@ import loadLanguages from 'prismjs/components/index.js';
|
|
|
8
8
|
import yaml from 'js-yaml';
|
|
9
9
|
|
|
10
10
|
const template = "<!DOCTYPE html>\n<html>\n<head>\n<meta charset=\"UTF-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n<meta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\">\n<title>Markmap</title>\n<style>\n* {\n margin: 0;\n padding: 0;\n}\n#mindmap {\n display: block;\n width: 100vw;\n height: 100vh;\n}\n</style>\n<!--CSS-->\n</head>\n<body>\n<svg id=\"mindmap\"></svg>\n<!--JS-->\n</body>\n</html>\n" ;
|
|
11
|
-
const baseJsPaths = [`d3@${"6.2.0"}/dist/d3.min.js`, `markmap-view@${"0.14.5-alpha.
|
|
11
|
+
const baseJsPaths = [`d3@${"6.2.0"}/dist/d3.min.js`, `markmap-view@${"0.14.5-alpha.18+44c9639"}/dist/browser/index.js`];
|
|
12
12
|
function fillTemplate(root, assets, extra) {
|
|
13
13
|
var _extra, _extra$baseJs;
|
|
14
14
|
extra = _extends({}, extra);
|
|
@@ -340,13 +340,13 @@ class Transformer {
|
|
|
340
340
|
const stack = [root];
|
|
341
341
|
let depth = 0;
|
|
342
342
|
for (const token of tokens) {
|
|
343
|
+
const payload = {};
|
|
344
|
+
if (token.lines) {
|
|
345
|
+
payload.lines = token.lines;
|
|
346
|
+
}
|
|
343
347
|
let current = stack[stack.length - 1];
|
|
344
348
|
if (token.type.endsWith('_open')) {
|
|
345
349
|
const type = token.type.slice(0, -5);
|
|
346
|
-
const payload = {};
|
|
347
|
-
if (token.lines) {
|
|
348
|
-
payload.lines = token.lines;
|
|
349
|
-
}
|
|
350
350
|
if (type === 'heading') {
|
|
351
351
|
depth = token.hLevel;
|
|
352
352
|
while (((_current = current) == null ? void 0 : _current.depth) >= depth) {
|
|
@@ -403,7 +403,8 @@ class Transformer {
|
|
|
403
403
|
type: token.type,
|
|
404
404
|
depth: depth + 1,
|
|
405
405
|
content: result,
|
|
406
|
-
children: []
|
|
406
|
+
children: [],
|
|
407
|
+
payload
|
|
407
408
|
});
|
|
408
409
|
} else ;
|
|
409
410
|
}
|
|
@@ -458,7 +459,7 @@ class Transformer {
|
|
|
458
459
|
}
|
|
459
460
|
|
|
460
461
|
const transformerVersions = {
|
|
461
|
-
'markmap-lib': '0.14.5-alpha.
|
|
462
|
+
'markmap-lib': '0.14.5-alpha.18+44c9639',
|
|
462
463
|
d3: "6.2.0"
|
|
463
464
|
};
|
|
464
465
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "markmap-lib",
|
|
3
|
-
"version": "0.14.5-alpha.
|
|
3
|
+
"version": "0.14.5-alpha.18+44c9639",
|
|
4
4
|
"description": "Visualize your Markdown as mindmaps with Markmap",
|
|
5
5
|
"author": "Gerald <gera2ld@live.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@types/remarkable": "^2.0.3",
|
|
50
|
-
"markmap-common": "0.14.5-alpha.
|
|
51
|
-
"markmap-view": "0.14.5-alpha.
|
|
50
|
+
"markmap-common": "0.14.5-alpha.18+44c9639",
|
|
51
|
+
"markmap-view": "0.14.5-alpha.18+44c9639",
|
|
52
52
|
"webfontloader": "^1.6.28"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"peerDependencies": {
|
|
63
63
|
"markmap-common": "*"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "44c96396827295d0b30c41404b95f688e3bff1e6"
|
|
66
66
|
}
|