From 03555c9be0268ceb942948111707408c5f073b31 Mon Sep 17 00:00:00 2001 From: Charlotte Som Date: Wed, 26 Feb 2025 14:04:54 +0000 Subject: [PATCH] add hljs support for typescript --- client/response.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/response.tsx b/client/response.tsx index 6697fa9..ffb3562 100644 --- a/client/response.tsx +++ b/client/response.tsx @@ -2,10 +2,12 @@ import hljs from "npm:highlight.js/lib/core"; import javascript from "npm:highlight.js/lib/languages/javascript"; import python from "npm:highlight.js/lib/languages/python"; import rust from "npm:highlight.js/lib/languages/rust"; +import typescript from "npm:highlight.js/lib/languages/typescript"; hljs.registerLanguage("javascript", javascript); hljs.registerLanguage("rust", rust); hljs.registerLanguage("python", python); +hljs.registerLanguage("typescript", typescript); export class ChatResponse { element = (
);