Closed fitnr closed 8 years ago
Try setting options.strict
to true, if that doesn't work we either need to improve error handling, or the issue is with js-yaml.
Running with {strict: true}
throws a YAMLException
(duplicated mapping key). Thanks for the quick response.
no problem, thanks for using it
lol habit
Given a file like this (
test.html
):The data is completely empty because one key repeats. I would expect
gray-matter
to use the latest value in the front matter, or perhaps to throw an error.