You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The front matter parser is entirely too loose. The idea of front matter is that it's at the top of the file. The current implementation is looking for lines that look like front matter anywhere in the file.
The parser is also running .strip on the line before analyzing it, which causes it to match lines that have indented ---.
Both of these loose checks cause processing errors on Markdown (and other markup languages) that allow three hypens in the content.
The rules for locating front matter should be as follows:
The first line must start with three hyphens (e.g., ---), followed only by whitespace
The front matter ends when the next line that starts with three hyphens followed only be whitespace is found
No other lines in the file will be scanned for front matter delimiters outside of these two matches
The text was updated successfully, but these errors were encountered:
The front matter parser is entirely too loose. The idea of front matter is that it's at the top of the file. The current implementation is looking for lines that look like front matter anywhere in the file.
The parser is also running
.strip
on the line before analyzing it, which causes it to match lines that have indented---
.Both of these loose checks cause processing errors on Markdown (and other markup languages) that allow three hypens in the content.
The rules for locating front matter should be as follows:
---
), followed only by whitespaceThe text was updated successfully, but these errors were encountered: