aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/MIME.hs
AgeCommit message (Collapse)Author
2017-05-13Update dates in copyright noticesAlbert Krewinkel
This follows the suggestions given by the FSF for GPL licensed software. <https://www.gnu.org/prep/maintain/html_node/Copyright-Notices.html>
2017-03-04Stylish-haskell automatic formatting changes.John MacFarlane
2017-02-24SelfContained: don't use data URIs for script or style.John MacFarlane
Instead, just use script or style tags with the content inside. The old method with data URIs prevents certain optimizations outside pandoc. Exception: data URIs are still used when a script contains `</script>` or a style contains `</`. Closes #3423. Also, in MIME, use application/javascript (not application/x-javascript).
2017-02-22Added emf to mimeTypes with type application/x-msmetafile.John MacFarlane
See #1713.
2016-11-12Use correct mime types for woff and woff2.John MacFarlane
Closes #3228.
2016-03-22Updated copyright dates to include 2016.1.17.0.2John MacFarlane
2015-11-09Revert "Use -XNoImplicitPrelude and 'import Prelude' explicitly."John MacFarlane
This reverts commit c423dbb5a34c2d1195020e0f0ca3aae883d0749b.
2015-11-08Use -XNoImplicitPrelude and 'import Prelude' explicitly.John MacFarlane
This is needed for ghci to work with pandoc, given that we now use a custom prelude. Closes #2503.
2015-05-27Fixed svg handling in EPUB writer.John MacFarlane
This is a crude workaroud for #2183. A correct fix would require having openURL and fetchItem return a content encoding as well as a content type.
2015-04-29Added woff2 to MIME typesAlfred Wechselberger
2015-04-26Updated copyright notices to -2015. Closes #2111.John MacFarlane
2014-11-16Changed mime type for otf to application/vnd.ms-opentype.John MacFarlane
Closes #1761. This is needed for epub3 validation. See http://www.idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.3.1
2014-10-04add mime type for WebVTTJason Ronallo
2014-08-17MIME cleanup.Artyom Kazak
* Create a type synonym for MIME type (instead of `String`). * Add `getMimeTypeDef` function. * Avoid recreating MIME type `Map`s every time. * Move “Formula-...” case handling into `getMimeType`.
2014-05-09Update copyright notices for 2014, add missing noticesAlbert Krewinkel
2014-03-14EPUB writer: Incorporate files linked in <video> tags.John MacFarlane
src and poster will both be incorporated into content.opf and the epub container. This partially address #1170. Still need to do something similar for <audio>.
2014-01-07Added wmf and emf mime types.John MacFarlane
2013-11-30MIME: Add entry for jfif.John MacFarlane
2013-11-19MIME: In looking up extensions, drop the encoding info.John MacFarlane
E.g. for 'image/jpg;base64' we should lookup 'image/jpg'.
2013-07-20PDF generation improvements.John MacFarlane
* `Text.Pandoc.PDF` exports `makePDF` instead of `tex2pdf`. (API change.) * `makePDF` walks the pandoc AST and checks for the existence of images in the local directory. If they are not found, it attempts to find them, either in the directory containing the first source file, or at an absolute URL, or at a URL relative to the base URL of the first command line argument. * Closes #917.
2013-01-17MIME: Support vs and fs as text/plain.John MacFarlane
These are used in revealjs css.
2012-10-11Added MIME types for .wof and .eot.John MacFarlane
Closes #640. i#
2012-07-26Fixed whitespace errors.John MacFarlane
2012-06-28Added webm to mime types. Closes #543.John MacFarlane
2012-01-30Added `--epub-embed-font` option.John MacFarlane
* This can be repeated for multiple fonts. * Added parameter for fonts to embed to writeEPUB. * Added ttf, otf to Mime types in Text.Pandoc.MIME.
2012-01-14Added 'layout-cache' to getMimeType.John MacFarlane
This ensures that the META-INF/manifest.xml for ODT files will have everything it needs. Fixes a bug using modified ODT files as `--reference-odt`.
2011-07-19Added unexported Text.Pandoc.MIME.John MacFarlane
Moved getMimeType from Text.Pandoc.Shared to Text.Pandoc.MIME, so we won't have an API change.