summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHeiner Lohaus <hlohaus@users.noreply.github.com>2024-01-02 01:03:39 +0100
committerHeiner Lohaus <hlohaus@users.noreply.github.com>2024-01-02 01:03:39 +0100
commit685aeff5ef5552413caf4f9fc7b9e3a77d04c9e4 (patch)
tree6cd09fb2eb4c144e28a82759a2a9a2fa7f30d311
parentFix DeepInfra Provider (diff)
downloadgpt4free-685aeff5ef5552413caf4f9fc7b9e3a77d04c9e4.tar
gpt4free-685aeff5ef5552413caf4f9fc7b9e3a77d04c9e4.tar.gz
gpt4free-685aeff5ef5552413caf4f9fc7b9e3a77d04c9e4.tar.bz2
gpt4free-685aeff5ef5552413caf4f9fc7b9e3a77d04c9e4.tar.lz
gpt4free-685aeff5ef5552413caf4f9fc7b9e3a77d04c9e4.tar.xz
gpt4free-685aeff5ef5552413caf4f9fc7b9e3a77d04c9e4.tar.zst
gpt4free-685aeff5ef5552413caf4f9fc7b9e3a77d04c9e4.zip
-rw-r--r--g4f/gui/client/js/chat.v1.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/g4f/gui/client/js/chat.v1.js b/g4f/gui/client/js/chat.v1.js
index 638ce0ac..a335a3cc 100644
--- a/g4f/gui/client/js/chat.v1.js
+++ b/g4f/gui/client/js/chat.v1.js
@@ -20,7 +20,9 @@ message_input.addEventListener("focus", () => {
});
const markdown_render = (content) => {
- return markdown.render(content).replace("<a href=", '<a target="_blank" href=').replace('<code>', '<code class="language-plaintext">')
+ return markdown.render(content)
+ .replaceAll("<a href=", '<a target="_blank" href=')
+ .replaceAll('<code>', '<code class="language-plaintext">')
}
const delete_conversations = async () => {