Skip to content

Commit

Permalink
Add reference to rehype-starry-night
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jun 28, 2024
1 parent eb42077 commit dc43654
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit dc43654

Please sign in to comment.