Make md file extension optional