diff options
author | Heiner Lohaus <hlohaus@users.noreply.github.com> | 2024-01-02 01:03:39 +0100 |
---|---|---|
committer | Heiner Lohaus <hlohaus@users.noreply.github.com> | 2024-01-02 01:03:39 +0100 |
commit | 685aeff5ef5552413caf4f9fc7b9e3a77d04c9e4 (patch) | |
tree | 6cd09fb2eb4c144e28a82759a2a9a2fa7f30d311 /g4f | |
parent | Fix DeepInfra Provider (diff) | |
download | gpt4free-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 |
Diffstat (limited to 'g4f')
-rw-r--r-- | g4f/gui/client/js/chat.v1.js | 4 |
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 () => { |