@riebeckite/plugin-code-enhance 0.0.22 → 0.0.23
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/index.js +15 -5
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -433,12 +433,22 @@ function codeEnhance(options = {}) {
|
|
|
433
433
|
extendHtmlPipeline: (pipeline) => {
|
|
434
434
|
pipeline.use(rehypeCodeEnhance, options);
|
|
435
435
|
},
|
|
436
|
-
assets: [
|
|
436
|
+
assets: [
|
|
437
|
+
createStyleAsset(
|
|
438
|
+
"code-enhance",
|
|
439
|
+
"@riebeckite/plugin-code-enhance/style.css"
|
|
440
|
+
)
|
|
441
|
+
],
|
|
437
442
|
clientEntries: [
|
|
438
|
-
createClientEntry(
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
443
|
+
createClientEntry(
|
|
444
|
+
"code-enhance",
|
|
445
|
+
"@riebeckite/plugin-code-enhance/client",
|
|
446
|
+
"initCodeEnhance",
|
|
447
|
+
{
|
|
448
|
+
copyLabel: options.copyLabel ?? DEFAULT_COPY_LABEL,
|
|
449
|
+
copiedLabel: options.copiedLabel ?? DEFAULT_COPIED_LABEL
|
|
450
|
+
}
|
|
451
|
+
)
|
|
442
452
|
]
|
|
443
453
|
});
|
|
444
454
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riebeckite/plugin-code-enhance",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.23",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"rehype-pretty-code": "^0.14.1",
|
|
25
25
|
"shiki": "^3.13.0",
|
|
26
|
-
"@riebeckite/core": "0.0.
|
|
26
|
+
"@riebeckite/core": "0.0.23"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"tsx": "^4.22.4"
|