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/14019
Vanessa7e31f7c6ce59
diff --git a/app/src/protyle/toolbar/Font.ts b/app/src/protyle/toolbar/Font.tsindex fcf725d53a..97a04c75bb 100644--- a/app/src/protyle/toolbar/Font.ts+++ b/app/src/protyle/toolbar/Font.ts@@ -338,7 +338,18 @@ export const setFontStyle = (textElement: HTMLElement, textOption: ITextOption)export const hasSameTextStyle = (currentElement: HTMLElement, sideElement: HTMLElement, textObj: ITextOption) => {if (!textObj) {- return true;+ // https://github.com/siyuan-note/siyuan/issues/14019+ if (currentElement.nodeType !== 3 && sideElement.nodeType !== 3 &&+ // 当为 span 时,都经过 isArrayEqual 判断+ sideElement.style.color === currentElement.style.color &&+ sideElement.style.webkitTextFillColor === currentElement.style.webkitTextFillColor &&+ sideElement.style.webkitTextStroke === currentElement.style.webkitTextStroke &&+ sideElement.style.textShadow === currentElement.style.textShadow &&+ sideElement.style.backgroundColor === currentElement.style.backgroundColor &&+ sideElement.style.fontSize === currentElement.style.fontSize) {+ return true;+ }+ return false;}if (textObj.type === "inline-math" || textObj.type === "inline-memo" || textObj.type === "a") {return false;