I do the same. I use my yaml frontmatter for tags and related topics (backlinks). With this feature turned on, none of my tags or backlinks within the yaml block work. I would expect it to. Or at least have an option to enable/disable it.
I’m pretty new to this. I assume that is what we would use the yaml frontmatter for (tags, etc.). If there is a better way, please let me know.
I’m the OP of the bug report, and this is a major issue for me. I also use tags and links in my front-matter, and I have been using custom delimiters to avoid Obsidian formatting and will continue to do so.
For all of those who are so excited about YAML front-matter blocks, could you share some use cases? (Perhaps under “Share & showcase”.) Since so much of the point of Obsidian seems to be the linking, I’m curious where the advantages lie in excluding key links within a front-matter block.
The current idea is to use the YAML block for dev\plugins metadata. We are finalizing this decision.
Users should not really use the YAML metadata directly. If users want to use a frontmatter, they can do so outside the YAML block, i.e.
# your frontmatter
bla bla bla
Just want to let everyone know that YAML frontmatter is typically removed from the source code when rendering, and the variables stored are used as metadata for whichever app is reading it.
Right now we aren’t using it to store anything, but in the future, plugins would be able to access a built-in way of making decisions based on the data inside the frontmatter.
This may mean showing some UI that contains data, such as tags showing as a tag list on top of the file, or links that render as “related” somewhere else. That would be entirely customizable by the plugin and out of our control.
In the meantime, since this metadata is almost always hidden from view in other apps, we’ll be doing the same.
I do recognize the use case for some kind of user-defined front matter that’s different from what “markdown frontmatter” usually means. You can (and should) just use plain Markdown properly and do it like this:
links: [[My other file]]
This is fair enough. Now I will try to remove the start of the YAML block from many of my notes.
Can anyone help me with regex searching, so I can be sure to get all my notes?
I want to search for the string --- but only if it is the very first set of characters in the document. Otherwise my search will return every horizontal line I have ever made.
That’s what I meant. I was interested in YAML, mainly for sorting purposes (among other benefits to YAML). I appreciate sorting by the date in YAML, rather than by edit time. I would have taken a sort function by creation date, but with respect to migration, I think that would screw some things up, so yeah, thats why I like the sorting by YAML idea.
I would also be happy if YAML matter could nonetheless remain linkable. I use it to essentially attach file-level metadata to a note, such as major tags, authors for books, etc., as I don’t really want this information to be part of the final note, and yet I want it to be discoverable by search, the graph etc.