mirror of
https://github.com/pheralb/svgl.git
synced 2025-02-06 06:58:04 +08:00
🎨 Update shiki theme
This commit is contained in:
parent
eaadc060c8
commit
e52b10c5a2
@ -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}\` }`;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user