An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: [[ enter
Vanessa51aa58719cb5
diff --git a/app/src/protyle/hint/index.ts b/app/src/protyle/hint/index.tsindex 91ea511404..f9dd1190cc 100644--- a/app/src/protyle/hint/index.ts+++ b/app/src/protyle/hint/index.ts@@ -446,14 +446,10 @@ ${unicode2Emoji(emoji.unicode, true)}</button>`;tempElement.innerHTML = value.replace(/<mark>/g, "").replace(/<\/mark>/g, "");tempElement = tempElement.firstChild as HTMLDivElement;range.insertNode(tempElement);- range.setStart(tempElement.firstChild, 0);- range.setEnd(tempElement.lastChild, tempElement.lastChild.textContent.length);+ range.setStartAfter(tempElement);+ range.collapse(true);updateTransaction(protyle, id, nodeElement.outerHTML, html);- const wbrElement = nodeElement.querySelector("wbr");- if (wbrElement) {- wbrElement.remove();- }- focusByRange(range);+ focusByWbr(nodeElement, range);return;} else if (this.splitChar === ":") {addEmoji(value);