فهرست منبع

:art: fix https://github.com/siyuan-note/siyuan/issues/10458

Vanessa 1 سال پیش
والد
کامیت
08d614d014
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      app/src/protyle/index.ts

+ 2 - 1
app/src/protyle/index.ts

@@ -187,7 +187,8 @@ export class Protyle {
                             // update ref
                             // update ref
                             this.protyle.wysiwyg.element.querySelectorAll(`[data-type~="block-ref"][data-id="${data.data.id}"]`).forEach(item => {
                             this.protyle.wysiwyg.element.querySelectorAll(`[data-type~="block-ref"][data-id="${data.data.id}"]`).forEach(item => {
                                 if (item.getAttribute("data-subtype") === "d") {
                                 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;
                             break;