From 41eeb9f5e02b705fb6c64a5593515e60f1044152 Mon Sep 17 00:00:00 2001 From: Ryan Batchelder Date: Sun, 5 May 2024 09:09:59 -0400 Subject: [PATCH] gh-83505: Add markdown mimetype mapping (GH-17995) (cherry picked from commit b6f0ab5b1cb6d779efe4867d83a60e8d66c48dee) Co-authored-by: Ryan Batchelder --- Lib/mimetypes.py | 2 ++ .../next/Library/2020-01-14-09-46-51.bpo-39324.qUcDrM.rst | 1 + 2 files changed, 3 insertions(+) create mode 100644 Misc/NEWS.d/next/Library/2020-01-14-09-46-51.bpo-39324.qUcDrM.rst diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py index 3cc027aa368b6b..10f3ddc5a152f4 100644 --- a/Lib/mimetypes.py +++ b/Lib/mimetypes.py @@ -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 index 00000000000000..357d5a26fee743 --- /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