noatpad / obsidian-banners

An Obsidian plugin that adds banners to your notes
MIT License
616 stars 39 forks source link

YAML parsing error causes unopenable file #120

Closed YummyOreo closed 11 months ago

YummyOreo commented 12 months ago

If you have a file with invalid frontmatter, like some templates, banners plugin will cause it close.

Repo: make a file with the following in it

---
test: {}{}
---

close it and try and reopen it with banners on

noatpad commented 11 months ago

Noted and a fix for it ready on the next beta release. Forgot to add a safeguard around parseYaml(), whoops

noatpad commented 11 months ago

Should be good to go now in https://github.com/noatpad/obsidian-banners/releases/tag/2.0.1-beta!