Closed Oddsor closed 2 years ago
In this proposed fix I've modified the yaml metadata test-file to include a few extra newlines: https://github.com/yogthos/markdown-clj/pull/177
The best way I could think of to get this done correctly (🤞 ) was to ensure that the parsers report how many lines they consume.
Thanks, the fix looks good and I think we can close this one if everything looks ok on your end.
Brilliant, thanks! My yaml-mattered Markdown files now seem to parse better than before, the metadata often had lots of empty lines etc 😊
Happy holidays!
Parsing markdown files with yaml front matter currently expects that the yaml data does not contain empty lines, and that an empty line exists after the ending dashes:
However in most descriptions of yaml front matter I've seen you should also be able to include an arbitrary number of empty lines in the yaml definition as well as no empty line after the delimiter: