Add template support to markdown