From ed3869f7ae3355357449f58644d458570671c849 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 7 Jun 2023 10:19:38 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/siyuan/issues/8475 --- app/src/protyle/util/paste.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/protyle/util/paste.ts b/app/src/protyle/util/paste.ts index 08f91d534..fc288fdb8 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; }