Skip to content

Commit

Permalink
Really fix obsidian change detection
Browse files Browse the repository at this point in the history
  • Loading branch information
dprothero committed Mar 19, 2024
1 parent e9badb3 commit 5c3fc7c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/formats/markdownObsidian.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export async function convertToMarkdownObsidian(
MARKDOWN_SEPARATE_PATHS[docType]
);

let newMarkdown = "\n" + sourceReadmeContent + "\n";
let newMarkdown = "\n" + sourceReadmeContent;
const titleMap = new Map<string, string>();
const obsidianMarkdownFiles: string[] = [];

Expand Down Expand Up @@ -356,8 +356,8 @@ export async function convertToMarkdownObsidian(

process.stdout.write("Done\n");

// fs.writeFileSync("OLD.md", previousMarkdown);
// fs.writeFileSync("NEW.md", newMarkdown);
// fs.writeFileSync(`OLD_${docType}.md`, previousMarkdown);
// fs.writeFileSync(`NEW_${docType}.md`, newMarkdown);

return previousMarkdown !== newMarkdown;
}

0 comments on commit 5c3fc7c

Please sign in to comment.