Skip to content

Commit

Permalink
remove instruction
Browse files Browse the repository at this point in the history
removed replace() that removes **...**
  • Loading branch information
PandorasActorMS committed Jan 10, 2024
1 parent 7f06cdc commit 897cd33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interface.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ async function processStream(stream) {

if (done) {
console.log('Stream closed.');
document.querySelector(".message:last-child").querySelector(".message-text").innerHTML = document.querySelector(".message:last-child").querySelector(".message-text").innerHTML.replace(/```([\s\S]+?)```/g, '<pre><code>$1</code></pre>').replace(/\*\*.*?\*\*/g, '');;
document.querySelector(".message:last-child").querySelector(".message-text").innerHTML = document.querySelector(".message:last-child").querySelector(".message-text").innerHTML.replace(/```([\s\S]+?)```/g, '<pre><code>$1</code></pre>');
//hljs.highlightAll();
document.querySelector(".message:last-child").querySelector(".message-text").querySelectorAll('pre code').forEach((block) => {
hljs.highlightElement(block);
Expand Down

0 comments on commit 897cd33

Please sign in to comment.