mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-11-24 01:36:37 +03:00
Fix markdown replace
This commit is contained in:
parent
ae46cf72d4
commit
685aeff5ef
@ -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 () => {
|
||||
|
Loading…
Reference in New Issue
Block a user