Skip to content

Commit 233897d

Browse files
Add tsx syntax highlight support
1 parent 0f4b610 commit 233897d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/hooks/useSyntaxHighlightingExtension.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export const useSyntaxHighlightingExtension = (language: string, view: EditorVie
1111
view ?? null,
1212
() => {
1313
switch (language.toLowerCase()) {
14+
case "tsx":
1415
case "typescript":
1516
case "javascript":
1617
return javascript({

0 commit comments

Comments
 (0)