Shawn Rutledge created TIKA-4724:
------------------------------------
Summary: Need to add text/markdown
Key: TIKA-4724
URL: https://issues.apache.org/jira/browse/TIKA-4724
Project: Tika
Issue Type: Bug
Components: mime
Affects Versions: 3.3.0
Reporter: Shawn Rutledge
[https://www.rfc-editor.org/rfc/rfc7763.html] says "text/markdown" is the right
mime type for markdown, but Tika has it only as text/x-web-markdown. This
causes some trouble in Qt on platforms where we use Tika as our mime type
database: [https://doc.qt.io/qt-6/qfiledialog.html#setMimeTypeFilters] is used
to map mime types to name.extension filters for a file dialog. The user
expects to use "text/markdown" as the mime type for markdown, and on platforms
that have independent mime databases (such as Linux), that works: the result is
"*.md" shows up as one of the file filters for the dialog (along with whatever
alternative extensions). On macOS though, it doesn't, because there we use
tika, and it expects text/x-web-markdown.
The Qt bug is [https://qt-project.atlassian.net/browse/QTBUG-146675] and maybe
we can fix it in Qt for now, but periodically sync the tika database, so it can
easily come up again if it's not fixed upstream.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)