Skip to content

Commit

Permalink
chore: update rehype plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
imranbarbhuiya committed Feb 8, 2024
1 parent 82fdeb5 commit b59bfc7
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 51 deletions.
2 changes: 1 addition & 1 deletion docs/components/index-page/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ export const IndexPage = () => (
</h3>
<p>
Performant and reliable build-time syntax highlighting powered by{' '}
<Link href="https://shiki.matsu.io">Shiki</Link>.
<Link href="https://shiki.style">Shiki</Link>.
</p>
</Feature>
<Feature index={3} href="/docs/guide/i18n">
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/docs/guide/syntax-highlighting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Callout } from 'nextra/components'

# Syntax Highlighting

Nextra uses [Shiki](https://shiki.matsu.io) to do syntax highlighting at build
Nextra uses [Shiki](https://shiki.style) to do syntax highlighting at build
time. It's very reliable and performant. For example, adding this in your
Markdown file:

Expand Down
2 changes: 1 addition & 1 deletion examples/docs/src/pages/advanced/code-highlighting.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Code Highlighting

`Nextra` uses [Shiki](https://shiki.matsu.io) and
`Nextra` uses [Shiki](https://shiki.style) and
[Rehype Pretty Code](https://github.com/FormidableLabs/prism-react-renderer) to
highlight the code blocks. This section covers how you can customze it.

Expand Down
6 changes: 3 additions & 3 deletions packages/nextra/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@
"@mdx-js/mdx": "^3.0.0",
"@mdx-js/react": "^3.0.0",
"@napi-rs/simple-git": "^0.1.9",
"@shikijs/twoslash": "^1.0.0",
"@theguild/remark-mermaid": "^0.0.5",
"@theguild/remark-npm2yarn": "0.3.0",
"better-react-mathjax": "^2.0.3",
Expand All @@ -134,15 +135,14 @@
"katex": "^0.16.9",
"p-limit": "^4.0.0",
"rehype-katex": "^7.0.0",
"rehype-pretty-code": "0.12.6",
"rehype-pretty-code": "0.13.0",
"rehype-raw": "^7.0.0",
"remark-frontmatter": "^5.0.0",
"remark-gfm": "^4.0.0",
"remark-math": "^6.0.0",
"remark-reading-time": "^2.0.1",
"remark-smartypants": "^2.1.0",
"shiki": "1.0.0-beta.5",
"@shikijs/twoslash": "1.0.0-beta.5",
"shiki": "^1.0.0",
"slash": "^5.1.0",
"title": "^3.5.3",
"unist-util-remove": "^4.0.0",
Expand Down
1 change: 0 additions & 1 deletion packages/nextra/src/server/rehype-plugins/rehype.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export const DEFAULT_REHYPE_PRETTY_CODE_OPTIONS: RehypePrettyCodeOptions = {
light: 'github-light',
dark: 'github-dark'
},
// @ts-expect-error wait for https://github.com/rehype-pretty/rehype-pretty-code/pull/172
getHighlighter(opts) {
return getHighlighter({
...opts,
Expand Down
83 changes: 39 additions & 44 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b59bfc7

Please sign in to comment.