mirror of https://github.com/xtekky/gpt4free.git
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