Added cleanup for pandoc markdown