Skip to content

Commit

Permalink
🎨 #13232
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Dec 6, 2024
1 parent ece3189 commit 3d5c08e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/src/protyle/util/insertHTML.ts
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,10 @@ export const insertHTML = (html: string, protyle: IProtyle, isBlock = false,
}
}
(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") {
item.removeAttribute("fold")
}
let addId = item.getAttribute("data-node-id");
if (addId === id) {
doOperation.push({
Expand Down

0 comments on commit 3d5c08e

Please sign in to comment.