File tree 9 files changed +62
-51
lines changed
examples/docs/src/pages/advanced
9 files changed +62
-51
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' nextra ' : minor
3
+ ---
4
+
5
+ change to shiki again
Original file line number Diff line number Diff line change @@ -331,7 +331,7 @@ export const IndexPage = () => (
331
331
</ h3 >
332
332
< p >
333
333
Performant and reliable build-time syntax highlighting powered by{ ' ' }
334
- < Link href = "https://shiki.matsu.io " > Shiki</ Link > .
334
+ < Link href = "https://shiki.style " > Shiki</ Link > .
335
335
</ p >
336
336
</ Feature >
337
337
< Feature index = { 3 } href = "/docs/guide/i18n" >
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ Nextra is powered by these incredible open source projects:
26
26
- https://pnpm.io
27
27
- https://tailwindcss.com
28
28
- https://github.com/pacocoursey/next-themes
29
- - https://github.com/antfu/shikiji
29
+ - https://github.com/shikijs/shiki
30
30
- https://github.com/nextapps-de/flexsearch
31
31
- https://github.com/atomiks/rehype-pretty-code
32
32
- https://github.com/Brooooooklyn/simple-git
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { Callout } from 'nextra/components'
3
3
4
4
# Syntax Highlighting
5
5
6
- Nextra uses [ Shiki] ( https://shiki.matsu.io ) to do syntax highlighting at build
6
+ Nextra uses [ Shiki] ( https://shiki.style ) to do syntax highlighting at build
7
7
time. It's very reliable and performant. For example, adding this in your
8
8
Markdown file:
9
9
Original file line number Diff line number Diff line change 1
1
# Code Highlighting
2
2
3
- ` Nextra ` uses [ Shiki] ( https://shiki.matsu.io ) and
3
+ ` Nextra ` uses [ Shiki] ( https://shiki.style ) and
4
4
[ Rehype Pretty Code] ( https://github.com/FormidableLabs/prism-react-renderer ) to
5
5
highlight the code blocks. This section covers how you can customze it.
6
6
Original file line number Diff line number Diff line change 121
121
"@mdx-js/mdx" : " ^3.0.0" ,
122
122
"@mdx-js/react" : " ^3.0.0" ,
123
123
"@napi-rs/simple-git" : " ^0.1.9" ,
124
+ "@shikijs/twoslash" : " ^1.0.0" ,
124
125
"@theguild/remark-mermaid" : " ^0.0.5" ,
125
126
"@theguild/remark-npm2yarn" : " 0.3.0" ,
126
127
"better-react-mathjax" : " ^2.0.3" ,
134
135
"katex" : " ^0.16.9" ,
135
136
"p-limit" : " ^4.0.0" ,
136
137
"rehype-katex" : " ^7.0.0" ,
137
- "rehype-pretty-code" : " 0.12.6 " ,
138
+ "rehype-pretty-code" : " 0.13.0 " ,
138
139
"rehype-raw" : " ^7.0.0" ,
139
140
"remark-frontmatter" : " ^5.0.0" ,
140
141
"remark-gfm" : " ^4.0.0" ,
141
142
"remark-math" : " ^6.0.0" ,
142
143
"remark-reading-time" : " ^2.0.1" ,
143
144
"remark-smartypants" : " ^2.1.0" ,
144
- "shikiji" : " ^0.10.2" ,
145
- "shikiji-twoslash" : " ^0.10.2" ,
145
+ "shiki" : " ^1.0.0" ,
146
146
"slash" : " ^5.1.0" ,
147
147
"title" : " ^3.5.3" ,
148
148
"unist-util-remove" : " ^4.0.0" ,
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import path from 'node:path'
2
2
import type { ProcessorOptions } from '@mdx-js/mdx'
3
3
import { createProcessor } from '@mdx-js/mdx'
4
4
import type { Processor } from '@mdx-js/mdx/lib/core'
5
+ import { rendererRich , transformerTwoslash } from '@shikijs/twoslash'
5
6
import { remarkMermaid } from '@theguild/remark-mermaid'
6
7
import { remarkNpm2Yarn } from '@theguild/remark-npm2yarn'
7
8
import type { Program } from 'estree'
@@ -13,7 +14,6 @@ import remarkGfm from 'remark-gfm'
13
14
import remarkMath from 'remark-math'
14
15
import remarkReadingTime from 'remark-reading-time'
15
16
import remarkSmartypants from 'remark-smartypants'
16
- import { rendererRich , transformerTwoslash } from 'shikiji-twoslash'
17
17
import type { Pluggable , Plugin } from 'unified'
18
18
import type {
19
19
FrontMatter ,
Original file line number Diff line number Diff line change 1
1
import type { Element } from 'hast'
2
2
import type { Options as RehypePrettyCodeOptions } from 'rehype-pretty-code'
3
- import { bundledLanguages , getHighlighter } from 'shikiji '
3
+ import { bundledLanguages , getHighlighter } from 'shiki '
4
4
import type { Plugin } from 'unified'
5
5
import { visit } from 'unist-util-visit'
6
6
You can’t perform that action at this time.
0 commit comments