icyleaf / markd

Yet another markdown parser, Compliant to CommonMark specification, written in Crystal.
MIT License
109 stars 30 forks source link

Support Front Matter? #31

Closed takanotume24 closed 4 years ago

takanotume24 commented 4 years ago

Hello, thank you for a very easy to use library! I'd like to ask, do you plan to support https://jekyllrb.com/docs/front-matter/ ? This is a format supported by Grav, a flat file CMS, or Github. (But it's not a standard form, I guess ...) I looked at the source code to try to make it work, but my programming skills didn't allow me to figure it out. If you can deal with it, I would appreciate it. Thank you.

takanotume24 commented 4 years ago

It's a simple one, but I made a wrapper library to try it out. https://github.com/takanotume24/front-matter-markd The implementation is to match the pattern(---) with a regular expression and let the yaml parser process it.

icyleaf commented 4 years ago

Compliant to CommonMark specification (v0.27).