Typesets markdown into a pdf or outputs html