From 08d614d014f44f8119bf46ba1bec8a93ae48ba7a Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 27 Feb 2024 22:05:46 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/10458 --- app/src/protyle/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/protyle/index.ts b/app/src/protyle/index.ts index e9224ba49..f7b1b033f 100644 --- a/app/src/protyle/index.ts +++ b/app/src/protyle/index.ts @@ -187,7 +187,8 @@ export class Protyle { // update ref this.protyle.wysiwyg.element.querySelectorAll(`[data-type~="block-ref"][data-id="${data.data.id}"]`).forEach(item => { if (item.getAttribute("data-subtype") === "d") { - item.textContent = data.data.refText; + // 同 updateRef 一样处理 https://github.com/siyuan-note/siyuan/issues/10458 + item.innerHTML = data.data.refText; } }); break;