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/14672
Vanessad00e4633d5b9
diff --git a/app/src/protyle/wysiwyg/enter.ts b/app/src/protyle/wysiwyg/enter.tsindex 5659a64c63..feb32d1d43 100644--- a/app/src/protyle/wysiwyg/enter.ts+++ b/app/src/protyle/wysiwyg/enter.ts@@ -18,6 +18,7 @@ import {mathRender} from "../render/mathRender";import {isMobile} from "../../util/functions";import {processRender} from "../util/processCode";import {hasClosestByAttribute, hasClosestByClassName} from "../util/hasClosest";+import {blockRender} from "../render/blockRender";export const enter = (blockElement: HTMLElement, range: Range, protyle: IProtyle) => {if (hasClosestByClassName(blockElement, "protyle-wysiwyg__embed")) {@@ -290,7 +291,11 @@ export const enter = (blockElement: HTMLElement, range: Range, protyle: IProtyleid: item.dataset.nodeId,});}- mathRender(item);+ if (item.dataset.type === "NodeBlockQueryEmbed") {+ blockRender(protyle, item);+ } else {+ mathRender(item);+ }currentElement = item;selectsElement.push(item);});@@ -310,6 +315,8 @@ export const enter = (blockElement: HTMLElement, range: Range, protyle: IProtylecurrentElement.insertAdjacentElement("afterend", item);if (item.classList.contains("code-block")) {highlightRender(item);+ } else if (item.dataset.type === "NodeBlockQueryEmbed") {+ blockRender(protyle, item);} else {mathRender(currentElement.nextElementSibling);}