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/16051
Vanessa0c6c90a82dab
diff --git a/app/src/protyle/wysiwyg/transaction.ts b/app/src/protyle/wysiwyg/transaction.tsindex d8a523bd74..0b484b88d8 100644--- a/app/src/protyle/wysiwyg/transaction.ts+++ b/app/src/protyle/wysiwyg/transaction.ts@@ -1198,8 +1198,8 @@ export const turnsOneInto = async (options: {if (!options.nodeElement.querySelector("wbr")) {getContenteditableElement(options.nodeElement)?.insertAdjacentHTML("afterbegin", "<wbr>");}- if (options.type === "CancelList" || options.type === "CancelBlockquote") {- for await(const item of options.nodeElement.querySelectorAll('[data-type="NodeHeading"][fold="1"]')) {+ if (["CancelBlockquote", "CancelList", "CancelCallout"].includes(options.type)) {+ for (const item of options.nodeElement.querySelectorAll('[data-type="NodeHeading"][fold="1"]')) {const itemId = item.getAttribute("data-node-id");item.removeAttribute("fold");const response = await fetchSyncPost("/api/transactions", {@@ -1236,7 +1236,7 @@ export const turnsOneInto = async (options: {// @ts-ignoreconst newHTML = options.protyle.lute[options.type](options.nodeElement.outerHTML, options.level);options.nodeElement.outerHTML = newHTML;- if (options.type === "CancelList" || options.type === "CancelBlockquote") {+ if (["CancelBlockquote", "CancelList", "CancelCallout"].includes(options.type)) {const tempElement = document.createElement("template");tempElement.innerHTML = newHTML;const doOperations: IOperation[] = [{