Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/14985

Vanessa20b0dd7d28be
diff --git a/app/src/protyle/toolbar/Font.ts b/app/src/protyle/toolbar/Font.ts
index b894dc866b..33134d37b9 100644
--- a/app/src/protyle/toolbar/Font.ts
+++ b/app/src/protyle/toolbar/Font.ts
@@ -378,7 +378,7 @@ export const hasSameTextStyle = (currentElement: HTMLElement, sideElement: HTMLE
types.includes("a")) {
return false;
}
- if (types.includes("id")) {
+ if (types.includes("block-ref")) {
if (currentElement.getAttribute("data-id") !== sideElement.getAttribute("data-id") ||
currentElement.getAttribute("data-subtype") !== sideElement.getAttribute("data-subtype") ||
currentElement.textContent !== sideElement.textContent) {