From 842c267ea25ff32116979d8a2ce3ef0b158d0a1e Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Mon, 11 May 2026 08:07:35 +0200 Subject: [PATCH] [TIKA-4724] Use IANA-registered text/markdown as primary type text/markdown has been the IANA-registered media type for Markdown since RFC 7763 (March 2016). freedesktop's shared-mime-info has used it as the primary type for years, with text/x-markdown as an alias. Consumers that fall back to Tika's bundled database when no system shared-mime-info is installed (e.g. Qt on macOS and Windows) cannot currently resolve text/markdown and silently drop the type from filter lists. Promote text/markdown to the primary type and keep Tika's historical text/x-web-markdown together with freedesktop's text/x-markdown as aliases, so existing lookups continue to resolve. Update the comment to match freedesktop's wording. Generated-by: Claude Opus 4.7 (claude-opus-4-7) --- .../main/resources/org/apache/tika/mime/tika-mimetypes.xml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml b/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml index e5863a19986..f447bf3d976 100644 --- a/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml +++ b/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml @@ -8533,8 +8533,10 @@ - - <_comment>Markdown source code + + <_comment>Markdown document + +