From dc43654b17348aee8a7372633b1b9bca4d7aa27a Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Fri, 28 Jun 2024 16:43:12 +0200 Subject: [PATCH] Add reference to `rehype-starry-night` --- readme.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index 11dbc4b..bfa5eac 100644 --- a/readme.md +++ b/readme.md @@ -65,6 +65,10 @@ or any place where you want to talk about JavaScript-y code, and want to improve the experience of your readers by showing them more info about the code. +You can combine this package with +[`rehype-starry-night`][github-rehype-starry-night]. +That applies syntax highlighting with `starry-night` to all code. + If you are not using remark or rehype, you can instead use [`twoslash`][twoslash] directly. If you don’t care for [`starry-night`][github-starry-night], @@ -365,8 +369,8 @@ exploit it. ## Related -* [`rehype-highlight`](https://github.com/rehypejs/rehype-highlight) - — highlight code blocks +* [`rehype-starry-night`](https://github.com/rehypejs/rehype-starry-night) + — apply syntax highlighting with `starry-night` to all code ## Contribute @@ -422,6 +426,8 @@ abide by its terms. [github-rehype]: https://github.com/rehypejs/rehype +[github-rehype-starry-night]: https://github.com/rehypejs/rehype-starry-night + [github-remark-parse]: https://github.com/remarkjs/remark/tree/main/packages/remark-parse [github-remark-rehype]: https://github.com/remarkjs/remark-rehype