Skip to content

Commit e5f9b72

Browse files
committed
fix: disable highlight overlay tabindex
1 parent 840c0a7 commit e5f9b72

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/carta-md/src/lib/internal/highlight.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,8 @@ export async function loadHighlighter(options: HighlighterOptions): Promise<High
394394
// Single theme
395395
return manager.shikiHighlighter.codeToHtml(code, {
396396
lang: langHash,
397-
theme: themeHash as string
397+
theme: themeHash as string,
398+
tabindex: -1
398399
});
399400
} else {
400401
// Dual theme
@@ -403,7 +404,8 @@ export async function loadHighlighter(options: HighlighterOptions): Promise<High
403404
themes: {
404405
light: (themeHash as { light: string; dark: string }).light as string,
405406
dark: (themeHash as { light: string; dark: string }).dark as string
406-
}
407+
},
408+
tabindex: -1
407409
});
408410
}
409411
},

0 commit comments

Comments
 (0)