jxson / front-matter

Extract YAML front matter from strings
MIT License
674 stars 76 forks source link

Why only YAML support ? #87

Open yonnic opened 2 years ago

yonnic commented 2 years ago

Frontmatter can be written in YAML, TOML, JSON and more Mostly all frontmatter packages including this one only support YAML.

Are there any plans on extending this package ?

jxson commented 2 years ago

Yeah, this is a good point.

It wouldn't be too big of a change to remove the actual parsing from this lib. Then any parser could be used on the extracted front-matter and this package wouldn't need to track updates to the yaml parser dep.

On Mon, Aug 15, 2022 at 1:25 PM yonnic @.***> wrote:

Frontmatter can be written in YAML, TOML, JSON and more Mostly all frontmatter including this one only support YAML.

Are there any plans on extending this package ?

— Reply to this email directly, view it on GitHub https://github.com/jxson/front-matter/issues/87, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAACV4MAK4T5WUWHRJ2V6YDVZKRSLANCNFSM56TMGJLQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

gomes42 commented 2 years ago

https://github.com/jonschlinkert/gray-matter may help...