@umijs/plugin-docs 4.4.12 → 4.4.13-canary.20250911.1
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/compiler.js +8 -0
- package/dist/index.js +0 -2
- package/dist/loader.js +0 -2
- package/package.json +2 -2
package/dist/compiler.js
CHANGED
|
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
return to;
|
|
18
18
|
};
|
|
19
19
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
20
24
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
21
25
|
mod
|
|
22
26
|
));
|
|
@@ -41,9 +45,13 @@ var rehypePrettyCodeOptions = {
|
|
|
41
45
|
node.children = [{ type: "text", value: " " }];
|
|
42
46
|
}
|
|
43
47
|
},
|
|
48
|
+
// 允许高亮代码行
|
|
49
|
+
// 对于高亮的代码行,设置为 highlighted 样式表类
|
|
44
50
|
onVisitHighlightedLine(node) {
|
|
45
51
|
node.properties.className.push("highlighted");
|
|
46
52
|
},
|
|
53
|
+
// 允许高亮代码文字
|
|
54
|
+
// 对于高亮的代码文字,设置为 word 样式表类
|
|
47
55
|
onVisitHighlightedWord(node) {
|
|
48
56
|
node.properties.className = ["word"];
|
|
49
57
|
}
|
package/dist/index.js
CHANGED
package/dist/loader.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umijs/plugin-docs",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.13-canary.20250911.1",
|
|
4
4
|
"description": "@umijs/plugin-docs",
|
|
5
5
|
"homepage": "https://github.com/umijs/umi/tree/master/packages/plugin-docs#readme",
|
|
6
6
|
"bugs": "https://github.com/umijs/umi/issues",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"rehype-slug": "5.0.1",
|
|
34
34
|
"remark-gfm": "^3.0.1",
|
|
35
35
|
"tailwindcss": "^3.2.4",
|
|
36
|
-
"umi": "4.4.
|
|
36
|
+
"umi": "4.4.13-canary.20250911.1"
|
|
37
37
|
},
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public"
|