diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-05-07 11:45:33 +0200 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-05-07 11:45:33 +0200 |
commit | 400fe3188e3f5a3e48700ae114a0da05ae6e599a (patch) | |
tree | ddd3b30cbb3c397f70cfa6fdf53b04a2edb54ecf /test/docbook-reader.native | |
parent | de0fd90051d1fa03cc19d771fed974fc8886c04e (diff) | |
download | pandoc-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 'test/docbook-reader.native')
0 files changed, 0 insertions, 0 deletions