Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/17343

Vanessac94e610b257c
diff --git a/app/src/protyle/wysiwyg/turnIntoList.ts b/app/src/protyle/wysiwyg/turnIntoList.ts
index 3299f77648..d5ac808602 100644
--- a/app/src/protyle/wysiwyg/turnIntoList.ts
+++ b/app/src/protyle/wysiwyg/turnIntoList.ts
@@ -7,7 +7,7 @@ export const turnIntoTaskList = (protyle: IProtyle, type: string, blockElement:
// 任务列表首块不需要再更新为任务列表
!blockElement.previousElementSibling?.classList.contains("protyle-action--task") &&
(
- ["[ ]", "[x]", "[X]", "【 】", "【x】", "【X】"].includes(editElement.innerHTML.substring(0, 3)) ||
+ /(\[[^\[\]]\]|【[^【】]】)/.test(editElement.innerHTML.substring(0, 3)) ||
["[]", "【】"].includes(editElement.innerHTML.substring(0, 2))
)
) {