Recognize popular markdown file extensions and set the correct filetype.