mirror of
https://github.com/pheralb/svgl.git
synced 2025-12-29 08:01:36 +08:00
⚙️ Add `html` lang to shiki config
This commit is contained in:
+2
-2
@@ -31,9 +31,9 @@ const mdsvexOptions = {
|
|||||||
highlighter: async (code, lang = 'text') => {
|
highlighter: async (code, lang = 'text') => {
|
||||||
const highlighter = await getHighlighter({
|
const highlighter = await getHighlighter({
|
||||||
themes: ['github-light', 'github-dark'],
|
themes: ['github-light', 'github-dark'],
|
||||||
langs: ['javascript', 'typescript', 'bash', 'json']
|
langs: ['javascript', 'typescript', 'bash', 'json', 'html']
|
||||||
});
|
});
|
||||||
await highlighter.loadLanguage('javascript', 'typescript', 'bash');
|
await highlighter.loadLanguage('javascript', 'typescript', 'bash', 'html');
|
||||||
const html = escapeSvelte(
|
const html = escapeSvelte(
|
||||||
highlighter.codeToHtml(code, {
|
highlighter.codeToHtml(code, {
|
||||||
lang,
|
lang,
|
||||||
|
|||||||
Reference in New Issue
Block a user