render markdown in old chats
This commit is contained in:
parent
bf9e076f3e
commit
d031c8ce86
@ -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);
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user