Browse Source

[mimetypes.conf] add text/markdown to utf-8 list, regenerate mimetypes.conf

Change-Id: I653b49a49f348224f6b29d76194cf1061968b494
master
Stefan Bühler 3 years ago
parent
commit
ca446911ef
2 changed files with 10 additions and 0 deletions
  1. +3
    -0
      contrib/create-mimetypes.conf.pl
  2. +7
    -0
      contrib/mimetypes.conf

+ 3
- 0
contrib/create-mimetypes.conf.pl View File

@@ -9,9 +9,12 @@ use strict;
# text/html IS NOT INCLUDED: html has its own method for defining charset
# (<meta>), but the standards specify that content-type in HTTP wins over
# the setting in the html document.
# text/markdown doesn't have an official default charset, but requires
# one being specified - it seems reasonable to hardcode it to UTF-8
my %text_utf8 = map { $_ => 1 } qw(
css
csv
markdown
plain
x-bibtex
x-boo


+ 7
- 0
contrib/mimetypes.conf View File

@@ -40,7 +40,10 @@ setup {
".mxf" => "application/mxf",
".asn" => "application/octet-stream",
".bin" => "application/octet-stream",
".deploy" => "application/octet-stream",
".ent" => "application/octet-stream",
".msp" => "application/octet-stream",
".msu" => "application/octet-stream",
".oda" => "application/oda",
".opf" => "application/oebps-package+xml",
".ogx" => "application/ogg",
@@ -226,6 +229,8 @@ setup {
".maker" => "application/x-maker",
".mif" => "application/x-mif",
".m3u8" => "application/x-mpegURL",
".application" => "application/x-ms-application",
".manifest" => "application/x-ms-manifest",
".wmd" => "application/x-ms-wmd",
".wmz" => "application/x-ms-wmz",
".bat" => "application/x-msdos-program",
@@ -448,6 +453,8 @@ setup {
".html" => "text/html",
".shtml" => "text/html",
".uls" => "text/iuls",
".markdown" => "text/markdown; charset=utf-8",
".md" => "text/markdown; charset=utf-8",
".mml" => "text/mathml",
".asc" => "text/plain; charset=utf-8",
".brf" => "text/plain; charset=utf-8",


Loading…
Cancel
Save