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/10637

Vanessab75b26fea382
diff --git a/app/src/protyle/hint/index.ts b/app/src/protyle/hint/index.ts
index 1f4cf9fa64..fa29603a77 100644
--- a/app/src/protyle/hint/index.ts
+++ b/app/src/protyle/hint/index.ts
@@ -970,7 +970,10 @@ ${genHintItemHTML(item)}
}
const lineArray = currentLineValue.split(this.splitChar);
const lastItem = lineArray[lineArray.length - 1];
- if (lineArray.length > 1 && lastItem.trim() === lastItem && lastItem.length < Constants.SIZE_TITLE) {
+ if (lineArray.length > 1 &&
+ // https://github.com/siyuan-note/siyuan/issues/10637
+ lastItem.trimStart() === lastItem &&
+ lastItem.length < Constants.SIZE_TITLE) {
// 输入法自动补全 https://github.com/siyuan-note/insider/issues/100
if (this.splitChar === "【【" && currentLineValue.endsWith("【【】")) {
return "";