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/17343
Vanessa9bdd7f39d5b3
diff --git a/app/src/protyle/wysiwyg/turnIntoList.ts b/app/src/protyle/wysiwyg/turnIntoList.tsindex db80d8edcb..0994f6716e 100644--- a/app/src/protyle/wysiwyg/turnIntoList.ts+++ b/app/src/protyle/wysiwyg/turnIntoList.ts@@ -20,7 +20,7 @@ export const turnIntoTaskList = (protyle: IProtyle, type: string, blockElement:contextStartIndex = Math.min(contextStartIndex, contextStar2tIndex);}editElement.removeAttribute("placeholder");- const isDone = editElement.innerHTML.substring(1, 2).toLowerCase() === "x";+ const isDone = dataTask && dataTask[1] !== " ";if (blockElement.parentElement.classList.contains("li") &&blockElement.parentElement.childElementCount === 3 // https://ld246.com/article/1659315815506) {@@ -30,8 +30,8 @@ export const turnIntoTaskList = (protyle: IProtyle, type: string, blockElement:const liElement = blockElement.parentElement.parentElement;const oldHTML = liElement.outerHTML;liElement.setAttribute("data-subtype", "t");- liElement.setAttribute("data-task", dataTask ? dataTask[1] : " ");liElement.setAttribute("updated", dayjs().format("YYYYMMDDHHmmss"));+ blockElement.parentElement.setAttribute("data-task", dataTask ? dataTask[1] : " ");blockElement.parentElement.setAttribute("data-subtype", "t");if (isDone) {blockElement.parentElement.classList.add("protyle-task--done");