Converts markdown to html in templates.