Use pandoc mode for markdown if pandoc exists