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/5029
Vanessa544711d651d9
diff --git a/app/src/protyle/wysiwyg/enter.ts b/app/src/protyle/wysiwyg/enter.tsindex fd92ee7935..788c21d95b 100644--- a/app/src/protyle/wysiwyg/enter.ts+++ b/app/src/protyle/wysiwyg/enter.ts@@ -256,7 +256,7 @@ export const enter = (blockElement: HTMLElement, range: Range, protyle: IProtyle}range.extractContents();const types = protyle.toolbar.getCurrentType(range);- if (types.length > 0 && range.startContainer.nodeType !== 3) {+ if (types.includes("inline-code") && range.startContainer.nodeType !== 3) {// https://github.com/siyuan-note/siyuan/issues/4169const brElement = document.createElement("br");(range.startContainer as HTMLElement).after(brElement);