]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-83505: Add markdown mimetype mapping (GH-17995) (#118594)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 6 Aug 2024 14:05:18 +0000 (16:05 +0200)
committerGitHub <noreply@github.com>
Tue, 6 Aug 2024 14:05:18 +0000 (10:05 -0400)
gh-83505: Add markdown mimetype mapping (GH-17995)
(cherry picked from commit b6f0ab5b1cb6d779efe4867d83a60e8d66c48dee)

Co-authored-by: Ryan Batchelder <ryanbatch@gmail.com>
Lib/mimetypes.py
Misc/NEWS.d/next/Library/2020-01-14-09-46-51.bpo-39324.qUcDrM.rst [new file with mode: 0644]

index 3cc027aa368b6b7c18adf71df0de714c9b290b5d..10f3ddc5a152f43f74f6636c59a29f5a561210fa 100644 (file)
@@ -551,6 +551,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