Autodetect markdown documents