This commit is contained in:
Vanessa 2023-05-26 22:44:33 +08:00
parent f5135faf29
commit d2cfe413a2

View file

@ -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)) {