From d031c8ce86f2e828f3d9a4c1ee784b2816069025 Mon Sep 17 00:00:00 2001 From: Christian Rute Date: Mon, 18 Nov 2024 17:48:18 +0100 Subject: [PATCH] render markdown in old chats --- client/js/chat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/js/chat.js b/client/js/chat.js index cedaf88..a024a7e 100644 --- a/client/js/chat.js +++ b/client/js/chat.js @@ -130,7 +130,7 @@ function loadChatHistory(chatId) { chatHistory.forEach(entry => { const messageElement = document.createElement('div'); messageElement.classList.add('chat-message', entry.role); - messageElement.innerText = entry.content; + messageElement.innerHTML = renderMarkdown(entry.content); chatBox.prepend(messageElement); }); }