Skip to content

Commit 44569f6

Browse files
authored
Disable PrismJS (#1714)
1 parent 69b52ba commit 44569f6

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.vuepress/config.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,15 @@ export default defineUserConfig({
103103
handleImportPath: (str) =>
104104
str.replace(/^@snippets/, path.resolve(__dirname, '../snippets')),
105105
},
106+
highlighter: 'shiki',
106107
},
107108
// without this, we attempt to prefetch the whole site 😬
108109
shouldPrefetch: false,
109110
colorMode: 'auto',
110111
theme: defaultTheme({
112+
markdown: {
113+
highlighter: 'shiki',
114+
},
111115
repo: 'nushell/nushell',
112116
repoLabel: 'GitHub',
113117
editLinks: true,
@@ -173,9 +177,7 @@ export default defineUserConfig({
173177
},
174178
},
175179
themePlugins: {
176-
prismjs: {
177-
lineNumbers: 10,
178-
},
180+
prismjs: false,
179181
},
180182
}),
181183
plugins: [
@@ -190,9 +192,10 @@ export default defineUserConfig({
190192
},
191193
}),
192194
shikiPlugin({
193-
theme: 'dark-plus',
195+
theme: 'vitesse-dark',
194196
lineNumbers: 10,
195197
langs: [
198+
'csv',
196199
'nushell',
197200
'rust',
198201
'bash',

0 commit comments

Comments
 (0)