An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: fix https://github.com/siyuan-note/siyuan/issues/10941
Vanessa8b5c27f05487
diff --git a/app/src/protyle/toolbar/InlineMath.ts b/app/src/protyle/toolbar/InlineMath.tsindex 80b6224891..5a8202b9a8 100644--- a/app/src/protyle/toolbar/InlineMath.ts+++ b/app/src/protyle/toolbar/InlineMath.ts@@ -19,7 +19,7 @@ export class InlineMath extends ToolbarItem {let mathElement = hasClosestByAttribute(range.startContainer, "data-type", "inline-math") as Element;if (!mathElement && range.startContainer.nodeType !== 3 && range.startContainer.childNodes[range.startOffset]) {const previousSibling = hasPreviousSibling(range.startContainer.childNodes[range.startOffset]) as HTMLElement;- if (previousSibling && previousSibling.getAttribute("data-type").indexOf("inline-math") > -1) {+ if (previousSibling && previousSibling.nodeType !==3 && previousSibling.getAttribute("data-type").indexOf("inline-math") > -1) {mathElement = previousSibling;}}