@vmz/plugin-shiki 0.3.8 → 0.3.10
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 +12 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -22,6 +22,18 @@ It is especially useful for:
|
|
|
22
22
|
- tutorials that move between prose and real VMZ components;
|
|
23
23
|
- source browsers that need trustworthy language presentation.
|
|
24
24
|
|
|
25
|
+
## Install
|
|
26
|
+
|
|
27
|
+
`@vmz/plugin-shiki` resolves Shiki from the application. `shiki` (`>=3`) is a required peer dependency, not a
|
|
28
|
+
bundled dependency, so install it alongside the plugin:
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
pnpm add @vmz/plugin-shiki shiki
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
The default `vmz-textmate/shiki` path also needs `shiki/core`; installing `@shikijs/*` transitively through
|
|
35
|
+
`vmz-textmate` does not replace the application-level `shiki` install.
|
|
36
|
+
|
|
25
37
|
## Third-party TextMate grammar (VMZ-2)
|
|
26
38
|
|
|
27
39
|
By default the runtime loads `vmz-textmate/shiki`. For other languages (e.g. VOS), pass a peer adapter:
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
|
-
"@vmz/plugin": "0.3.
|
|
3
|
+
"@vmz/plugin": "0.3.10"
|
|
4
4
|
},
|
|
5
5
|
"description": "VMZ Shiki adapter - <Shiki> + code engine registration",
|
|
6
6
|
"devDependencies": {
|
|
7
7
|
"@types/node": "^22.15.0",
|
|
8
8
|
"shiki": "^3.12.2",
|
|
9
9
|
"typescript": "^5.8.3",
|
|
10
|
-
"vmz-textmate": "0.3.
|
|
10
|
+
"vmz-textmate": "0.3.10"
|
|
11
11
|
},
|
|
12
12
|
"engines": {
|
|
13
13
|
"node": ">=24.12.0"
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
},
|
|
62
62
|
"type": "module",
|
|
63
63
|
"types": "./dist/vmz.plugin.d.ts",
|
|
64
|
-
"version": "0.3.
|
|
64
|
+
"version": "0.3.10"
|
|
65
65
|
}
|