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])) {
|
||||
//console.log("no replace needed");
|
||||
} else {
|
||||
box.innerHTML = "";
|
||||
box.append(html);
|
||||
const childChild = Array.from(box.childNodes)[0];
|
||||
if (!childChild || html.isEqualNode(Array.from(childChild.childNodes)[0])) {
|
||||
box.innerHTML = "";
|
||||
box.append(html);
|
||||
} else {
|
||||
//console.log("empty replace not happened");
|
||||
}
|
||||
}
|
||||
//console.timeEnd();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue