From bac529f1f11c5bb65ff13c620461dd4abe942202 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sun, 2 Feb 2025 16:18:07 +0200 Subject: [PATCH] feat(in-app-help): remove duplicate

--- src/public/app/widgets/type_widgets/doc.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/public/app/widgets/type_widgets/doc.ts b/src/public/app/widgets/type_widgets/doc.ts index 86bd7adde..8008276ad 100644 --- a/src/public/app/widgets/type_widgets/doc.ts +++ b/src/public/app/widgets/type_widgets/doc.ts @@ -58,6 +58,9 @@ export default class DocTypeWidget extends TypeWidget { #processContent(url: string) { const dir = url.substring(0, url.lastIndexOf("/")); + // Remove top-level heading since it's already handled by the note title + this.$content.find("h1").remove(); + // Images are relative to the docnote but that will not work when rendered in the application since the path breaks. this.$content.find("img").each((i, el) => { const $img = $(el);