Fix Breadcrumbs not detecting frontmatter tags for Tag Notes Explicit Edge Builder #588
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes issue where Breadcrumbs could not detect tags in the frontmatter when building edges from tag notes. Fixes the issue I was having that I mentioned in #568, although I'm unsure if it fixes the problem the original issue creator was having.
Basically, it seems Obsidian may have updated their API, and frontmatter and body notes now appear in different formats and in different portions of the data, so it is necessary to check both. This also requires standardizing the formatting (whether to include the
#
in the string), since in frontmatter, Obsidian accepts either and displays them identically, but does not pass them to plugins identically.I also added proper returning of errors in a couple of spots, since otherwise those return statements will just return
undefined
.