vitepress-plugin-file-tree 0.4.0 → 0.6.0
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/node/index.js +2 -1
- package/package.json +3 -3
package/dist/node/index.js
CHANGED
|
@@ -154,6 +154,7 @@ function parseContentWithContainer(content) {
|
|
|
154
154
|
};
|
|
155
155
|
const stack = [root];
|
|
156
156
|
const lines = content.trimEnd().split("\n");
|
|
157
|
+
/* v8 ignore next */
|
|
157
158
|
const spaceLength = lines[0]?.match(/^\s*/)?.[0].length ?? 0;
|
|
158
159
|
for (const line of lines) {
|
|
159
160
|
const match = line.match(/^(\s*)-(.*)$/);
|
|
@@ -363,7 +364,7 @@ ${renderedComment}${children.length > 0 ? renderFileTree(children, meta) : ""}
|
|
|
363
364
|
*/
|
|
364
365
|
const fileTree = definePlugin(() => ({
|
|
365
366
|
name: "vitepress-plugin-file-tree",
|
|
366
|
-
|
|
367
|
+
componentResolver: ["VPFileTree", "VPFileTreeNode"],
|
|
367
368
|
markdown: { config: (md) => {
|
|
368
369
|
md.use(fileTreeMarkdownPlugin);
|
|
369
370
|
} },
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vitepress-plugin-file-tree",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.6.0",
|
|
5
5
|
"description": "Render file tree structure in your VitePress site.",
|
|
6
6
|
"author": "pengzhanbo <q942450674@outlook.com> (https://github.com/pengzhanbo/)",
|
|
7
7
|
"license": "MIT",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@pengzhanbo/utils": "^3.7.3",
|
|
41
41
|
"@vueuse/core": "^14.3.0",
|
|
42
|
-
"vitepress-plugin-toolkit": "0.
|
|
43
|
-
"vitepress-tuck": "0.
|
|
42
|
+
"vitepress-plugin-toolkit": "0.6.0",
|
|
43
|
+
"vitepress-tuck": "0.6.0"
|
|
44
44
|
},
|
|
45
45
|
"publishConfig": {
|
|
46
46
|
"access": "public",
|