aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Reed <michael@michaelreed.io>2020-06-17 12:15:50 -0400
committerGitHub <noreply@github.com>2020-06-17 09:15:50 -0700
commitbf95282436436061341c80a41df585a33c849fec (patch)
tree1c465708d8a3ec81816430b0f36f960e5f00d654 /src
parenta6a7f08a2bffa9a806bc22b2a967ac15653046b7 (diff)
downloadpandoc-bf95282436436061341c80a41df585a33c849fec.tar.gz
Fix MIME type for TrueType fonts in EPUBs (#6464)
Per the EPUB 3.2 spec, "application/x-font-truetype" is no longer a valid identifier for TrueType (.ttf) fonts [1]. This fixes warnings when validating pandoc-generated EPUBs using `epubcheck` [2]. References [3]. [1]: https://www.w3.org/publishing/epub3/epub-spec.html#sec-core-media-types [2]: https://github.com/w3c/epubcheck
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/MIME.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/MIME.hs b/src/Text/Pandoc/MIME.hs
index 549ed73fe..4fe25ebe1 100644
--- a/src/Text/Pandoc/MIME.hs
+++ b/src/Text/Pandoc/MIME.hs
@@ -461,7 +461,7 @@ mimeTypesList =
,("ts","text/texmacs")
,("tsp","application/dsptype")
,("tsv","text/tab-separated-values")
- ,("ttf","application/x-font-truetype")
+ ,("ttf","application/font-sfnt")
,("txt","text/plain")
,("udeb","application/x-debian-package")
,("uls","text/iuls")