From e52b10c5a25a28d0b225edc36f37915e6147f8cc Mon Sep 17 00:00:00 2001 From: pheralb Date: Tue, 1 Oct 2024 09:25:30 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Update=20shiki=20theme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- svelte.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/svelte.config.js b/svelte.config.js index c0559f4..83dc39f 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -16,11 +16,11 @@ const mdsvexOptions = { highlight: { highlighter: async (code, lang = 'text') => { const highlighter = await getHighlighter({ - themes: ['vitesse-dark'], + themes: ['vesper'], langs: ['javascript', 'typescript', 'bash', 'json'] }); await highlighter.loadLanguage('javascript', 'typescript', 'bash'); - const html = escapeSvelte(highlighter.codeToHtml(code, { lang, theme: 'vitesse-dark' })); + const html = escapeSvelte(highlighter.codeToHtml(code, { lang, theme: 'vesper' })); return `{@html \`${html}\` }`; } }