chhoumann / MetaEdit

MetaEdit for Obsidian
https://bagerbach.com
GNU General Public License v3.0
393 stars 15 forks source link

Adds a check for existing frontmatter before using it in onFileModify #66

Closed ryanjamurphy closed 2 years ago

ryanjamurphy commented 2 years ago

Solves #62.

I think if (metadata.frontmatter != null) is the best way to check if metadata has a frontmatter property... there may be something better, though, because it seems kinda hamfisted.

chhoumann commented 2 years ago

Hey @ryanjamurphy, thank you very much for your PR! Looks great.

dredhorse commented 2 years ago

Could you create a new version of the plugin which contains this fix? See also https://github.com/chhoumann/MetaEdit/issues/72#issue-1226593720

github-actions[bot] commented 1 year ago

:tada: This PR is included in version 1.8.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: