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 32ae2104ef5bd05e057e09bb5c723efb69321b45..846d6007d8d3601cce4a432dbe3449bb6d8de91e 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)) {