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/8406
Vanessa72e1ed2ebbac
diff --git a/app/src/protyle/wysiwyg/keydown.ts b/app/src/protyle/wysiwyg/keydown.tsindex 4448d99913..8b64e9ea65 100644--- a/app/src/protyle/wysiwyg/keydown.ts+++ b/app/src/protyle/wysiwyg/keydown.ts@@ -731,10 +731,10 @@ export const keydown = (app: App, protyle: IProtyle, editorElement: HTMLElement)}}// 行首转义符前删除 https://github.com/siyuan-note/siyuan/issues/6092- if (range.startOffset === 0 &&+ if (range.startOffset === 0 && selectText === "" &&previousSibling && previousSibling.parentElement.getAttribute("data-type")?.indexOf("backslash") > -1 &&previousSibling.nodeType !== 3 && (previousSibling as HTMLElement).outerHTML === "<span>\\</span>" &&- !hasPreviousSibling(previousSibling)) {+ !hasPreviousSibling(previousSibling.parentElement)) {range.setStartBefore(previousSibling.parentElement);removeBlock(protyle, nodeElement, range);event.stopPropagation();