Core: Fix langAlias not being passed to Shiki rehype plugin

This commit is contained in:
Fuma Nama
2025-08-27 17:15:04 +08:00
parent 22371ce67c
commit e776ee5201
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'fumadocs-core': patch
---
Fix `langAlias` not being passed to Shiki rehype plugin
@@ -134,6 +134,7 @@ export function rehypeCode(
langs:
options.langs ??
(options.lazy ? ['ts', 'tsx'] : Object.keys(bundledLanguages)),
langAlias: options.langAlias,
},
);