diff options
author | Matthew Pickering <matthewtpickering@gmail.com> | 2014-08-08 23:04:03 +0100 |
---|---|---|
committer | Matthew Pickering <matthewtpickering@gmail.com> | 2014-08-08 23:04:03 +0100 |
commit | cfd8c0214c3f369d0f8c6f033325c343b78c7659 (patch) | |
tree | 4936855572752add4f3d3620274fb10cded172e9 /src/Text/Pandoc/Shared.hs | |
parent | 40ae8efddc243f75941328b66fce94e0c0ff3e16 (diff) | |
download | pandoc-cfd8c0214c3f369d0f8c6f033325c343b78c7659.tar.gz |
EPUB Reader: Improved robustness of image extraction
We now maintain the invariant that when fetchImages is called,
all images have absolute paths.
This patch fixes several bugs relating to this as there are three places
where images can be introduced.
(1) During the HTML parse
(2) As spine elements
(3) As a cover image
For (1), the paths are corrected by the transformation renameImages
For (2) and (3), we need to append the "root" to the path we parse from the
spine
Diffstat (limited to 'src/Text/Pandoc/Shared.hs')
0 files changed, 0 insertions, 0 deletions