Added markdown support for templates.