pub fn is_supported_language(language: &str) -> boolExpand description
Names we accept from the editor’s language prop.
The matching is permissive and case-insensitive. Canonical
targets are in normalize_language. In particular:
rust/rs→ Rusttypescript/ts→ TypeScriptjavascript/js→ JavaScriptjsx/tsx→ JavaScript (bundle-size fallback; the dedicated tree-sitter-tsx grammar would add ~1 MB uncompressed, so we accept losing JSX tag/attribute granularity and TypeScript type syntax for.tsxsnippets)python/py,json,bash/sh/shell/zsh,html/htm,css,markdown/md,sql+ dialect aliases → their respective grammars
Returns false for unsupported languages — the caller should
fall back to rendering the code unstyled.