Skip to content

Commit 1c074fe

Browse files
committed
-1 tabindex for code blocks
1 parent c91f5eb commit 1c074fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

svelte.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const config = {
2727
},
2828
highlight: {
2929
highlighter: async (code, lang = "text") => {
30-
const html = escapeSvelte(highlighter.codeToHtml(code, { lang, theme }));
30+
const html = escapeSvelte(highlighter.codeToHtml(code, { lang, theme, tabindex: -1 }));
3131
return `{@html \`${html}\` }`;
3232
},
3333
},

0 commit comments

Comments
 (0)