Can you be more specific with what you are trying to do with your metadata? Why do you need three dashed lines to not turn into a horizontal line?
This behavior does not invalidate the metadata it encloses in frontmatter YAML, it’s a built-in feature and I don’t think you can turn it off, nor would you want to.
The --- substitution always happens when three dashes are alone on a line.
To avoid it, you could put a space before it, or a character after it.
But this breaks your frontmatter.
This is part of Markdown, so any markdown editor will turn “—” into a horizontal line. You can use backticks to have Markdown treat it like source code and not convert to a horizontal line. This page is a good resource for markdown syntax.
This is what it looks like in edit mode without the dashes:
And then in reading mode it turns into this rather than the meta summary:
I’ve restarted the app played around with some themes and it seems to be working again. Previously even if I entered the dashes on the first line it was still creating the horizontal line which was becoming annoying.
Looks like it was just something playing up in the end, will keep an eye on it.
Glad you figured it out!
Yes, until you have typed both the beginning and ending lines of dashes for your metadata the editor might be confused. After you have typed both lines (with the first one being the first thing in your file), I would hope it would be un-confused!