From 48d7d7c7cf89a436f40c6064b495b66d66e8460a Mon Sep 17 00:00:00 2001 From: atomiks Date: Fri, 8 Dec 2023 19:11:06 +1100 Subject: [PATCH] feat: support latest shikiji (#132) --- package.json | 2 +- website/src/app/index.mdx | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index cecf4f9..c8bd3ad 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/website/src/app/index.mdx b/website/src/app/index.mdx index 03b6dd5..172a61f 100644 --- a/website/src/app/index.mdx +++ b/website/src/app/index.mdx @@ -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 > `rehype-pretty-code@0.10.1{:.string}`, which uses Shiki instead of Shikiji