@aparte/plugin-shiki 0.32.1 → 1.0.0
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 +2 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -4,6 +4,8 @@ Syntax highlighting for [aparté](https://github.com/apartejs/aparte) via [shiki
|
|
|
4
4
|
Registers shiki as the highlight provider, backed by a **single lazily-created highlighter** — grammars
|
|
5
5
|
and the theme load on demand and are cached, so you never re-initialise per code block.
|
|
6
6
|
|
|
7
|
+
<img src="https://apartejs.dev/shots/shiki.png" alt="A TypeScript code block highlighted by Shiki, in an aparté chat" width="420">
|
|
8
|
+
|
|
7
9
|
```bash
|
|
8
10
|
npm install @aparte/plugin-shiki @aparte/core shiki
|
|
9
11
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aparte/plugin-shiki",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"homepage": "https://apartejs.dev/guides/markdown/",
|
|
5
5
|
"description": "Syntax highlighting for aparté via shiki — register it as the highlight provider (single lazily-created highlighter).",
|
|
6
6
|
"type": "module",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"node": ">=18"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@aparte/core": ">=0.
|
|
34
|
+
"@aparte/core": ">=1.0.0 <2.0.0",
|
|
35
35
|
"shiki": "^4.0.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"shiki": "^4.0.0",
|
|
41
41
|
"typescript": "^5.4.0",
|
|
42
42
|
"vite": "^6.0.0",
|
|
43
|
-
"@aparte/core": "0.
|
|
43
|
+
"@aparte/core": "1.0.0"
|
|
44
44
|
},
|
|
45
45
|
"keywords": [
|
|
46
46
|
"aparte",
|