Improve the template and use pandoc.