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/14481
Vanessa407eb53ea1ca
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.tsindex f153119c8c..9c87a90b77 100644--- a/app/src/protyle/wysiwyg/index.ts+++ b/app/src/protyle/wysiwyg/index.ts@@ -2641,6 +2641,13 @@ export class WYSIWYG {if (attrElement) {newRange = setLastNodeRange(attrElement.previousElementSibling, newRange, false);}+ // https://github.com/siyuan-note/siyuan/issues/14481+ const inlineMathElement = hasClosestByAttribute(newRange.startContainer, "data-type", "inline-math");+ if (inlineMathElement) {+ newRange.setEndAfter(inlineMathElement);+ newRange.collapse(false);+ focusByRange(newRange);+ }/// #if !MOBILEif (newRange.toString().replace(Constants.ZWSP, "") !== "") {protyle.toolbar.render(protyle, newRange);