jonschlinkert / gray-matter

Smarter YAML front matter parser, used by metalsmith, Gatsby, Netlify, Assemble, mapbox-gl, phenomic, vuejs vitepress, TinaCMS, Shopify Polaris, Ant Design, Astro, hashicorp, garden, slidev, saber, sourcegraph, and many others. Simple to use, and battle tested. Parses YAML by default but can also parse JSON Front Matter, Coffee Front Matter, TOML Front Matter, and has support for custom parsers. Please follow gray-matter's author: https://github.com/jonschlinkert
https://github.com/jonschlinkert
MIT License
3.97k stars 138 forks source link

Can't parse datetime format #142

Closed tfsomrat closed 6 months ago

tfsomrat commented 2 years ago

Gray-matter can't parse date format unless it's a string. but the date is not actually a string.

an example that doesn't work:

date: 2019-01-01

and an example that works:

date: "2019-01-01"