Skip to content

Commit 68b1bcc

Browse files
authored
fix: workaround for markdown embedded code highlighting (#4564)
1 parent f6243d1 commit 68b1bcc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/.vitepress/config/shared.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ export const shared = defineConfig({
2424

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

0 commit comments

Comments
 (0)