-
Notifications
You must be signed in to change notification settings - Fork 79
Description
This is partly a bug, partly a discussion about how the intended behavior should be.
Issue, I have a markdown file with a "----" somewhere in the middle of the document, which however never get's terminated. It's "just" a logical separation of content not at all affiliated with YAML Syntax. However the "ExtractFrontMatter"-Module kick's in an start's doing it's thing, handing over to Statiq.Yaml which crashes at ParseYaml due to "Did not find expected < document end >.", I do understand this "issue" is within the YamlDotNet Library, which however shouldn't ever be called in the first place, as the content is no YAML (markdown).
Technically there should not be any restriction and as such no content omitted from Markdown if somewhere in the middle of the content "---" is contained. Based on Jekyll's description "[...] The front matter must be the first thing [...]" so before prosing a fix, I'd like to understand what should be the intended behavior as this would be a potential breaking change.
In the Unit Test Project however I find many tests, which are expecting Front Matter being expected in the middle of the document and thus modifying the output. Thus the confusion.