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/13892

Vanessa9885e6eb9b3b
diff --git a/app/src/protyle/util/paste.ts b/app/src/protyle/util/paste.ts
index 9a8da13928..62b311d984 100644
--- a/app/src/protyle/util/paste.ts
+++ b/app/src/protyle/util/paste.ts
@@ -554,7 +554,7 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEven
return;
} else {
// https://github.com/siyuan-note/siyuan/issues/8475
- const linkDest = protyle.lute.GetLinkDest(textPlain);
+ const linkDest = textPlain.startsWith("assets/") ? textPlain : protyle.lute.GetLinkDest(textPlain);
if (linkDest) {
protyle.toolbar.setInlineMark(protyle, "a", "range", {
type: "a",