replaced innerText with textContent and fixed themes

This commit is contained in:
MathMan05 2024-06-20 12:56:44 -05:00
parent 4e4c34454a
commit e5ead8a77e
13 changed files with 74 additions and 82 deletions

View file

@ -118,7 +118,7 @@ function markdown(txt,keep=false){
}
if(count!==3){
const samp=document.createElement("samp");
samp.innerText=build;
samp.textContent=build;
span.appendChild(samp);
}else{
const pre=document.createElement("pre");
@ -128,7 +128,7 @@ function markdown(txt,keep=false){
if(txt[i]==="\n"){
i++
}
pre.innerText=build;
pre.textContent=build;
span.appendChild(pre);
}
i--;
@ -305,7 +305,7 @@ function markdown(txt,keep=false){
continue;
}
}
current.innerText+=txt[i];
current.textContent+=txt[i];
}
appendcurrent();
return span;