chore: migrate to shiki v3
This commit is contained in:
parent
7d051518c0
commit
72150167fe
1 changed files with 2 additions and 2 deletions
|
|
@ -11,8 +11,8 @@ export function useHighlighter(lang: Lang): {
|
|||
} {
|
||||
if (!shikiImport) {
|
||||
shikiImport = import('shiki')
|
||||
.then(async ({ getHighlighter }) => {
|
||||
highlighter.value = await getHighlighter({
|
||||
.then(async ({ createHighlighter }) => {
|
||||
highlighter.value = await createHighlighter({
|
||||
themes: [
|
||||
'vitesse-dark',
|
||||
'vitesse-light',
|
||||
|
|
|
|||
Loading…
Reference in a new issue