diff --git a/src/components/chat/Chat.vue b/src/components/chat/Chat.vue index 8b1d3f0..e50c3e0 100644 --- a/src/components/chat/Chat.vue +++ b/src/components/chat/Chat.vue @@ -254,7 +254,7 @@ type Prompt = { }; const isMobile = useIsMobile(); -const userStore = useUserStore(); +// const userStore = useUserStore(); const chatStore = useChatStore(); const compositionStart = ref(false); const inputContainer: any = ref(null); diff --git a/src/components/chat/MessageList.vue b/src/components/chat/MessageList.vue index 34767ca..acdb608 100644 --- a/src/components/chat/MessageList.vue +++ b/src/components/chat/MessageList.vue @@ -135,10 +135,11 @@ import config from "@/config/config"; const mdIt = markdownIt(); const mdInited = ref(true); -const unsupportedLanguages = ["assembly"]; +const unsupportedLanguages = ["assembly", "blade"]; mdIt.options.highlight = function (str: string, lang: string) { if (!lang || unsupportedLanguages.includes(lang)) { - return str; + // return str; + lang = "text" } return hljs.highlight(str, { language: lang }).value;