Generate html from markdown templates