Extended Markdown processing based on pandoc.