[TIKA-4724] Use IANA-registered text/markdown as primary type#2806
Merged
Conversation
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)
tballison
pushed a commit
that referenced
this pull request
May 11, 2026
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) (cherry picked from commit c297247)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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)
Thanks for your contribution to Apache Tika! Your help is appreciated!
Before opening the pull request, please verify that
TIKA-XXXX)[TIKA-XXXX] Issue or pull request title)./mvnw clean testmainbranch. If there are conflicts, please try to rebase the pull request branch on top of a freshly pulledmainbranchtika-bom/pom.xml.We will be able to faster integrate your pull request if these conditions are met. If you have any questions how to fix your problem or about using Tika in general, please sign up for the Tika mailing list. Thanks!