vuepress-plugin-md-power 1.0.0-rc.119 → 1.0.0-rc.121
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/lib/node/index.js +12 -0
- package/package.json +6 -6
package/lib/node/index.js
CHANGED
|
@@ -255,6 +255,18 @@ function cardPlugin(md) {
|
|
|
255
255
|
before: () => "<VPCardGrid>",
|
|
256
256
|
after: () => "</VPCardGrid>"
|
|
257
257
|
});
|
|
258
|
+
createContainerPlugin(md, "card-masonry", {
|
|
259
|
+
before: (info) => {
|
|
260
|
+
const { attrs: attrs2 } = resolveAttrs(info);
|
|
261
|
+
let cols;
|
|
262
|
+
if (attrs2.cols) {
|
|
263
|
+
cols = attrs2.cols[0] === "{" ? attrs2.cols : Number.parseInt(`${attrs2.cols}`);
|
|
264
|
+
}
|
|
265
|
+
const gap = Number.parseInt(`${attrs2.gap}`);
|
|
266
|
+
return `<VPCardMasonry${cols ? ` :cols="${cols}"` : ""}${gap >= 0 ? ` :gap="${gap}"` : ""}>`;
|
|
267
|
+
},
|
|
268
|
+
after: () => "</VPCardMasonry>"
|
|
269
|
+
});
|
|
258
270
|
}
|
|
259
271
|
|
|
260
272
|
// src/node/container/codeTabs.ts
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vuepress-plugin-md-power",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.0-rc.
|
|
4
|
+
"version": "1.0.0-rc.121",
|
|
5
5
|
"description": "The Plugin for VuePress 2 - markdown power",
|
|
6
6
|
"author": "pengzhanbo <volodymyr@foxmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
],
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"markdown-it": "^14.0.0",
|
|
35
|
-
"vuepress": "2.0.0-rc.
|
|
35
|
+
"vuepress": "2.0.0-rc.19"
|
|
36
36
|
},
|
|
37
37
|
"peerDependenciesMeta": {
|
|
38
38
|
"markdown-it": {
|
|
@@ -47,15 +47,15 @@
|
|
|
47
47
|
"@mdit/plugin-sup": "^0.14.0",
|
|
48
48
|
"@mdit/plugin-tab": "^0.14.0",
|
|
49
49
|
"@mdit/plugin-tasklist": "^0.14.0",
|
|
50
|
-
"@vuepress/helper": "2.0.0-rc.
|
|
50
|
+
"@vuepress/helper": "2.0.0-rc.66",
|
|
51
51
|
"@vueuse/core": "^12.0.0",
|
|
52
52
|
"image-size": "^1.1.1",
|
|
53
53
|
"local-pkg": "^0.5.1",
|
|
54
54
|
"markdown-it-container": "^4.0.0",
|
|
55
55
|
"nanoid": "^5.0.9",
|
|
56
|
-
"shiki": "^1.24.
|
|
57
|
-
"tm-grammars": "^1.21.
|
|
58
|
-
"tm-themes": "^1.9.
|
|
56
|
+
"shiki": "^1.24.2",
|
|
57
|
+
"tm-grammars": "^1.21.4",
|
|
58
|
+
"tm-themes": "^1.9.5",
|
|
59
59
|
"vue": "^3.5.13"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|