front-matter icon indicating copy to clipboard operation
front-matter copied to clipboard

Why only YAML support ?

Open yonnic opened this issue 3 years ago • 2 comments

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 ?

yonnic avatar Aug 15 '22 20:08 yonnic

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: @.***>

jxson avatar Aug 22 '22 17:08 jxson

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

gomes042 avatar Oct 05 '22 04:10 gomes042