Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2020-02-07 | More in-depth refactoring and cleanup (#6123) | Joseph C. Sible | 1 | -3/+1 | |
* Avoid duplicating the dash case * Pull common functions out of case branches * Make sure list lengths are only calculated once * Use unless * Simplify parseURIReference' and avoid an unnecessary call to length * Use <$> instead of reimplementing it * Use swap instead of reimplementing it * Remove eta-expansion that's been unnecessary since 90f5dd8 * Use tailDef instead of reimplementing it * Use second instead of fmap, per @tarleb | |||||
2019-11-12 | Switch to new pandoc-types and use Text instead of String [API change]. | despresc | 1 | -37/+38 | |
PR #5884. + Use pandoc-types 1.20 and texmath 0.12. + Text is now used instead of String, with a few exceptions. + In the MediaBag module, some of the types using Strings were switched to use FilePath instead (not Text). + In the Parsing module, new parsers `manyChar`, `many1Char`, `manyTillChar`, `many1TillChar`, `many1Till`, `manyUntil`, `mantyUntilChar` have been added: these are like their unsuffixed counterparts but pack some or all of their output. + `glob` in Text.Pandoc.Class still takes String since it seems to be intended as an interface to Glob, which uses strings. It seems to be used only once in the package, in the EPUB writer, so that is not hard to change. | |||||
2019-03-21 | Improve pdfSize in ImageSize by ignoring all whitespace in /MediaBox command ↵ | richarddavis | 1 | -1/+4 | |
(#5383) This fix ignores all whitespace in the PDF /MediaBox line so that a wider range of PDF sizes can be read. This improves fix to #4322. | |||||
2019-03-20 | Improve pdfSize in ImageSize. | John MacFarlane | 1 | -20/+25 | |
Improves fix to #4322. | |||||
2019-03-01 | Remove license boilerplate. | John MacFarlane | 1 | -18/+0 | |
The haddock module header contains essentially the same information, so the boilerplate is redundant and just one more thing to get out of sync. | |||||
2019-02-04 | Add missing copyright notices and remove license boilerplate (#5112) | Albert Krewinkel | 1 | -2/+2 | |
Quite a few modules were missing copyright notices. This commit adds copyright notices everywhere via haddock module headers. The old license boilerplate comment is redundant with this and has been removed. Update copyright years to 2019. Closes #4592. | |||||
2018-08-10 | Avoid non-exhaustive pattern matches. | John MacFarlane | 1 | -4/+6 | |
2018-08-10 | Avoid non-exhaustive pattern match. | John MacFarlane | 1 | -11/+12 | |
2018-08-10 | Avoid non-exhaustive pattern match. | John MacFarlane | 1 | -10/+12 | |
2018-03-18 | Use NoImplicitPrelude and explicitly import Prelude. | John MacFarlane | 1 | -0/+2 | |
This seems to be necessary if we are to use our custom Prelude with ghci. Closes #4464. | |||||
2018-03-17 | hlint fixes. | John MacFarlane | 1 | -5/+5 | |
2018-02-18 | EMF Image size support (#4375) | Andrew Pritchard | 1 | -1/+37 | |
2018-02-16 | Make image size detection for PDFs more robust. | John MacFarlane | 1 | -2/+4 | |
See #4322. | |||||
2018-02-03 | C -> c. | John MacFarlane | 1 | -1/+1 | |
2018-02-02 | Determine image size for PDFs. | John MacFarlane | 1 | -1/+22 | |
Closes #4322. | |||||
2018-01-17 | ImageSize: add derived Eq instance to Dimension | Jesse Rosenthal | 1 | -0/+1 | |
2018-01-05 | Update copyright notices to include 2018 | Albert Krewinkel | 1 | -2/+2 | |
2017-11-01 | hlint | Alexander Krotov | 1 | -2/+2 | |
2017-10-31 | Add Millimeter constructor to Dimension in ImageSize. | John MacFarlane | 1 | -1/+6 | |
Minor API change. Now sizes given in 'mm' are no longer converted to 'cm'. Closes #4012. | |||||
2017-10-27 | hlint suggestions. | John MacFarlane | 1 | -1/+0 | |
2017-06-02 | hlint suggestions. | John MacFarlane | 1 | -29/+28 | |
2017-05-25 | Allow em for image height/width in HTML, LaTeX. | John MacFarlane | 1 | -2/+18 | |
- Export `inEm` from ImageSize [API change]. - Change `showFl` and `show` instance for `Dimension` so extra decimal places are omitted. - Added `Em` as a constructor of `Dimension` [API change]. - Allow `em`, `cm`, `in` to pass through without conversion in HTML, LaTeX. Closes #3450. | |||||
2017-05-20 | Improve SVG image size code. | Marc Schreiber | 1 | -1/+1 | |
The old code made some unwise assumptions about how the svg file would look. See #3580. | |||||
2017-05-13 | Update dates in copyright notices | Albert Krewinkel | 1 | -2/+2 | |
This follows the suggestions given by the FSF for GPL licensed software. <https://www.gnu.org/prep/maintain/html_node/Copyright-Notices.html> | |||||
2017-04-16 | Read image size of Inkscape SVGs (#3580) | schrieveslaach | 1 | -4/+4 | |
2017-02-26 | ImageSize: export lengthToDim, new function scaleDimension. | John MacFarlane | 1 | -0/+12 | |
2017-02-22 | imageSize interface change | mb21 | 1 | -6/+5 | |
`imageSize img` is now `imageSize opts img` | |||||
2017-02-22 | make imageSize recognize basic SVG dimensions, see #3462 | mb21 | 1 | -16/+48 | |
2017-01-25 | Removed hush from Text.Pandoc.Shared. | John MacFarlane | 1 | -3/+3 | |
Not used anywhere. | |||||
2016-09-02 | Remove Text.Pandoc.Compat.Except | Jesse Rosenthal | 1 | -2/+1 | |
2016-03-22 | Updated copyright dates to include 2016. | John MacFarlane | 1 | -2/+2 | |
2015-11-21 | ImageSize: use safeRead instead of readMaybe. | John MacFarlane | 1 | -2/+1 | |
readMaybe is only provided in base 4.6+. | |||||
2015-11-19 | Merge branch 'new-image-attributes' of https://github.com/mb21/pandoc into ↵ | John MacFarlane | 1 | -15/+138 | |
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. | |||||
2015-11-09 | Revert "Use -XNoImplicitPrelude and 'import Prelude' explicitly." | John MacFarlane | 1 | -1/+0 | |
This reverts commit c423dbb5a34c2d1195020e0f0ca3aae883d0749b. | |||||
2015-11-08 | Use -XNoImplicitPrelude and 'import Prelude' explicitly. | John MacFarlane | 1 | -0/+1 | |
This is needed for ghci to work with pandoc, given that we now use a custom prelude. Closes #2503. | |||||
2015-10-14 | Use custom Prelude to avoid compiler warnings. | John MacFarlane | 1 | -1/+0 | |
- 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. | |||||
2015-08-05 | ImageSize: Added functions for converting between image dimensions. | John MacFarlane | 1 | -15/+138 | |
(mb21) | |||||
2015-05-10 | ImageSize: fixed some exif parsing bugs. | John MacFarlane | 1 | -22/+26 | |
Closes #1834. The image originally supplied works fine now with pandoc. | |||||
2015-05-09 | ImageSize: Use runGetOrFail with binary 0.7+. | John MacFarlane | 1 | -2/+13 | |
2015-05-09 | ImageSize: make jpeg header parsing routines return Either. | John MacFarlane | 1 | -29/+34 | |
See #1834. | |||||
2015-05-09 | ImageSize: make imageSize return an Either, not a Maybe. | John MacFarlane | 1 | -9/+11 | |
This will give us better error reporting options. This is part of a fix for #1834. | |||||
2015-04-26 | Updated copyright notices to -2015. Closes #2111. | John MacFarlane | 1 | -2/+2 | |
2015-02-18 | Move utility error functions to Text.Pandoc.Shared | Matthew Pickering | 1 | -2/+1 | |
2015-02-18 | Remove landmine from ImageSize | Matthew Pickering | 1 | -30/+37 | |
2014-06-20 | ImageSize: Use default instead of failing if image size not found | John MacFarlane | 1 | -1/+6 | |
in exif header. Closes #1358. | |||||
2014-06-19 | ImageSize: ignore unknown exif header tag rather than crashing. | John MacFarlane | 1 | -1/+2 | |
Some images seem to have tag type of 256, which was causing a runtime error. | |||||
2014-05-09 | Update copyright notices for 2014, add missing notices | Albert Krewinkel | 1 | -2/+2 | |
2014-01-24 | ImageSize: Avoid use of lookAhead, which is not in binary >= 0.6. | John MacFarlane | 1 | -4/+5 | |
Closes #1124. | |||||
2014-01-14 | Allow binary 0.5. Version bump to 1.12.3.1. | John MacFarlane | 1 | -3/+6 | |
2014-01-09 | Minor improvement to exif parser. | John MacFarlane | 1 | -2/+2 | |