From b75b26fea382b9ce6be85ea8a2bc042ce3731bcd Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 18 Mar 2024 10:12:39 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/10637 --- app/src/protyle/hint/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/protyle/hint/index.ts b/app/src/protyle/hint/index.ts index 1f4cf9fa6..fa29603a7 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 "";