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); }); }