summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Batchelder <ryanbatch@gmail.com>2024-05-05 13:09:59 (GMT)
committerGitHub <noreply@github.com>2024-05-05 13:09:59 (GMT)
commitb6f0ab5b1cb6d779efe4867d83a60e8d66c48dee (patch)
treea28096653eef668737b1745f615b675ec076807b
parentaeb36c5bb9f0e0813ac7c244c094abdcd967d622 (diff)
downloadcpython-b6f0ab5b1cb6d779efe4867d83a60e8d66c48dee.zip
cpython-b6f0ab5b1cb6d779efe4867d83a60e8d66c48dee.tar.gz
cpython-b6f0ab5b1cb6d779efe4867d83a60e8d66c48dee.tar.bz2
gh-83505: Add markdown mimetype mapping (#17995)
-rw-r--r--Lib/mimetypes.py2
-rw-r--r--Misc/NEWS.d/next/Library/2020-01-14-09-46-51.bpo-39324.qUcDrM.rst1
2 files changed, 3 insertions, 0 deletions
diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py
index dad3813..021ae98 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 0000000..357d5a2
--- /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