@riebeckite/plugin-code-enhance 0.0.21 → 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/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # @riebeckite/plugin-code-enhance
2
2
 
3
+ <!-- Generated from docs/docs/plugins/code-enhance.md. Edit the canonical documentation in docs/docs/plugins and run `pnpm docs:sync`. -->
4
+
3
5
  Enhanced code blocks: Shiki highlighting plus a header with copy, wrap, and
4
6
  collapse controls.
5
7
 
@@ -87,5 +89,4 @@ wrap, and collapse buttons.
87
89
 
88
90
  ## See also
89
91
 
90
- - [Plugin guide](../../../docs/docs/reference/plugin-api.md)
91
-
92
+ - [Plugin guide](https://github.com/Rerurate514/riebeckite/blob/main/docs/docs/reference/plugin-api.md)
package/README_ja.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # @riebeckite/plugin-code-enhance
2
2
 
3
+ <!-- Generated from docs/docs/plugins/code-enhance.ja.md. Edit the canonical documentation in docs/docs/plugins and run `pnpm docs:sync`. -->
4
+
3
5
  Shiki によるシンタックスハイライトへ、コピー、折り返し、折りたたみなどの操作を加えるプラグインです。
4
6
 
5
7
  [English](./README.md)
@@ -58,4 +60,4 @@ export default defineConfig({
58
60
 
59
61
  ## 関連資料
60
62
 
61
- - [プラグインシステム](../../../docs/docs/reference/plugin-api.ja.md)
63
+ - [プラグインシステム](https://github.com/Rerurate514/riebeckite/blob/main/docs/docs/reference/plugin-api.ja.md)
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: [createStyleAsset("code-enhance")],
436
+ assets: [
437
+ createStyleAsset(
438
+ "code-enhance",
439
+ "@riebeckite/plugin-code-enhance/style.css"
440
+ )
441
+ ],
437
442
  clientEntries: [
438
- createClientEntry("code-enhance", "initCodeEnhance", {
439
- copyLabel: options.copyLabel ?? DEFAULT_COPY_LABEL,
440
- copiedLabel: options.copiedLabel ?? DEFAULT_COPIED_LABEL
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.21",
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.21"
26
+ "@riebeckite/core": "0.0.23"
27
27
  },
28
28
  "devDependencies": {
29
29
  "tsx": "^4.22.4"