]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-83505: Add markdown mimetype mapping (#17995)
authorRyan Batchelder <ryanbatch@gmail.com>
Sun, 5 May 2024 13:09:59 +0000 (09:09 -0400)
committerGitHub <noreply@github.com>
Sun, 5 May 2024 13:09:59 +0000 (13:09 +0000)
Lib/mimetypes.py
Misc/NEWS.d/next/Library/2020-01-14-09-46-51.bpo-39324.qUcDrM.rst [new file with mode: 0644]

index dad3813e39dbaeeefec986800c61322682b10ec3..021ae985b40eb0aaf683ffa8a73d4d8d541cc9a2 100644 (file)
@@ -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 (file)
index 0000000..357d5a2
--- /dev/null
@@ -0,0 +1 @@
+Add mime type mapping for .md <-> text/markdown