@vuepress/markdown 2.0.0-beta.66 → 2.0.0-beta.68
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/index.js +4 -2
- package/package.json +16 -16
package/dist/index.js
CHANGED
|
@@ -29,6 +29,8 @@ import { default as anchorPlugin } from "markdown-it-anchor";
|
|
|
29
29
|
import { path } from "@vuepress/utils";
|
|
30
30
|
import { decode } from "mdurl";
|
|
31
31
|
var resolveLink = (link, relativePathPrefix, env, strict = false) => {
|
|
32
|
+
if (link.startsWith("data:"))
|
|
33
|
+
return link;
|
|
32
34
|
let resolvedLink = decode(link);
|
|
33
35
|
const isRelativePath = strict ? (
|
|
34
36
|
// in strict mode, only link that starts with `./` or `../` is considered as relative path
|
|
@@ -368,7 +370,7 @@ var importCodePlugin = (md, options = {}) => {
|
|
|
368
370
|
token.content = importCode;
|
|
369
371
|
if (importFilePath) {
|
|
370
372
|
;
|
|
371
|
-
(env.importedFiles
|
|
373
|
+
(env.importedFiles ??= []).push(importFilePath);
|
|
372
374
|
}
|
|
373
375
|
return md.renderer.rules.fence(tokens, idx, options2, env, slf);
|
|
374
376
|
};
|
|
@@ -454,7 +456,7 @@ var linksPlugin = (md, options = {}) => {
|
|
|
454
456
|
hasOpenInternalLink = true;
|
|
455
457
|
}
|
|
456
458
|
hrefAttr[1] = `${normalizedPath}${rawHash}`;
|
|
457
|
-
(env.links
|
|
459
|
+
(env.links ??= []).push({
|
|
458
460
|
raw: hrefLink,
|
|
459
461
|
relative: relativePath,
|
|
460
462
|
absolute: absolutePath
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuepress/markdown",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.68",
|
|
4
4
|
"description": "Markdown package of VuePress",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vuepress",
|
|
@@ -27,25 +27,25 @@
|
|
|
27
27
|
"dist"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@mdit-vue/plugin-component": "^0.
|
|
31
|
-
"@mdit-vue/plugin-frontmatter": "^0.
|
|
32
|
-
"@mdit-vue/plugin-headers": "^0.
|
|
33
|
-
"@mdit-vue/plugin-sfc": "^0.
|
|
34
|
-
"@mdit-vue/plugin-title": "^0.
|
|
35
|
-
"@mdit-vue/plugin-toc": "^0.
|
|
36
|
-
"@mdit-vue/shared": "^0.
|
|
37
|
-
"@mdit-vue/types": "^0.
|
|
38
|
-
"@types/markdown-it": "^
|
|
39
|
-
"@types/markdown-it-emoji": "^2.0.
|
|
40
|
-
"markdown-it": "^13.0.
|
|
30
|
+
"@mdit-vue/plugin-component": "^1.0.0",
|
|
31
|
+
"@mdit-vue/plugin-frontmatter": "^1.0.0",
|
|
32
|
+
"@mdit-vue/plugin-headers": "^1.0.0",
|
|
33
|
+
"@mdit-vue/plugin-sfc": "^1.0.0",
|
|
34
|
+
"@mdit-vue/plugin-title": "^1.0.0",
|
|
35
|
+
"@mdit-vue/plugin-toc": "^1.0.0",
|
|
36
|
+
"@mdit-vue/shared": "^1.0.0",
|
|
37
|
+
"@mdit-vue/types": "^1.0.0",
|
|
38
|
+
"@types/markdown-it": "^13.0.6",
|
|
39
|
+
"@types/markdown-it-emoji": "^2.0.4",
|
|
40
|
+
"markdown-it": "^13.0.2",
|
|
41
41
|
"markdown-it-anchor": "^8.6.7",
|
|
42
42
|
"markdown-it-emoji": "^2.0.2",
|
|
43
43
|
"mdurl": "^1.0.1",
|
|
44
|
-
"@vuepress/
|
|
45
|
-
"@vuepress/
|
|
44
|
+
"@vuepress/shared": "2.0.0-beta.68",
|
|
45
|
+
"@vuepress/utils": "2.0.0-beta.68"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@types/mdurl": "^1.0.
|
|
48
|
+
"@types/mdurl": "^1.0.5"
|
|
49
49
|
},
|
|
50
50
|
"publishConfig": {
|
|
51
51
|
"access": "public"
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
],
|
|
62
62
|
"outDir": "./dist",
|
|
63
63
|
"sourcemap": false,
|
|
64
|
-
"target": "
|
|
64
|
+
"target": "es2022",
|
|
65
65
|
"tsconfig": "../tsconfig.dts.json"
|
|
66
66
|
},
|
|
67
67
|
"scripts": {
|