added a new argument 'template' to markdownToHTML() to change the
default template