From d2cfe413a288c7fa00f952ff9f00541cb72e07ac Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 26 May 2023 22:44:33 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/8359 --- app/src/protyle/util/paste.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/protyle/util/paste.ts b/app/src/protyle/util/paste.ts index b1a81251c..8219b7303 100644 --- a/app/src/protyle/util/paste.ts +++ b/app/src/protyle/util/paste.ts @@ -258,7 +258,8 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEven if (isDynamicRef(textPlain)) { protyle.toolbar.setInlineMark(protyle, "block-ref", "range", { type: "id", - color: `${textPlain.substring(2, 22 + 2)}${Constants.ZWSP}s${Constants.ZWSP}${Lute.EscapeHTMLStr(range.toString())}` + // range 不能 escape,否则 https://github.com/siyuan-note/siyuan/issues/8359 + color: `${textPlain.substring(2, 22 + 2)}${Constants.ZWSP}s${Constants.ZWSP}${range.toString()}` }); return; } else if (isFileAnnotation(textPlain)) {