We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b202cb commit 04b6773Copy full SHA for 04b6773
.vuepress/config.js
@@ -192,8 +192,26 @@ export default defineUserConfig({
192
},
193
}),
194
shikiPlugin({
195
- theme: 'dark-plus',
+ themes: {
196
+ dark: 'dark-plus',
197
+ vitessedark: 'vitesse-dark', // pre-load vitesse-dark for ansi code blocks
198
+ },
199
lineNumbers: 10,
200
+ transformers: [
201
+ {
202
+ preprocess(code, options) {
203
+ if (options.lang == 'ansi') {
204
+ this.options.defaultColor = 'vitessedark';
205
+ // this doesn't work at the top-level for some reason
206
+ this.options.colorReplacements = {
207
+ // make vitesse-dark background color the same as dark-plus
208
+ '#121212': '#1e1e1e',
209
+ };
210
+ }
211
+ return code;
212
213
214
+ ],
215
langs: [
216
'csv',
217
'nushell',
0 commit comments