Skip to content

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

Merged
chhoumann merged 1 commit intochhoumann:masterfrom
ryanjamurphy:master
Apr 20, 2022
Merged

Adds a check for existing frontmatter before using it in onFileModify#66
chhoumann merged 1 commit intochhoumann:masterfrom
ryanjamurphy:master

Conversation

@ryanjamurphy
Copy link
Copy Markdown

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
Copy link
Copy Markdown
Owner

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

@dredhorse
Copy link
Copy Markdown

Could you create a new version of the plugin which contains this fix? See also #72 (comment)

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 2, 2023

🎉 This PR is included in version 1.8.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants