Skip to content

Commit

Permalink
feat: support latest shikiji (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
atomiks authored Dec 8, 2023
1 parent 568874c commit 48d7d7c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"repository": "github:atomiks/rehype-pretty-code",
"homepage": "https://rehype-pretty-code.netlify.app",
"peerDependencies": {
"shikiji": "0.7.x"
"shikiji": "^0.7.0 || ^0.8.0"
},
"devDependencies": {
"@babel/core": "^7.22.5",
Expand Down
5 changes: 3 additions & 2 deletions website/src/app/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,11 @@ Inline ANSI: `> Local: http://localhost:3000/{:ansi}`
Install via your terminal:

```shell
npm install rehype-pretty-code shikiji@^0.7.0
npm install rehype-pretty-code shikiji@^0.8.0
```

This package is ESM-only and currently supports `shikiji{:.string}` v0.7.x.
This package is ESM-only and currently supports `shikiji{:.string}`
`^0.7.0 || ^0.8.0{:.string}`.

> **Note:** If you need `CJS` support you should use
> `[email protected]{:.string}`, which uses Shiki instead of Shikiji
Expand Down

0 comments on commit 48d7d7c

Please sign in to comment.