Browse Source

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

Vanessa 1 năm trước cách đây
mục cha
commit
b75b26fea3
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      app/src/protyle/hint/index.ts

+ 4 - 1
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 "";