fix mobile MarkDown bug
This commit is contained in:
parent
cf820653ee
commit
9ab8a95199
1 changed files with 7 additions and 2 deletions
|
@ -743,8 +743,13 @@ class MarkDown {
|
||||||
if (!box.hasChildNodes() || html.isEqualNode(Array.from(box.childNodes)[0])) {
|
if (!box.hasChildNodes() || html.isEqualNode(Array.from(box.childNodes)[0])) {
|
||||||
//console.log("no replace needed");
|
//console.log("no replace needed");
|
||||||
} else {
|
} else {
|
||||||
box.innerHTML = "";
|
const childChild = Array.from(box.childNodes)[0];
|
||||||
box.append(html);
|
if (!childChild || html.isEqualNode(Array.from(childChild.childNodes)[0])) {
|
||||||
|
box.innerHTML = "";
|
||||||
|
box.append(html);
|
||||||
|
} else {
|
||||||
|
//console.log("empty replace not happened");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
//console.timeEnd();
|
//console.timeEnd();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue