mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
This commit is contained in:
parent
7ae90058c3
commit
ac6b1d6689
1 changed files with 4 additions and 0 deletions
|
@ -446,6 +446,10 @@ export const insertHTML = (html: string, protyle: IProtyle, isBlock = false,
|
|||
insertBefore = true;
|
||||
}
|
||||
}
|
||||
// https://github.com/siyuan-note/siyuan/issues/15768
|
||||
if (tempElement.content.firstChild.nodeType === 3 || (tempElement.content.firstChild.nodeType === 1 && tempElement.content.firstElementChild.tagName !== "DIV")) {
|
||||
tempElement.innerHTML = protyle.lute.SpinBlockDOM(tempElement.innerHTML);
|
||||
}
|
||||
(insertBefore ? Array.from(tempElement.content.children) : Array.from(tempElement.content.children).reverse()).forEach((item) => {
|
||||
// https://github.com/siyuan-note/siyuan/issues/13232
|
||||
if (item.getAttribute("data-type") === "NodeHeading" && item.getAttribute("fold") === "1") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue