vuepress-plugin-md-power 1.0.0-rc.176 → 1.0.0-rc.178
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/client/components/VPCollapse.vue +4 -0
- package/lib/client/components/VPTable.vue +6 -6
- package/lib/client/composables/codeRepl.js +1 -1
- package/lib/client/composables/pdf.js +2 -2
- package/lib/client/composables/rustRepl.js +1 -1
- package/lib/node/index.js +4 -4
- package/package.json +5 -5
- /package/lib/client/composables/{rustRepl-B5uio_ep.js → rustRepl-DzeWGqns.js} +0 -0
|
@@ -58,7 +58,7 @@ function onCopy(type: 'html' | 'md') {
|
|
|
58
58
|
<span>Markdown</span>
|
|
59
59
|
</button>
|
|
60
60
|
</div>
|
|
61
|
-
<div ref="table" :class="{ 'max-content': maxContent }">
|
|
61
|
+
<div ref="table" class="table-inner" :class="{ 'max-content': maxContent }">
|
|
62
62
|
<slot />
|
|
63
63
|
</div>
|
|
64
64
|
</div>
|
|
@@ -98,6 +98,11 @@ function onCopy(type: 'html' | 'md') {
|
|
|
98
98
|
margin: 0 auto;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
+
.vp-table .table-content .table-inner {
|
|
102
|
+
max-width: 100%;
|
|
103
|
+
overflow-x: auto;
|
|
104
|
+
}
|
|
105
|
+
|
|
101
106
|
.vp-table .table-title {
|
|
102
107
|
margin: 8px auto;
|
|
103
108
|
font-weight: 500;
|
|
@@ -137,11 +142,6 @@ function onCopy(type: 'html' | 'md') {
|
|
|
137
142
|
--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='m9 20.42l-6.21-6.21l2.83-2.83L9 14.77l9.88-9.89l2.83 2.83z'/%3E%3C/svg%3E");
|
|
138
143
|
}
|
|
139
144
|
|
|
140
|
-
.vp-table .table-content .max-content {
|
|
141
|
-
max-width: 100%;
|
|
142
|
-
overflow-x: auto;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
145
|
.vp-table .table-content .max-content table {
|
|
146
146
|
width: max-content;
|
|
147
147
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ensureEndingSlash, isLinkHttp } from "vuepress/shared";
|
|
2
|
-
import { withBase } from "vuepress/client";
|
|
3
1
|
import { isMobile, isSafari, isiPad } from "@vuepress/helper/client";
|
|
2
|
+
import { withBase } from "vuepress/client";
|
|
3
|
+
import { ensureEndingSlash, isLinkHttp } from "vuepress/shared";
|
|
4
4
|
import { pluginOptions } from "../options.js";
|
|
5
5
|
|
|
6
6
|
//#region src/client/composables/pdf.ts
|
package/lib/node/index.js
CHANGED
|
@@ -1470,7 +1470,7 @@ function codeTreePlugin(md, app, options = {}) {
|
|
|
1470
1470
|
dir
|
|
1471
1471
|
};
|
|
1472
1472
|
},
|
|
1473
|
-
content: ({ dir, icon
|
|
1473
|
+
content: ({ dir, icon, ...props }, _, env) => {
|
|
1474
1474
|
const codeTreeFiles = env.codeTreeFiles ??= [];
|
|
1475
1475
|
const root = findFile(app, env, dir);
|
|
1476
1476
|
const files = tinyglobby.globSync("**/*", {
|
|
@@ -2302,7 +2302,7 @@ function resolveNpmTo(lines, info, idx, tabs$1) {
|
|
|
2302
2302
|
* 根据命令行内容查找对应的包管理器配置
|
|
2303
2303
|
*/
|
|
2304
2304
|
function findConfig(line) {
|
|
2305
|
-
for (const { pattern
|
|
2305
|
+
for (const { pattern, ...config } of Object.values(MANAGERS_CONFIG)) if (pattern.test(line)) return config;
|
|
2306
2306
|
}
|
|
2307
2307
|
/**
|
|
2308
2308
|
* 校验 tabs 合法性,返回允许的包管理器列表
|
|
@@ -2438,7 +2438,7 @@ function stepsPlugin(md) {
|
|
|
2438
2438
|
*/
|
|
2439
2439
|
function tablePlugin(md, options = {}) {
|
|
2440
2440
|
createContainerSyntaxPlugin(md, "table", (tokens, index, opt, env) => {
|
|
2441
|
-
const { hlCols = "", hlRows = "", hlCells = ""
|
|
2441
|
+
const { hlCols = "", hlRows = "", hlCells = "", ...meta } = tokens[index].meta;
|
|
2442
2442
|
const props = {
|
|
2443
2443
|
copy: true,
|
|
2444
2444
|
maxContent: false,
|
|
@@ -3570,7 +3570,7 @@ const artPlayerPlugin = (md) => {
|
|
|
3570
3570
|
ratio: attrs$1.ratio ? parseRect(`${attrs$1.ratio}`) : void 0
|
|
3571
3571
|
};
|
|
3572
3572
|
},
|
|
3573
|
-
content({ url
|
|
3573
|
+
content({ url, ...meta }) {
|
|
3574
3574
|
meta.muted = meta.muted || meta.autoplay;
|
|
3575
3575
|
return `<ArtPlayer src="${url}" fullscreen flip playback-rate aspect-ratio setting pip${stringifyAttrs(meta)}/>`;
|
|
3576
3576
|
}
|
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.178",
|
|
5
5
|
"description": "The Plugin for VuePress 2 - markdown power",
|
|
6
6
|
"author": "pengzhanbo <volodymyr@foxmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"artplayer": "^5.3.0",
|
|
35
35
|
"dashjs": "^5.0.3",
|
|
36
|
-
"esbuild": "^0.
|
|
37
|
-
"hls.js": "^1.6.
|
|
36
|
+
"esbuild": "^0.27.0",
|
|
37
|
+
"hls.js": "^1.6.15",
|
|
38
38
|
"less": "^4.4.2",
|
|
39
39
|
"markdown-it": "^14.1.0",
|
|
40
40
|
"mpegts.js": "^1.7.3",
|
|
41
41
|
"pyodide": "^0.29.0",
|
|
42
|
-
"sass": "^1.
|
|
42
|
+
"sass": "^1.94.1",
|
|
43
43
|
"sass-embedded": "^1.93.3",
|
|
44
44
|
"stylus": "^0.64.0",
|
|
45
45
|
"vuepress": "2.0.0-rc.26"
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"@types/markdown-it": "^14.1.2",
|
|
103
103
|
"artplayer": "^5.3.0",
|
|
104
104
|
"dashjs": "^5.0.3",
|
|
105
|
-
"hls.js": "^1.6.
|
|
105
|
+
"hls.js": "^1.6.15",
|
|
106
106
|
"mpegts.js": "1.7.3"
|
|
107
107
|
},
|
|
108
108
|
"publishConfig": {
|
|
File without changes
|