Skip to content

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

:bug: fix https://github.com/siyuan-note/siyuan/issues/8475

Vanessaed3869f7ae33
diff --git a/app/src/protyle/util/paste.ts b/app/src/protyle/util/paste.ts
index 08f91d534e..fc288fdb8e 100644
--- a/app/src/protyle/util/paste.ts
+++ b/app/src/protyle/util/paste.ts
@@ -265,13 +265,14 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEven
} else if (isFileAnnotation(textPlain)) {
protyle.toolbar.setInlineMark(protyle, "file-annotation-ref", "range", {
type: "file-annotation-ref",
- color: textPlain.substring(2).replace(/ ".+">>$/, "") + Constants.ZWSP + range.toString()
+ color: textPlain.substring(2).replace(/ ".+">>$/, "")
});
return;
} else if (protyle.lute.IsValidLinkDest(textPlain)) {
+ // https://github.com/siyuan-note/siyuan/issues/8475
protyle.toolbar.setInlineMark(protyle, "a", "range", {
type: "a",
- color: textPlain + Constants.ZWSP + range.toString()
+ color: textPlain
});
return;
}