2024-12-13 14:30:22 +01:00
|
|
|
import type { ShikiSetupReturn } from '@slidev/types'
|
|
|
|
import { defineShikiSetup } from '@slidev/types'
|
|
|
|
|
2024-12-16 23:40:18 +01:00
|
|
|
import {
|
|
|
|
transformerNotationDiff,
|
|
|
|
transformerNotationErrorLevel
|
|
|
|
} from '@shikijs/transformers'
|
|
|
|
|
2024-12-13 14:30:22 +01:00
|
|
|
export default defineShikiSetup((): ShikiSetupReturn => {
|
|
|
|
return {
|
2024-12-16 23:40:18 +01:00
|
|
|
theme: 'one-dark-pro',
|
|
|
|
transformers: [transformerNotationDiff(), transformerNotationErrorLevel()]
|
2024-12-13 14:30:22 +01:00
|
|
|
}
|
|
|
|
})
|