Skip to content

Commit

Permalink
fix: workaround for markdown embedded code highlighting (#4564)
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu authored Feb 15, 2025
1 parent f6243d1 commit 68b1bcc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/.vitepress/config/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ export const shared = defineConfig({

markdown: {
math: true,
// Load these languages ahead of time for embedded code highlighting
// TODO: remove this when Shiki fixes markdown embedded language loading
languages: ['js', 'ts', 'html'],
codeTransformers: [
// We use `[!!code` in demo to prevent transformation, here we revert it back.
{
Expand Down

0 comments on commit 68b1bcc

Please sign in to comment.