move markdown file detection into ftdetect