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/14453
Vanessaafead500fb2a
diff --git a/app/src/protyle/wysiwyg/remove.ts b/app/src/protyle/wysiwyg/remove.tsindex 332daacf9f..5cd630bd6f 100644--- a/app/src/protyle/wysiwyg/remove.ts+++ b/app/src/protyle/wysiwyg/remove.ts@@ -18,6 +18,7 @@ import {hideElements} from "../ui/hideElements";import {Constants} from "../../constants";import {scrollCenter} from "../../util/highlightById";import {isMobile} from "../../util/functions";+import {mathRender} from "../render/mathRender";export const removeBlock = (protyle: IProtyle, blockElement: Element, range: Range, type: "Delete" | "Backspace" | "remove") => {// 删除后,防止滚动条滚动后调用 get 请求,因为返回的请求已查找不到内容块了@@ -409,6 +410,7 @@ export const removeBlock = (protyle: IProtyle, blockElement: Element, range: Ranrange.insertNode(leftNodes);// 图片前删除到上一个文字块时,图片前有 zwsppreviousLastElement.outerHTML = protyle.lute.SpinBlockDOM(previousLastElement.outerHTML);+ mathRender(getPreviousBlock(removeElement) as HTMLElement);removeElement.remove();// extractContents 内容过多时需要进行滚动条重置,否则位置会错位protyle.contentElement.scrollTop = scroll;