Parse all markdown file metadata and edit them

I’d like to create a plugin to parse all files and edit the metadata of them.

basically, i want to find a way to parse metadata of markdown files and edit them based on some conditions.

there is soothing similar in make.md that parses markdown files and adds metadata for files for example each markdown can have an emoji in my case i want each markdown file to have a custom metadata.

You can get all markdown files objects

app.vault.getMarkdownFiles()

Then you can get the note’s metadata

app.metadataCache.getFileCache(fileObject).frontmatter
1 Like