Detect markdown file extension.