Hacker News new | ask | show | jobs
by gilbitron 4394 days ago
Thanks. To be honest I just used a /* */ comment block because it was simple, but I'll have a look at implementing YAML.
1 comments

How about gray-matter[1]? It supports YAML, TOML, JSON and Coffee. It can also auto-detect the type of front-matter.

[1] https://github.com/assemble/gray-matter#lang