Skip to content

Commit 7063665

Browse files
[3.12] gh-83505: Add markdown mimetype mapping (GH-17995) (#118594)
gh-83505: Add markdown mimetype mapping (GH-17995) (cherry picked from commit b6f0ab5) Co-authored-by: Ryan Batchelder <[email protected]>
1 parent be88b3b commit 7063665

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Lib/mimetypes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,8 @@ def _default_mime_types():
551551
'.csv' : 'text/csv',
552552
'.html' : 'text/html',
553553
'.htm' : 'text/html',
554+
'.md' : 'text/markdown',
555+
'.markdown': 'text/markdown',
554556
'.n3' : 'text/n3',
555557
'.txt' : 'text/plain',
556558
'.bat' : 'text/plain',
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add mime type mapping for .md <-> text/markdown

0 commit comments

Comments
 (0)