From 68b1bcc680e2d7b3b26c8fe2a26e823b00dc7077 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Sun, 16 Feb 2025 00:24:40 +0800 Subject: [PATCH] fix: workaround for markdown embedded code highlighting (#4564) --- docs/.vitepress/config/shared.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/.vitepress/config/shared.ts b/docs/.vitepress/config/shared.ts index 1f4961d2..26ba1292 100644 --- a/docs/.vitepress/config/shared.ts +++ b/docs/.vitepress/config/shared.ts @@ -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. {