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/14666
Vanessab0ca44de00c8
diff --git a/app/src/protyle/wysiwyg/turnIntoList.ts b/app/src/protyle/wysiwyg/turnIntoList.tsindex f0b30af2d9..4bf58e6d60 100644--- a/app/src/protyle/wysiwyg/turnIntoList.ts+++ b/app/src/protyle/wysiwyg/turnIntoList.ts@@ -11,10 +11,12 @@ export const turnIntoTaskList = (protyle: IProtyle, type: string, blockElement:["[]", "【】"].includes(editElement.innerHTML.substring(0, 2)))) {- const contextStar2tIndex = (editElement.innerHTML.indexOf("】") + 1);- let contextStartIndex = (editElement.innerHTML.indexOf("]") + 1) || contextStar2tIndex;- if (contextStartIndex !== -1 && contextStar2tIndex < contextStartIndex) {+ const contextStar2tIndex = editElement.innerHTML.indexOf("】") + 1;+ let contextStartIndex = editElement.innerHTML.indexOf("]") + 1;+ if (contextStartIndex === 0) {contextStartIndex = contextStar2tIndex;+ } else if (contextStartIndex > 0 && contextStar2tIndex > 0) {+ contextStartIndex = Math.min(contextStartIndex, contextStar2tIndex);}const isDone = editElement.innerHTML.substring(1, 2).toLowerCase() === "x";if (blockElement.parentElement.classList.contains("li") &&