fix markdown support, clean up the visitors a bit.