From a14e1b59179a45649d97533e4c7d592c741a3907 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 26 May 2023 23:00:09 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/8359 --- app/src/protyle/util/paste.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/protyle/util/paste.ts b/app/src/protyle/util/paste.ts index 8219b7303..08f91d534 100644 --- a/app/src/protyle/util/paste.ts +++ b/app/src/protyle/util/paste.ts @@ -265,13 +265,13 @@ 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 + Lute.EscapeHTMLStr(range.toString()) + color: textPlain.substring(2).replace(/ ".+">>$/, "") + Constants.ZWSP + range.toString() }); return; } else if (protyle.lute.IsValidLinkDest(textPlain)) { protyle.toolbar.setInlineMark(protyle, "a", "range", { type: "a", - color: textPlain + Constants.ZWSP + Lute.EscapeHTMLStr(range.toString()) + color: textPlain + Constants.ZWSP + range.toString() }); return; }