feat(in-app-help): remove duplicate <h1>

This commit is contained in:
Elian Doran 2025-02-02 16:18:07 +02:00
parent ebaba4ff4a
commit bac529f1f1
No known key found for this signature in database

View File

@ -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);