aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers/Muse.hs
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-05-07 11:45:33 +0200
committerJohn MacFarlane <jgm@berkeley.edu>2017-05-07 11:45:33 +0200
commit400fe3188e3f5a3e48700ae114a0da05ae6e599a (patch)
treeddd3b30cbb3c397f70cfa6fdf53b04a2edb54ecf /src/Text/Pandoc/Writers/Muse.hs
parentde0fd90051d1fa03cc19d771fed974fc8886c04e (diff)
downloadpandoc-400fe3188e3f5a3e48700ae114a0da05ae6e599a.tar.gz
Allow `--extract-media` to work with non-binary input formats.
If `--extract-media` is supplied with a non-binary input format, pandoc will attempt to extract the contents of all linked images, whether in local files, data: uris, or external uris. They will be named based on the sha1 hash of the contents. Closes #1583, #2289. Notes: - One thing that is slightly subideal with this commit is that identical resources will be downloaded multiple times. To improve this we could have mediabag store an original filename/url + a new name. - We might think about reusing some of this code, since more or less the same thing is done in the Docx, EPUB, PDF writers (with slight variations).
Diffstat (limited to 'src/Text/Pandoc/Writers/Muse.hs')
0 files changed, 0 insertions, 0 deletions