Skip to content

Commit

Permalink
fixed non-h2 heading content being removed on save
Browse files Browse the repository at this point in the history
  • Loading branch information
Francis Kafieh committed Nov 8, 2023
1 parent 983e383 commit ec92033
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/io/fileWriter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,8 @@ export const writeListsToLogFile = serialize(async () => {
return;
}

// TODO - MAKE THIS CUSTOMIZABLE (level === 2)
const followingHeadingIndex = headings.findIndex(
(heading, index) => index > primaryHeadingIndex && heading.level === 2
(_heading, index) => index > primaryHeadingIndex
);
try {
await app.vault.process(logNote, (data) => {
Expand Down

0 comments on commit ec92033

Please sign in to comment.