The api that triggered the event when the file was saved

Is there an api that triggers an event when the markdwon file is saved?

There are multiple events that qualify:

https://github.com/obsidianmd/obsidian-api/blob/b9bde9e32c007eb28c0fd632cf2c42b01dfd022a/obsidian.d.ts#L3505 when you only need the file itself

https://github.com/obsidianmd/obsidian-api/blob/b9bde9e32c007eb28c0fd632cf2c42b01dfd022a/obsidian.d.ts#L2176 when you also need the parsed metadata about that file

1 Like

Thanks