fix markdown support, clean up the visitors a bit.
Merge pull request #13 from beannaich/feature/markdown

fix markdown support, clean up the visitors a bit.