@riebeckite/plugin-code-annotations 0.0.27 → 0.0.28
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_ja.md +6 -6
- package/dist/src/hast.d.ts +0 -1
- package/package.json +3 -3
package/README_ja.md
CHANGED
|
@@ -47,12 +47,12 @@ const unchanged = true;
|
|
|
47
47
|
|
|
48
48
|
## 公開API
|
|
49
49
|
|
|
50
|
-
- `codeAnnotations()` / `codeAnnotationsPlugin()
|
|
51
|
-
- `remarkCodeAnnotations()
|
|
52
|
-
- `rehypeCodeAnnotations()
|
|
53
|
-
- `collectCodeDiff(code)
|
|
54
|
-
- `serializeCodeDiff(plan)` / `deserializeCodeDiff(value)
|
|
55
|
-
- `encodeCodeDiffMeta(plan)` / `extractCodeDiffMeta(meta)
|
|
50
|
+
- `codeAnnotations()` / `codeAnnotationsPlugin()`:プラグインファクトリ
|
|
51
|
+
- `remarkCodeAnnotations()`:Markdown変換
|
|
52
|
+
- `rehypeCodeAnnotations()`:HTML変換
|
|
53
|
+
- `collectCodeDiff(code)`:差分マーカーとコード本体を分離
|
|
54
|
+
- `serializeCodeDiff(plan)` / `deserializeCodeDiff(value)`:行情報の変換
|
|
55
|
+
- `encodeCodeDiffMeta(plan)` / `extractCodeDiffMeta(meta)`:メタ情報の変換
|
|
56
56
|
- 型: `CodeDiffPlan`、`DiffMarker`
|
|
57
57
|
|
|
58
58
|
## 関連資料
|
package/dist/src/hast.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ export declare function visitElementTree(node: HastNode, visitor: (node: Element
|
|
|
6
6
|
export declare function getStringProperty(node: ElementNode, key: string): string | null;
|
|
7
7
|
export declare function getBooleanProperty(node: ElementNode, key: string): boolean;
|
|
8
8
|
export declare function hasProperty(node: ElementNode, key: string): boolean;
|
|
9
|
-
export declare function getClassNameList(node: ElementNode): string[];
|
|
10
9
|
export declare function mergeClassName(current: unknown, next: string): string;
|
|
11
10
|
export declare function getDataMeta(node: ElementNode | null | undefined): string | null;
|
|
12
11
|
export declare function getTextContent(node: HastNode): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riebeckite/plugin-code-annotations",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.28",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@riebeckite/core": "0.0.
|
|
17
|
+
"@riebeckite/core": "0.0.28"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"tsx": "^4.22.4",
|
|
21
|
-
"@riebeckite/test": "0.0.
|
|
21
|
+
"@riebeckite/test": "0.0.28"
|
|
22
22
|
},
|
|
23
23
|
"publishConfig": {
|
|
24
24
|
"access": "public"
|