You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Shawn Rutledge (Jira)" <ji...@apache.org> on 2026/05/11 05:51:00 UTC

[jira] [Updated] (TIKA-4724) Need to add text/markdown

     [ https://issues.apache.org/jira/browse/TIKA-4724?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shawn Rutledge updated TIKA-4724:
---------------------------------
    Description: 
[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 we periodically sync the tika database, so it can easily come up again if it's not fixed upstream.

  was:
[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.


> 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
>            Priority: Major
>
> [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 we 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)