This is an automated email from the ASF dual-hosted git repository.
tballison pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tika.git
The following commit(s) were added to refs/heads/main by this push:
new c297247828 [TIKA-4724] Use IANA-registered text/markdown as primary
type (#2806)
c297247828 is described below
commit c29724782854bb5a319f4a1940d0828a58ace3f9
Author: Shawn Rutledge <[email protected]>
AuthorDate: Mon May 11 21:54:03 2026 +0200
[TIKA-4724] Use IANA-registered text/markdown as primary type (#2806)
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)
---
.../src/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 e5863a1998..f447bf3d97 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 @@
<sub-class-of type="text/plain"/>
</mime-type>
- <mime-type type="text/x-web-markdown">
- <_comment>Markdown source code</_comment>
+ <mime-type type="text/markdown">
+ <_comment>Markdown document</_comment>
+ <alias type="text/x-web-markdown"/>
+ <alias type="text/x-markdown"/>
<glob pattern="*.md"/>
<glob pattern="*.mdtext"/>
<glob pattern="*.mkd"/>