@vortexlabs/kirari-rehype 1.0.0 → 1.0.1
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/CHANGELOG.md +6 -0
- package/README.md +5 -3
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -8,6 +8,8 @@ Run it while building your content to send highlighted HTML and CSS to the
|
|
|
8
8
|
browser, with no client-side highlighter. The integration is separate from the
|
|
9
9
|
core package and does not change its bundle.
|
|
10
10
|
|
|
11
|
+
[Documentation](https://kirari.sh/docs/) · [Playground](https://kirari.sh/playground/)
|
|
12
|
+
|
|
11
13
|
## Install
|
|
12
14
|
|
|
13
15
|
```sh
|
|
@@ -15,7 +17,6 @@ npm install @vortexlabs/kirari @vortexlabs/kirari-rehype
|
|
|
15
17
|
```
|
|
16
18
|
|
|
17
19
|
The plugin uses your application's Kirari through a peer dependency.
|
|
18
|
-
Inside this workspace, use `workspace:*` for both packages instead.
|
|
19
20
|
|
|
20
21
|
## Markdown to HTML
|
|
21
22
|
|
|
@@ -74,7 +75,7 @@ and children.
|
|
|
74
75
|
## Register only what you need
|
|
75
76
|
|
|
76
77
|
No languages are registered by default. Import each definition and pass it in
|
|
77
|
-
`languages`. Labels resolve through [Kirari's language registry](
|
|
78
|
+
`languages`. Labels resolve through [Kirari's language registry](https://github.com/vortexkit/kirari/blob/main/docs/language-integration.md),
|
|
78
79
|
so `js` selects registered JavaScript and `ts` selects registered TypeScript.
|
|
79
80
|
There is no language detection or automatic grammar loading. JSX and TSX need
|
|
80
81
|
their own definitions.
|
|
@@ -122,6 +123,7 @@ The `lineClassName` callback can append your own classes:
|
|
|
122
123
|
|
|
123
124
|
```ts
|
|
124
125
|
import type { Options } from '@vortexlabs/kirari-rehype'
|
|
126
|
+
import { javascript } from '@vortexlabs/kirari/languages/javascript'
|
|
125
127
|
|
|
126
128
|
const options = {
|
|
127
129
|
languages: [javascript],
|
|
@@ -171,4 +173,4 @@ remain trusted application code.
|
|
|
171
173
|
|
|
172
174
|
## License
|
|
173
175
|
|
|
174
|
-
[MIT](LICENSE) © 2026 [Ugi](https://ugi.dev)
|
|
176
|
+
[MIT](https://github.com/vortexkit/kirari/blob/main/packages/rehype/LICENSE) © 2026 [Ugi](https://ugi.dev)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vortexlabs/kirari-rehype",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Kirari syntax highlighting for Rehype and MDX.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"rehype",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
],
|
|
11
11
|
"author": "Ugi (https://ugi.dev)",
|
|
12
12
|
"license": "MIT",
|
|
13
|
-
"homepage": "https://kirari.
|
|
13
|
+
"homepage": "https://kirari.sh",
|
|
14
14
|
"repository": {
|
|
15
15
|
"type": "git",
|
|
16
16
|
"url": "git+https://github.com/vortexkit/kirari.git",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@mdx-js/mdx": "^3.1.1",
|
|
48
48
|
"@types/react": "^19.3.0",
|
|
49
49
|
"@types/react-dom": "^19.3.0",
|
|
50
|
-
"@vortexlabs/kirari": "1.0.
|
|
50
|
+
"@vortexlabs/kirari": "1.0.1",
|
|
51
51
|
"react": "^19.3.1",
|
|
52
52
|
"react-dom": "^19.3.1",
|
|
53
53
|
"rehype-sanitize": "^6.0.0",
|