mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-29 19:12:27 +08:00
feat(in-app-help): remove duplicate <h1>
This commit is contained in:
parent
ebaba4ff4a
commit
bac529f1f1
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user