Closed ianstormtaylor closed 9 years ago
EDIT: Sorry, I misunderstood your words…
Hey, looking to port Metalsmith to gray-matter!
Awesome! that's great!
About the newline, sure no problem. Someone else recently mentioned that it should strip the newline.
The extra newline can be easily detected after extracting the front matter.
Meaning that implementors could strip the newline? true, but the same point holds for adding a newline.
EDIT: Sorry, I misunderstood your words…
closing based on #13
Hey, looking to port Metalsmith to gray-matter!
Ran into a question: it was previously using front-matter which stripped a trailing newline after the closing
---
, which seemed to mesh more with how a user "perceives" the frontmatter, if not with the way a computer reads it.Such that...
...would end up being stripped so that it is exactly equal to...
What do you think about supporting that, by swallowing a single newline if one (or more) are present after the closing
---
? Technically not "pure", but matches with users editing the frontmatter more I think?