From 62dc11f9b823ec2bab2d18b5e179493b0c363c6d Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sun, 2 Feb 2025 16:54:09 +0200 Subject: [PATCH] feat(in-app-help): add icons for text notes --- src/services/in_app_help.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/services/in_app_help.ts b/src/services/in_app_help.ts index 803fb57dd..6e8aefb61 100644 --- a/src/services/in_app_help.ts +++ b/src/services/in_app_help.ts @@ -40,6 +40,13 @@ function parseNoteMeta(noteMeta: NoteMeta, docNameRoot: string): HiddenSubtreeIt attributes: [] }; + // Handle attributes + for (const attribute of noteMeta.attributes ?? []) { + if (attribute.name === "iconClass") { + item.attributes?.push(attribute); + } + } + // Handle text notes if (noteMeta.type === "text" && noteMeta.dataFileName) { const docPath = `${docNameRoot}/${path.basename(noteMeta.dataFileName, ".html")}`