Patch changes
- 94d0c22
Fix language alias normalization in ShikiProvider
- Add
normalizeLanguage()function that maps common language aliases (js, ts, sh, yml, py, md, gql) to their canonical SupportedLanguage names - Normalize language aliases in
ShikiProviderwhen preloading grammars, so passing['js', 'ts']works the same as['javascript', 'typescript'] - Normalize language aliases in
highlight()hook at runtime, so code fences usingjsortshighlight correctly without warnings - Export
normalizeLanguagefrom@cloudflare/kumo/codefor consumers who need to normalize aliases themselves - Intentionally omit
mdxalias since MDX has a distinct grammar that would lose JSX highlighting if mapped tomarkdown
- Add