summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers/EPUB.hs
Commit message (Collapse)AuthorAge
* Source code reformatting.John MacFarlane2017-10-29
|
* hlint suggestions.John MacFarlane2017-10-27
|
* Automatic reformating by stylish-haskell.John MacFarlane2017-10-27
|
* Changed all readers to take Text instead of String.John MacFarlane2017-06-10
| | | | | | | | Readers: Renamed StringReader -> TextReader. Updated tests. API change.
* Stylish-haskell automatic formatting changes.John MacFarlane2017-03-04
|
* EPUB reader: minor refactoring, avoiding explicit MediaBag handling.John MacFarlane2017-02-24
| | | | This all works behind the scenes in CommonState plumbing.
* Use new warnings throughout the code base.John MacFarlane2017-02-11
|
* Added Text.Pandoc.Logging (exported module).John MacFarlane2017-02-10
| | | | | | | | | | | | This now contains the Verbosity definition previously in Options, as well as a new LogMessage datatype that will eventually be used instead of raw strings for warnings. This will enable us, among other things, to provide machine-readable warnings if desired. See #3392.
* Removed --parse-raw and readerParseRaw.John MacFarlane2017-02-06
| | | | | | | | | | | | | | | | | | | | | | | These were confusing. Now we rely on the +raw_tex or +raw_html extension with latex or html input. Thus, instead of --parse-raw -f latex we use -f latex+raw_tex and instead of --parse-raw -f html we use -f html+raw_html
* Removed readerVerbosity and writerVerbosity.John MacFarlane2017-01-25
| | | | | | API change. Also added a verbosity parameter to makePDF.
* Changes to verbosity in writer and reader options.John MacFarlane2017-01-25
| | | | | | | | | | | | | | API changes: Text.Pandoc.Options: * Added Verbosity. * Added writerVerbosity. * Added readerVerbosity. * Removed writerVerbose. * Removed readerTrace. pandoc CLI: The `--trace` option sets verbosity to DEBUG; the `--quiet` option sets it to ERROR, and the `--verbose` option sets it to INFO. The default is WARNING.
* Unify Errors.Jesse Rosenthal2017-01-25
|
* Working on readers.Jesse Rosenthal2017-01-25
|
* Export Text.Pandoc.Error in Text.Pandoc.John MacFarlane2016-10-24
| | | | [API change]
* EPUB reader: don't add root path to data: URIs.John MacFarlane2016-10-22
| | | | | | Closes #3150. Thanks to @lep for the bug report and patch.
* Remove Text.Pandoc.Compat.ExceptJesse Rosenthal2016-09-02
|
* Fix grouping of imports.Jesse Rosenthal2016-09-02
| | | | | | Some source files keep imports in tidy groups. Changing `Text.Pandoc.Compat.Monoid` to `Data.Monoid` could upset that. This restores tidiness.
* Remove Compat.MonoidJesse Rosenthal2016-09-02
| | | | | This was only necessary for GHC versions with base below 4.5 (i.e., ghc < 7.4).
* EPUB Reader: normalise Link id as wellmb212016-05-24
|
* EPUB reader: unescape URIs in spine.John MacFarlane2016-05-17
| | | | | | | This should fix #2924. Testing on the epub that caused the problem originally would be welcome.
* Binary fmts throw PandocError on zip-archive failJesse Rosenthal2016-05-01
| | | | | Commit 91dc3342 made `readDocx` throw PandocError if there was an unarchiving error. This extends that fix to `readOdt` and `readEPUB`.
* Depend on deepseq rather than deepseq-generics.John MacFarlane2016-01-11
| | | | See fpco/stackage#1096.
* Merge branch 'new-image-attributes' of https://github.com/mb21/pandoc into ↵John MacFarlane2015-11-19
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mb21-new-image-attributes * Bumped version to 1.16. * Added Attr field to Link and Image. * Added `common_link_attributes` extension. * Updated readers for link attributes. * Updated writers for link attributes. * Updated tests * Updated stack.yaml to build against unreleased versions of pandoc-types and texmath. * Fixed various compiler warnings. Closes #261. TODO: * Relative (percentage) image widths in docx writer. * ODT/OpenDocument writer (untested, same issue about percentage widths). * Update pandoc-citeproc.
| * Updated readers, writers and README for link attributemb212015-08-07
| |
| * Updated readers and writers for new image attribute parameter.John MacFarlane2015-08-07
| | | | | | | | (mb21)
* | Restored Text.Pandoc.Compat.Monoid.John MacFarlane2015-11-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't use custom prelude for latest ghc. This is a better approach to making 'stack ghci' and 'cabal repl' work. Instead of using NoImplicitPrelude, we only use the custom prelude for older ghc versions. The custom prelude presents a uniform API that matches the current base version's prelude. So, when developing (presumably with latest ghc), we don't use a custom prelude at all and hence have no trouble with ghci. The custom prelude no longer exports (<>): we now want to match the base 4.8 prelude behavior.
* | Revert "Use -XNoImplicitPrelude and 'import Prelude' explicitly."John MacFarlane2015-11-09
| | | | | | | | This reverts commit c423dbb5a34c2d1195020e0f0ca3aae883d0749b.
* | Use -XNoImplicitPrelude and 'import Prelude' explicitly.John MacFarlane2015-11-08
| | | | | | | | | | | | | | This is needed for ghci to work with pandoc, given that we now use a custom prelude. Closes #2503.
* | Use custom Prelude to avoid compiler warnings.John MacFarlane2015-10-14
| | | | | | | | | | | | | | | | | | | | | | | | | | - The (non-exported) prelude is in prelude/Prelude.hs. - It exports Monoid and Applicative, like base 4.8 prelude, but works with older base versions. - It exports (<>) for mappend. - It hides 'catch' on older base versions. This allows us to remove many imports of Data.Monoid and Control.Applicative, and remove Text.Pandoc.Compat.Monoid. It should allow us to use -Wall again for ghc 7.10.
* | EPUB reader: stop mangling external URLs.John MacFarlane2015-08-10
|/ | | | | | | Closes #2284. Note the changes to the test suite. In each case, a mangled external link has been fixed, so these are all positive.
* Change return type of EPUB readerMatthew Pickering2015-02-18
|
* Update Reader.EPUB to use `MimeType`.Artyom Kazak2014-08-17
|
* EPUB reader: use walk instead of bottomUp.John MacFarlane2014-08-11
| | | | This should be more efficient.
* EPUB Reader: Fixed another normalisation problem..Matthew Pickering2014-08-11
|
* EPUB Reader: Can now parse multiple meta data fieldsMatthew Pickering2014-08-11
|
* EPUB reader: Fixed bug where filepaths weren't sufficiently normalisedMatthew Pickering2014-08-11
|
* EPUB: Fixed another mediabag related regression..Matthew Pickering2014-08-10
|
* EPUB Reader: Changed image paths to be relative to manifest fileMatthew Pickering2014-08-09
|
* Merge branch 'newbranch' of https://github.com/mpickering/pandoc into ↵John MacFarlane2014-08-08
|\ | | | | | | | | | | | | mpickering-newbranch Conflicts: src/Text/Pandoc/Readers/EPUB.hs
| * EPUB Reader: Improved robustness of image extractionMatthew Pickering2014-08-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * EPUB Reader: Fixed regressions in image extractionMatthew Pickering2014-08-08
| | | | | | | | | | | | 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.
| * EPUB Reader: Use collapseFilePathMatthew Pickering2014-08-08
| |
| * EPUB Reader: Removed incorrectly set reader flagMatthew Pickering2014-08-08
| |
* | Added `native_divs` and `native_spans` extensions.John MacFarlane2014-08-08
|/ | | | | | | | | This allows users to turn off the default pandoc behavior of parsing contents of div and span tags in markdown and HTML as native pandoc Div blocks and Span inlines. Setting of default epub extensions has been moved from the EPUB reader to Text.Pandoc.
* EPUB Reader: Improved how images are extractedMatthew Pickering2014-08-07
|
* EPUB Reader: Now uses the new MediaBag for imagesMatthew Pickering2014-07-31
|
* EPUB Reader: Added EPUB readerMatthew Pickering2014-07-31