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: https://github.com/siyuan-note/siyuan/issues/14290
Vanessa7c1bec64f26b
diff --git a/app/src/protyle/wysiwyg/getBlock.ts b/app/src/protyle/wysiwyg/getBlock.tsindex df46bfd3dd..cb6a67d9a9 100644--- a/app/src/protyle/wysiwyg/getBlock.ts+++ b/app/src/protyle/wysiwyg/getBlock.ts@@ -177,8 +177,14 @@ export const isEndOfBlock = (range: Range) => {}while (nextSibling) {- if (hasNextSibling(nextSibling)) {- return false;+ const nextNextSibling = hasNextSibling(nextSibling);+ if (nextNextSibling) {+ // 行内元素后为 \n https://github.com/siyuan-note/siyuan/issues/14290#issuecomment-2833372579+ if (nextNextSibling.nodeType === 3 && (nextNextSibling as Text).wholeText === "\n") {+ nextSibling = nextNextSibling;+ } else {+ return false;+ }} else {if (nextSibling.parentElement.getAttribute("spellcheck")) {return true;