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: fix https://github.com/siyuan-note/siyuan/issues/11772
Vanessa32413fa11c4e
diff --git a/app/src/protyle/wysiwyg/turnIntoList.ts b/app/src/protyle/wysiwyg/turnIntoList.tsindex de3a716647..845c873c04 100644--- a/app/src/protyle/wysiwyg/turnIntoList.ts+++ b/app/src/protyle/wysiwyg/turnIntoList.ts@@ -4,7 +4,8 @@ import * as dayjs from "dayjs";export const turnIntoTaskList = (protyle: IProtyle, type: string, blockElement: HTMLElement, editElement: HTMLElement, range: Range) => {if (type !== "NodeCodeBlock" &&- blockElement.parentElement.getAttribute("data-subtype") !== "t" &&+ // 任务列表首块不需要再更新为任务列表+ !blockElement.previousElementSibling?.classList.contains("protyle-action--task") &&(["[ ]", "[x]", "[X]", "【 】", "【x】", "【X】"].includes(editElement.innerHTML.substring(0, 3)) ||["[]", "【】"].includes(editElement.innerHTML.substring(0, 2))