feat(conf): shiki config + layouts
This commit is contained in:
parent
84e77c2b93
commit
a486d6982f
7 changed files with 55 additions and 40 deletions
|
@ -1,11 +1,14 @@
|
|||
import type { ShikiSetupReturn } from '@slidev/types'
|
||||
import { defineShikiSetup } from '@slidev/types'
|
||||
|
||||
import {
|
||||
transformerNotationDiff,
|
||||
transformerNotationErrorLevel
|
||||
} from '@shikijs/transformers'
|
||||
|
||||
export default defineShikiSetup((): ShikiSetupReturn => {
|
||||
return {
|
||||
themes: {
|
||||
dark: 'vitesse-dark',
|
||||
light: 'vitesse-light'
|
||||
}
|
||||
theme: 'one-dark-pro',
|
||||
transformers: [transformerNotationDiff(), transformerNotationErrorLevel()]
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue