From f52be989ec3c18fad0b79ceebeefc06ed255e7d6 Mon Sep 17 00:00:00 2001 From: Ryan Batchelder Date: Mon, 13 Jan 2020 15:01:43 -0500 Subject: [PATCH 1/3] bpo-39324: Add markdown mimetype mapping --- Lib/mimetypes.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py index e972ca2e291a0b..8e6642e9fcb6a0 100644 --- a/Lib/mimetypes.py +++ b/Lib/mimetypes.py @@ -518,6 +518,7 @@ def _default_mime_types(): '.csv' : 'text/csv', '.html' : 'text/html', '.htm' : 'text/html', + '.md' : 'text/markdown', '.txt' : 'text/plain', '.bat' : 'text/plain', '.c' : 'text/plain', From 768d007f6ab7c9e0ce93c2132ae1dc1e60ba4783 Mon Sep 17 00:00:00 2001 From: Ryan Batchelder Date: Tue, 14 Jan 2020 09:48:34 -0500 Subject: [PATCH 2/3] bpo-39324: Add NEWS entry for markdown mime changes --- .../NEWS.d/next/Library/2020-01-14-09-46-51.bpo-39324.qUcDrM.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 Misc/NEWS.d/next/Library/2020-01-14-09-46-51.bpo-39324.qUcDrM.rst 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 From db4bad4e543424dcbe6046d1295c8bd2dac378d5 Mon Sep 17 00:00:00 2001 From: Ryan Batchelder Date: Tue, 21 Jan 2020 08:38:27 -0500 Subject: [PATCH 3/3] Add .markdown extension mapping to markdown mimetype --- Lib/mimetypes.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py index 8e6642e9fcb6a0..b1e5a7f365f1d4 100644 --- a/Lib/mimetypes.py +++ b/Lib/mimetypes.py @@ -519,6 +519,7 @@ def _default_mime_types(): '.html' : 'text/html', '.htm' : 'text/html', '.md' : 'text/markdown', + '.markdown': 'text/markdown', '.txt' : 'text/plain', '.bat' : 'text/plain', '.c' : 'text/plain',