An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: https://github.com/siyuan-note/siyuan/issues/15768
Vanessaac6b1d668971
diff --git a/app/src/protyle/util/insertHTML.ts b/app/src/protyle/util/insertHTML.tsindex e43ee169af..43f90cc45e 100644--- a/app/src/protyle/util/insertHTML.ts+++ b/app/src/protyle/util/insertHTML.ts@@ -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/13232if (item.getAttribute("data-type") === "NodeHeading" && item.getAttribute("fold") === "1") {