Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add text/markdown mimeType lookup by extension #85

Merged
merged 2 commits into from
May 9, 2023

Conversation

literallylara
Copy link
Contributor

@literallylara literallylara commented Mar 3, 2023

@google-cla
Copy link

google-cla bot commented Mar 3, 2023

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@literallylara literallylara changed the title Add text/x-markdown mimeType lookup by extension Add text/markdown mimeType lookup by extension Mar 3, 2023
Copy link
Member

@kevmoo kevmoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests? Changelog change? With version bump?

#swoon

lib/src/default_extension_map.dart Show resolved Hide resolved
@kevmoo
Copy link
Member

kevmoo commented Mar 6, 2023

@devoncarew @natebosch – thoughts?

@@ -434,6 +434,8 @@ const Map<String, String> defaultExtensionMap = <String, String>{
'mc1': 'application/vnd.medcalcdata',
'mcd': 'application/vnd.mcd',
'mcurl': 'text/vnd.curl.mcurl',
// https://www.rfc-editor.org/rfc/rfc7763
Copy link
Member

@natebosch natebosch Mar 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The RFC also mentions .markdown as an extension. Do we think that's unpopular enough now to not be worth supporting?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! In 2014, one of the authors of Markdown actually endorsed .markdown as the only extension they would use. Either way, I think it makes sense to add for the sake of completeness. I'll prepare a commit.

@natebosch natebosch merged commit cd8001e into dart-lang:master May 9, 2023
mosuem pushed a commit to dart-lang/tools that referenced this pull request Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mime: please add 'text/x-markdown' for markdown file extensions (md, markdown) to the _defaultExtensionMap
3 participants