@@ -697,7 +697,7 @@ def skip_unreadable_post(record):
697697
698698# Valid MIME types for cases where text is uploaded and immediately extracted,
699699# e.g. a charter or a review. Must be a tuple, not a list.
700- DOC_TEXT_FILE_VALID_UPLOAD_MIME_TYPES = ('text/plain' , 'text/markdown' , 'text/x-rst' )
700+ DOC_TEXT_FILE_VALID_UPLOAD_MIME_TYPES = ('text/plain' , 'text/markdown' , 'text/x-rst' , 'text/x-markdown' , )
701701
702702# Override this in settings_local.py if needed
703703CACHE_MIDDLEWARE_SECONDS = 300
@@ -917,12 +917,13 @@ def skip_unreadable_post(record):
917917MEETING_VALID_MIME_TYPE_EXTENSIONS = {
918918 'text/plain' : ['.txt' , '.md' , ],
919919 'text/markdown' : ['.txt' , '.md' , ],
920+ 'text/x-markdown' : ['.txt' , '.md' , ],
920921 'text/html' : ['.html' , '.htm' ],
921922 'application/pdf' : ['.pdf' ],
922923}
923924
924925MEETING_VALID_UPLOAD_MIME_FOR_OBSERVED_MIME = {
925- 'text/plain' : ['text/plain' , 'text/markdown' , ],
926+ 'text/plain' : ['text/plain' , 'text/markdown' , 'text/x-markdown' , ],
926927 'text/html' : ['text/html' , ],
927928 'application/pdf' : ['application/pdf' , ],
928929}
0 commit comments