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,
|
2024-12-17 12:59:36 +01:00
|
|
|
transformerNotationErrorLevel,
|
|
|
|
transformerNotationWordHighlight
|
2024-12-16 23:40:18 +01:00
|
|
|
} 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',
|
2024-12-17 12:59:36 +01:00
|
|
|
transformers: [
|
|
|
|
transformerNotationDiff(),
|
|
|
|
transformerNotationErrorLevel(),
|
|
|
|
transformerNotationWordHighlight()
|
|
|
|
]
|
2024-12-13 14:30:22 +01:00
|
|
|
}
|
|
|
|
})
|