replaced innerText with textContent and fixed themes
This commit is contained in:
parent
4e4c34454a
commit
e5ead8a77e
13 changed files with 74 additions and 82 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue