From: Ryan Batchelder Date: Sun, 5 May 2024 13:09:59 +0000 (-0400) Subject: gh-83505: Add markdown mimetype mapping (#17995) X-Git-Tag: v3.13.0b1~96 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b6f0ab5b1cb6d779efe4867d83a60e8d66c48dee;p=thirdparty%2FPython%2Fcpython.git gh-83505: Add markdown mimetype mapping (#17995) --- diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py index dad3813e39db..021ae985b40e 100644 --- a/Lib/mimetypes.py +++ b/Lib/mimetypes.py @@ -552,6 +552,8 @@ def _default_mime_types(): '.csv' : 'text/csv', '.html' : 'text/html', '.htm' : 'text/html', + '.md' : 'text/markdown', + '.markdown': 'text/markdown', '.n3' : 'text/n3', '.txt' : 'text/plain', '.bat' : 'text/plain', diff --git a/Misc/NEWS.d/next/Library/2020-01-14-09-46-51.bpo-39324.qUcDrM.rst b/Misc/NEWS.d/next/Library/2020-01-14-09-46-51.bpo-39324.qUcDrM.rst new file mode 100644 index 000000000000..357d5a26fee7 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2020-01-14-09-46-51.bpo-39324.qUcDrM.rst @@ -0,0 +1 @@ +Add mime type mapping for .md <-> text/markdown