vuepress-plugin-md-power 1.0.0-rc.175 → 1.0.0-rc.177

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.
@@ -28,4 +28,8 @@ provide(INJECT_COLLAPSE_KEY, {
28
28
  gap: 16px;
29
29
  margin: 16px 0;
30
30
  }
31
+
32
+ .vp-card-wrapper .body > :first-child:where(.vp-collapse) > .vp-collapse-item:first-child {
33
+ padding-top: 0;
34
+ }
31
35
  </style>
@@ -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,4 +1,4 @@
1
- import { t as rustExecute } from "./rustRepl-DU344AGc.js";
1
+ import { t as rustExecute } from "./rustRepl-DzeWGqns.js";
2
2
  import { onMounted, ref } from "vue";
3
3
  import { http } from "../utils/http.js";
4
4
  import { sleep } from "../utils/sleep.js";
@@ -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
@@ -1,6 +1,11 @@
1
1
  import { tryOnScopeDispose } from "@vueuse/core";
2
2
 
3
3
  //#region src/client/composables/rustRepl.ts
4
+ /**
5
+ * 相比于 golang 和 kotlin 可以比较简单的实现,
6
+ * rust 需要通过 websocket 建立连接在实现交互,因此,将其进行一些包装,
7
+ * 方便在 codeRepl 中使用
8
+ */
4
9
  const wsUrl = "wss://play.rust-lang.org/websocket";
5
10
  const payloadType = {
6
11
  connected: "websocket/connected",
@@ -1,3 +1,3 @@
1
- import { t as rustExecute } from "./rustRepl-DU344AGc.js";
1
+ import { t as rustExecute } from "./rustRepl-DzeWGqns.js";
2
2
 
3
3
  export { rustExecute };
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,...props }, _, env) => {
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("**/*", {
@@ -1939,6 +1939,7 @@ async function read(file) {
1939
1939
 
1940
1940
  //#endregion
1941
1941
  //#region src/node/utils/logger.ts
1942
+ /* istanbul ignore file -- @preserve */
1942
1943
  /**
1943
1944
  * Logger utils
1944
1945
  */
@@ -2301,7 +2302,7 @@ function resolveNpmTo(lines, info, idx, tabs$1) {
2301
2302
  * 根据命令行内容查找对应的包管理器配置
2302
2303
  */
2303
2304
  function findConfig(line) {
2304
- for (const { pattern,...config } of Object.values(MANAGERS_CONFIG)) if (pattern.test(line)) return config;
2305
+ for (const { pattern, ...config } of Object.values(MANAGERS_CONFIG)) if (pattern.test(line)) return config;
2305
2306
  }
2306
2307
  /**
2307
2308
  * 校验 tabs 合法性,返回允许的包管理器列表
@@ -2437,7 +2438,7 @@ function stepsPlugin(md) {
2437
2438
  */
2438
2439
  function tablePlugin(md, options = {}) {
2439
2440
  createContainerSyntaxPlugin(md, "table", (tokens, index, opt, env) => {
2440
- const { hlCols = "", hlRows = "", hlCells = "",...meta } = tokens[index].meta;
2441
+ const { hlCols = "", hlRows = "", hlCells = "", ...meta } = tokens[index].meta;
2441
2442
  const props = {
2442
2443
  copy: true,
2443
2444
  maxContent: false,
@@ -3569,7 +3570,7 @@ const artPlayerPlugin = (md) => {
3569
3570
  ratio: attrs$1.ratio ? parseRect(`${attrs$1.ratio}`) : void 0
3570
3571
  };
3571
3572
  },
3572
- content({ url,...meta }) {
3573
+ content({ url, ...meta }) {
3573
3574
  meta.muted = meta.muted || meta.autoplay;
3574
3575
  return `<ArtPlayer src="${url}" fullscreen flip playback-rate aspect-ratio setting pip${stringifyAttrs(meta)}/>`;
3575
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.175",
4
+ "version": "1.0.0-rc.177",
5
5
  "description": "The Plugin for VuePress 2 - markdown power",
6
6
  "author": "pengzhanbo <volodymyr@foxmail.com>",
7
7
  "license": "MIT",
@@ -33,14 +33,14 @@
33
33
  "peerDependencies": {
34
34
  "artplayer": "^5.3.0",
35
35
  "dashjs": "^5.0.3",
36
- "esbuild": "^0.25.11",
37
- "hls.js": "^1.6.13",
36
+ "esbuild": "^0.27.0",
37
+ "hls.js": "^1.6.14",
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.93.2",
43
- "sass-embedded": "^1.93.2",
42
+ "sass": "^1.94.0",
43
+ "sass-embedded": "^1.93.3",
44
44
  "stylus": "^0.64.0",
45
45
  "vuepress": "2.0.0-rc.26"
46
46
  },
@@ -93,16 +93,16 @@
93
93
  "lru-cache": "^11.2.2",
94
94
  "markdown-it-container": "^4.0.0",
95
95
  "nanoid": "^5.1.6",
96
- "shiki": "^3.14.0",
96
+ "shiki": "^3.15.0",
97
97
  "tm-grammars": "^1.25.3",
98
98
  "tm-themes": "^1.10.12",
99
- "vue": "^3.5.22"
99
+ "vue": "^3.5.24"
100
100
  },
101
101
  "devDependencies": {
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.13",
105
+ "hls.js": "^1.6.14",
106
106
  "mpegts.js": "1.7.3"
107
107
  },
108
108
  "publishConfig": {