Skip to content

Commit 41eeb9f

Browse files
rdbatchmiss-islington
authored andcommitted
pythongh-83505: Add markdown mimetype mapping (pythonGH-17995)
(cherry picked from commit b6f0ab5) Co-authored-by: Ryan Batchelder <[email protected]>
1 parent 68316a0 commit 41eeb9f

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)