From fedd28c41281d25ae78dbb92988f44525a3c46f2 Mon Sep 17 00:00:00 2001 From: Jeroen Claassens Date: Thu, 11 Jun 2020 22:41:32 +0200 Subject: [PATCH] feat(core): support TSX syntax --- README.md | 2 +- packages/core/README.md | 2 +- packages/core/src/components/syntax-highlighter.tsx | 1 + packages/react/README.md | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5130839..6eb9d81 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ To limit the size of this library a selection has been made from all langauges s   `nginx`, `objectivec`, `powershell`, `python`, `ruby`, `rust`, `sass`, `scala`,   -`scss`, `sql`, `swift`, `vim`, `visual-basic`, `wasm`, `wiki`, `yaml` +`scss`, `sql`, `swift`, `tsx`, `vim`, `visual-basic`, `wasm`, `wiki`, `yaml` diff --git a/packages/core/README.md b/packages/core/README.md index 6ddcae5..800a39d 100644 --- a/packages/core/README.md +++ b/packages/core/README.md @@ -135,7 +135,7 @@ To limit the size of this library a selection has been made from all langauges s   `nginx`, `objectivec`, `powershell`, `python`, `ruby`, `rust`, `sass`, `scala`,   -`scss`, `sql`, `swift`, `vim`, `visual-basic`, `wasm`, `wiki`, `yaml` +`scss`, `sql`, `swift`, `tsx`, `vim`, `visual-basic`, `wasm`, `wiki`, `yaml` diff --git a/packages/core/src/components/syntax-highlighter.tsx b/packages/core/src/components/syntax-highlighter.tsx index 7287613..229381f 100644 --- a/packages/core/src/components/syntax-highlighter.tsx +++ b/packages/core/src/components/syntax-highlighter.tsx @@ -46,6 +46,7 @@ import 'prismjs/components/prism-scala.min.js'; import 'prismjs/components/prism-scss.min.js'; import 'prismjs/components/prism-sql.min.js'; import 'prismjs/components/prism-swift.min.js'; +import 'prismjs/components/prism-tsx.min.js'; import 'prismjs/components/prism-typescript.min.js'; import 'prismjs/components/prism-vim.min.js'; import 'prismjs/components/prism-visual-basic.min.js'; diff --git a/packages/react/README.md b/packages/react/README.md index 301805e..a38529b 100644 --- a/packages/react/README.md +++ b/packages/react/README.md @@ -86,7 +86,7 @@ To limit the size of this library a selection has been made from all langauges s   `nginx`, `objectivec`, `powershell`, `python`, `ruby`, `rust`, `sass`, `scala`,   -`scss`, `sql`, `swift`, `vim`, `visual-basic`, `wasm`, `wiki`, `yaml` +`scss`, `sql`, `swift`, `tsx`, `vim`, `visual-basic`, `wasm`, `wiki`, `yaml`