Render markdown to html and pdf