⚙️ Add `html` lang to shiki config

This commit is contained in:
Pablo Hdez
2025-08-06 07:44:18 +00:00
parent 819e90ea4e
commit 41a8dff519
+2 -2
View File
@@ -31,9 +31,9 @@ const mdsvexOptions = {
highlighter: async (code, lang = 'text') => {
const highlighter = await getHighlighter({
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(
highlighter.codeToHtml(code, {
lang,