Skip to content

Commit

Permalink
Remove tabindex from Shiki
Browse files Browse the repository at this point in the history
  • Loading branch information
pepelsbey committed Nov 9, 2024
1 parent 81aa9ee commit a68415b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions eleventy.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,16 @@ const markdown = new markdownIt({ html: true }).use(
await shikiHighlight({
defaultColor: false,
themes: {
dark: `github-dark`,
light: `github-light`,
dark: 'github-dark',
light: 'github-light',
},
transformers: [
{
pre(node) {
delete node.properties.tabindex;
},
},
],
}),
);

Expand Down

0 comments on commit a68415b

Please sign in to comment.