From 14f0b47ed1d99b58609a70727603ba14e96317e5 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 21 Jun 2022 11:15:36 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/siyuan/issues/5248 --- app/src/types/protyle.d.ts | 2 ++ app/src/util/Tree.ts | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/types/protyle.d.ts b/app/src/types/protyle.d.ts index fd39c7363..2737f678e 100644 --- a/app/src/types/protyle.d.ts +++ b/app/src/types/protyle.d.ts @@ -132,6 +132,8 @@ declare class Lute { public static GetHeadingID(node: ILuteNode): string; + public static BlockDOM2Content(html: string): string; + private constructor(); public SetHeadingID(enable: boolean): void; diff --git a/app/src/util/Tree.ts b/app/src/util/Tree.ts index b547d1196..c1d1c3c0a 100644 --- a/app/src/util/Tree.ts +++ b/app/src/util/Tree.ts @@ -76,7 +76,7 @@ ${item.label ? "data-label='" + item.label + "'" : ""}> ${iconHTML} - ${item.name} + ${item.name} ${countHTML} `; if (item.children && item.children.length > 0) { @@ -121,7 +121,7 @@ data-def-path="${item.defPath}"> ${iconHTML} - ${item.content} + ${item.content} ${countHTML} ${this.blockExtHTML || ""} `;