Add markdown support to YAML entries
What
Adds markdown support to Yaml values pulled from Haml files.
How
- Add kramdown helper to custom helpers
- Call from Haml with
= markdown(foo.bar)
Why
We'll be able to write in markdown kramdown in text entries in Yaml files and pull them from Haml files.
This will not only help us with release posts (https://gitlab.com/gitlab-com/www-gitlab-com/merge_requests/5551) but also can be very handy for the team.yml
data, events.yml
data, etc.
References:
- https://forum.middlemanapp.com/t/rendering-markdown-from-json-data-file/1845/2
- http://stackoverflow.com/questions/43926754/how-to-output-data-from-yaml-variables-written-in-markdown-into-an-html-haml-f
cc/ @SeanPackham @axil
Edited by username-removed-236961