switched to Pandoc for markdown parsing