aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers/EPUB.hs
AgeCommit message (Collapse)AuthorFilesLines
2014-08-08EPUB Reader: Improved robustness of image extractionMatthew Pickering1-7/+9
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
2014-08-08EPUB Reader: Fixed regressions in image extractionMatthew Pickering1-7/+7
Before the images were relative to the position of the package file. The collapse function changed this so that they were then absolute in the archive but the fetchImages function wasn't updated to recognise this.
2014-08-08EPUB Reader: Use collapseFilePathMatthew Pickering1-14/+3
2014-08-08EPUB Reader: Removed incorrectly set reader flagMatthew Pickering1-5/+9
2014-08-07EPUB Reader: Improved how images are extractedMatthew Pickering1-23/+45
2014-07-31EPUB Reader: Now uses the new MediaBag for imagesMatthew Pickering1-20/+45
2014-07-31EPUB Reader: Added EPUB readerMatthew Pickering1-0/+248