(lang: string)
| 72 | |
| 73 | // Check if a language is supported by tree-sitter for syntax highlighting |
| 74 | function isSupportedLanguage(lang: string): boolean { |
| 75 | const supported = ['js', 'jsx', 'ts', 'tsx', 'css', 'json']; |
| 76 | return supported.includes(lang.toLowerCase()); |
| 77 | } |
| 78 | |
| 79 | export function Code({ |
| 80 | children, |