An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:rotating_light:
Vanessa75b36df345d9
diff --git a/app/src/protyle/wysiwyg/enter.ts b/app/src/protyle/wysiwyg/enter.tsindex 27b61de0be..3ad5c8bb44 100644--- a/app/src/protyle/wysiwyg/enter.ts+++ b/app/src/protyle/wysiwyg/enter.ts@@ -201,11 +201,11 @@ export const enter = (blockElement: HTMLElement, range: Range, protyle: IProtyleif (range.toString() !== "") {// 选中数学公式后回车取消选中 https://github.com/siyuan-note/siyuan/issues/12637#issuecomment-2381106949- const mathElement = hasClosestByAttribute(range.startContainer, "data-type", "inline-math")+ const mathElement = hasClosestByAttribute(range.startContainer, "data-type", "inline-math");if (mathElement) {const nextSibling = hasNextSibling(mathElement);if (nextSibling) {- range = getSelection().getRangeAt(0)+ range = getSelection().getRangeAt(0);range.setEnd(nextSibling, nextSibling.textContent.startsWith(Constants.ZWSP) ? 1 : 0);range.collapse(false);}@@ -446,11 +446,11 @@ const listEnter = (protyle: IProtyle, blockElement: HTMLElement, range: Range) =const html = listItemElement.parentElement.outerHTML;if (range.toString() !== "") {// 选中数学公式后回车取消选中 https://github.com/siyuan-note/siyuan/issues/12637#issuecomment-2381106949- const mathElement = hasClosestByAttribute(range.startContainer, "data-type", "inline-math")+ const mathElement = hasClosestByAttribute(range.startContainer, "data-type", "inline-math");if (mathElement) {const nextSibling = hasNextSibling(mathElement);if (nextSibling) {- range = getSelection().getRangeAt(0)+ range = getSelection().getRangeAt(0);range.setEnd(nextSibling, nextSibling.textContent.startsWith(Constants.ZWSP) ? 1 : 0);range.collapse(false);}