rhiokim / haroopad

Haroopad - The Next Document processor based on Markdown
http://pad.haroopress.com
GNU General Public License v3.0
1.6k stars 225 forks source link

Support for TOML front matter #559

Open colinbate opened 8 years ago

colinbate commented 8 years ago

I know there is a separate request for supporting YAML front matter which I agree is probably more popular, but Hugo promotes TOML front matter, and I've now adopted that in multiple projects.

However, I was thinking that it may be more powerful to provide some sort of transformation capability that users could tap into. Either hooks into the parser or perhaps just some generic filter. I've written a little node app which strips the TOML out of a markdown document and places the title attribute at the top of the document as an H1. I use this with another Markdown viewer. https://bitbucket.org/colinbate/md-clean/

Just a thought.

nykh commented 8 years ago

I ditto this