slight reply patch

This commit is contained in:
MathMan05 2024-06-28 14:49:00 -05:00
parent f6bd7423d3
commit 039491ca87
2 changed files with 3 additions and 13 deletions

View file

@ -78,16 +78,10 @@ function markdown(text, { keep = false, stdsize = false } = {}) {
} }
} }
if (txt[i] === "\n") { if (txt[i] === "\n") {
appendcurrent();
if (!stdsize) { if (!stdsize) {
appendcurrent();
span.append(document.createElement("br")); span.append(document.createElement("br"));
} }
else {
const s = document.createElement("span");
s.textContent = "...";
span.append(s);
return span;
}
continue; continue;
} }
if (txt[i] === "`") { if (txt[i] === "`") {

View file

@ -76,14 +76,10 @@ function markdown(text : string|string[],{keep=false,stdsize=false} = {}){
} }
} }
if(txt[i]==="\n"){ if(txt[i]==="\n"){
appendcurrent();
if(!stdsize){ if(!stdsize){
appendcurrent();
span.append(document.createElement("br")); span.append(document.createElement("br"));
}else{
const s=document.createElement("span");
s.textContent="...";
span.append(s);
return span;
} }
continue; continue;
} }