slight reply patch
This commit is contained in:
parent
f6bd7423d3
commit
039491ca87
2 changed files with 3 additions and 13 deletions
|
@ -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] === "`") {
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue