diff --git a/app/src/protyle/render/av/blockAttr.ts b/app/src/protyle/render/av/blockAttr.ts
index 1173f4c94..fe23f67fa 100644
--- a/app/src/protyle/render/av/blockAttr.ts
+++ b/app/src/protyle/render/av/blockAttr.ts
@@ -127,15 +127,17 @@ export const genAVValueHTML = (value: IAVCellValue) => {
break;
case "relation":
value?.relation?.contents?.forEach((item) => {
- if (item) {
- const rollupText = genAVRollupHTML(item);
- if (rollupText) {
- html += rollupText + ", ";
+ if (item && item.block) {
+ if (item?.isDetached) {
+ html += `➖ ${Lute.EscapeHTMLStr(item.block.content || window.siyuan.languages.untitled)}`;
+ } else {
+ // data-block-id 用于更新 emoji
+ html += `${Lute.EscapeHTMLStr(item.block.content || window.siyuan.languages.untitled)}`;
}
}
});
- if (html && html.endsWith(", ")) {
- html = html.substring(0, html.length - 7);
+ if (html && html.endsWith(", ")) {
+ html = html.substring(0, html.length - 2);
}
break;
case "rollup":