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/16595
Vanessa967fbbc05f7b
diff --git a/app/src/protyle/wysiwyg/enter.ts b/app/src/protyle/wysiwyg/enter.tsindex df6af84150..c43bf18df6 100644--- a/app/src/protyle/wysiwyg/enter.ts+++ b/app/src/protyle/wysiwyg/enter.ts@@ -62,6 +62,7 @@ export const enter = (blockElement: HTMLElement, range: Range, protyle: IProtyleif (trimStartHTML.indexOf("\n") === -1 && trimStartHTML.replace(/·|~/g, "`").replace(/^`{3,}/g, "").indexOf("`") > -1) {// ```test` 不处理,正常渲染为段落块} else if (blockElement.classList.contains("p")) { // https://github.com/siyuan-note/siyuan/issues/6953+ range.insertNode(document.createElement("wbr"));const oldHTML = blockElement.outerHTML;// https://github.com/siyuan-note/siyuan/issues/16744range.extractContents();@@ -352,6 +353,13 @@ export const enter = (blockElement: HTMLElement, range: Range, protyle: IProtylereturn true;}}+ undoOperation.find((item, index) => {+ if (item.action === "update") {+ undoOperation.splice(index, 1);+ undoOperation.push(item);+ return true;+ }+ });transaction(protyle, doOperation, undoOperation);if (currentElement.parentElement.classList.contains("sb") &¤tElement.parentElement.getAttribute("data-sb-layout") === "col") {