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: fix https://github.com/siyuan-note/siyuan/issues/7812
Vanessa79ad591badf8
diff --git a/app/src/protyle/hint/index.ts b/app/src/protyle/hint/index.tsindex f1cfee9a7e..db371bdbbb 100644--- a/app/src/protyle/hint/index.ts+++ b/app/src/protyle/hint/index.ts@@ -412,7 +412,9 @@ ${unicode2Emoji(emoji.unicode, true)}</button>`;// 前后有标记符的情况 https://github.com/siyuan-note/siyuan/issues/2511const endSplit = Constants.BLOCK_HINT_CLOSE_KEYS[this.splitChar];if (Constants.BLOCK_HINT_KEYS.includes(this.splitChar) && endSplit && range.startContainer.nodeType === 3- && (range.startContainer as Text).wholeText.indexOf(endSplit) > -1) {+ && (range.startContainer as Text).wholeText.indexOf(endSplit) > -1+ // 在包含 )) 的块中引用时会丢失字符 https://ld246.com/article/1679980200782+ && (range.startContainer as Text).wholeText.indexOf(this.splitChar) > -1) {let matchEndChar = 0;let textNode = range.startContainer;while (textNode && matchEndChar < 2) {