From ab9fb8565f2fc16a529fc9bec73fcd15e4737f7d Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 5 Sep 2022 22:17:05 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/siyuan/issues/5827 --- app/src/protyle/header/Title.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/protyle/header/Title.ts b/app/src/protyle/header/Title.ts index 32ae2104e..846d6007d 100644 --- a/app/src/protyle/header/Title.ts +++ b/app/src/protyle/header/Title.ts @@ -101,7 +101,7 @@ export class Title { event.preventDefault(); event.stopPropagation(); } else if (matchHotKey(window.siyuan.config.keymap.editor.general.copyBlockRef.custom, event)) { - writeText(`((${protyle.block.rootID} '${this.editElement.textContent}'))`); + writeText(`((${protyle.block.rootID} '${this.editElement.textContent.replace(/'/g, "'")}'))`); event.preventDefault(); event.stopPropagation(); } else if (matchHotKey(window.siyuan.config.keymap.editor.general.copyID.custom, event)) {