The Gemini 2.0 series supports Markdown files with the MIME type text/md
. However, the 2.5 series returns the error “Unsupported MIME type: text/md”. This appears to be a bug, since the docs mention compatibility with this MIME type.
As a separate issue, the MIME type net.daringfireball.markdown
should also be supported for Markdown files, since this is the MIME type that is returned for Markdown files on Apple’s platforms. I’ve had to work around this in my own Gemini client by using the MIME type that the Gemini API expects. Both MIME types should be supported.