Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2015-06-28 | New method for producing man pages. | John MacFarlane | 1 | -6/+14 | |
This change adds `--man1` and `--man5` options to pandoc, so pandoc can generate its own man pages. It removes the old overly complex method of building a separate executable (but not installing it) just to create the man pages. The man pages are no longer automatically created in the build process. The man/ directory has been removed. The man page templates have been moved to data/. New unexported module: Text.Pandoc.ManPages. Text.Pandoc.Data now exports readmeFile, and `readDataFile` knows how to find README. Closes #2190. | |||||
2015-05-27 | Fixed svg handling in EPUB writer. | John MacFarlane | 1 | -0/+1 | |
This is a crude workaroud for #2183. A correct fix would require having openURL and fetchItem return a content encoding as well as a content type. | |||||
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 | -0/+10 | |
2015-02-18 | Make safeRead safe. | Matthew Pickering | 1 | -3/+3 | |
Fixes #1801 | |||||
2014-12-19 | Added Text.Pandoc.Compat.Locale to assist with transition to time 1.5. | John MacFarlane | 1 | -1/+1 | |
2014-10-08 | fix inDirectory to reset to the original directory in case an exception occurs | Freiric Barral | 1 | -6/+4 | |
2014-09-25 | Shared: Make collapseFilePath OS-agnostic | mpickering | 1 | -5/+9 | |
2014-08-31 | Shared: Moved import of toChunks outside of conditional. | John MacFarlane | 1 | -1/+1 | |
Closes #1590. | |||||
2014-08-30 | Merge branch 'mime' of https://github.com/Aelve/John into Aelve-mime | John MacFarlane | 1 | -4/+4 | |
Conflicts: src/Text/Pandoc/Writers/Docx.hs | |||||
2014-08-22 | Fixed --self-contained with Windows paths. | John MacFarlane | 1 | -1/+2 | |
Previously C:\foo.js was being wrongly interpreted as a URI. Closes #1558. | |||||
2014-08-17 | MIME cleanup. | Artyom Kazak | 1 | -4/+4 | |
* Create a type synonym for MIME type (instead of `String`). * Add `getMimeTypeDef` function. * Avoid recreating MIME type `Map`s every time. * Move “Formula-...” case handling into `getMimeType`. | |||||
2014-08-13 | Fixed haddock comment. | John MacFarlane | 1 | -9/+7 | |
2014-08-13 | Removed unneeded import. | John MacFarlane | 1 | -1/+0 | |
2014-08-08 | Shared: Added collapseFilePath function | Matthew Pickering | 1 | -1/+26 | |
This function removes intermediate "." and ".." from a path. | |||||
2014-08-04 | Add PatternGuards pragmas. | Artyom Kazak | 1 | -1/+1 | |
2014-08-04 | Use `stripPrefix` where appropriate. | Artyom Kazak | 1 | -7/+7 | |
2014-08-03 | Correctly implement capitalisation. | Artyom Kazak | 1 | -0/+13 | |
Using `map toUpper` to capitalise text is wrong, as e.g. “Straße” should be converted to “STRASSE”, which is 1 character longer. This commit adds a `capitalize` function and replaces 2 identical implementations in different modules (`toCaps` and `capitalize`) with it. | |||||
2014-08-02 | fetchItem: improved mime type guessing. | John MacFarlane | 1 | -4/+5 | |
Strip a fragment like `?#iefix` from the extension before doing the mime lookup. | |||||
2014-08-02 | Shared: fetchItem improvements. | John MacFarlane | 1 | -11/+12 | |
* More consistent logic: absolute URIs are fetched from the net; other things are treated as relative URIs if sourceURL is a Just, otherwise as file paths. * We escape characters that are not allowed in URIs before trying to parse them (e.g. '|', which often occurs in the wild). * When treating relative paths as local file paths, we drop any fragment or query. This is useful e.g. when you've downloaded web fonts locally, but your source still contains the original relative URLs. Together with the previous commit, this should close #1477. | |||||
2014-07-31 | New module, Text.Pandoc.MediaBag. | John MacFarlane | 1 | -75/+4 | |
Moved `MediaBag` definition and functions from Shared: `lookupMedia`, `mediaDirectory`, `insertMedia`, `extractMediaBag`. Removed `emptyMediaBag`; use `mempty` instead, since `MediaBag` is a Monoid. | |||||
2014-07-31 | Made MediaBag a newtype, and added mime type information to media. | John MacFarlane | 1 | -15/+65 | |
Shared now exports functions for interacting with a MediaBag: - `emptyMediaBag` - `lookuMedia` - `insertMedia` - `mediaDirectory` - `extractMediaBag` | |||||
2014-07-31 | Shared: Added function insertMedia which is an alias for M.insert | Matthew Pickering | 1 | -1/+8 | |
2014-07-30 | PDF, Docx, EPUB, and ODT writers now automatically use MediaBag. | John MacFarlane | 1 | -3/+2 | |
The MediaBag is thread through from the reader, with no need to extract to files. | |||||
2014-07-30 | Shared: Added fetchItem', which searches a media bag too. | John MacFarlane | 1 | -0/+14 | |
2014-07-30 | Moved MediaBag back from Shared to Options, to avoid module cycle. | John MacFarlane | 1 | -0/+11 | |
2014-07-30 | Moved MediaBag from Shared to Options. | John MacFarlane | 1 | -11/+0 | |
This will allow us to put a MediaBag in WriterOptions. | |||||
2014-07-30 | Moved withTempDir from PDF to Shared, export from Shared. | John MacFarlane | 1 | -1/+16 | |
API change. | |||||
2014-07-30 | Shared: Make MediaBag available through Shared. | Jesse Rosenthal | 1 | -0/+11 | |
2014-07-25 | Fixed runtime error with compactify'DL on certain lists. | John MacFarlane | 1 | -11/+13 | |
Closes #1452. Added test. | |||||
2014-07-21 | Revert "Shared.hierarchicalize: Don't number subsections of unnumbered ↵ | John MacFarlane | 1 | -25/+18 | |
sections." This reverts commit 2a46042661a088096ac54097db5cd3674438bb63. | |||||
2014-07-21 | Shared.hierarchicalize: Don't number subsections of unnumbered sections. | John MacFarlane | 1 | -18/+25 | |
They were previously numbered, starting from the previous numbered section, which was wrong. | |||||
2014-07-15 | Shared.fetchItem: unescape URI encoding before reading local file. | John MacFarlane | 1 | -1/+1 | |
Close #1427. | |||||
2014-07-13 | Better comment on removeFormatting. | John MacFarlane | 1 | -1/+1 | |
2014-07-13 | Shared: Generalized type of removeFormatting. | John MacFarlane | 1 | -1/+1 | |
2014-07-13 | Shared: Added removeFormatting. | John MacFarlane | 1 | -0/+14 | |
API change (addition of exported function). | |||||
2014-07-12 | Removed space at ends of lines in source. | John MacFarlane | 1 | -2/+2 | |
2014-07-07 | normalize: consolidate adjacent RawBlocks when possible. | John MacFarlane | 1 | -0/+5 | |
2014-06-29 | Rewrote normalize for efficiency. (Closes #1385.) | John MacFarlane | 1 | -60/+131 | |
* Added normalizeInlines, normalizeBlocks. * Type signature is now more narrow, `Pandoc -> Pandoc` instead of `Data a :: a -> a`. Some users may need to change their uses of `normalize` to the newly exported `normalizeInlines` or `normalizeBlocks`. | |||||
2014-06-16 | Moved extractSpaces to Shared.hs | mpickering | 1 | -0/+16 | |
Generalised and move the extractSpaces function from `HTML.hs` to `Shared.hs` so that the docx reader can also use it. | |||||
2014-06-03 | Shared: Added ordNub. | John MacFarlane | 1 | -0/+9 | |
API change (adds export). | |||||
2014-05-18 | Removed dependency on conduit. | John MacFarlane | 1 | -6/+8 | |
* http-conduit flag is now https. * Instead of http-conduit, we depend on http-client and http-client-tls. | |||||
2014-05-12 | Shared addMetaField: if old and new values both lists, concatenate. | John MacFarlane | 1 | -1/+3 | |
2014-05-09 | Update copyright notices for 2014, add missing notices | Albert Krewinkel | 1 | -2/+2 | |
2014-04-19 | Merge pull request #1256 from tarleb/org-reader-improvements | John MacFarlane | 1 | -3/+17 | |
Org reader improvements | |||||
2014-04-19 | Move `compactify'DL` from Markdown reader into Shared | Albert Krewinkel | 1 | -3/+17 | |
The function `compactify'DL`, used to change the final definition item of a definition list into a `Plain` iff all other items are `Plain`s as well, is useful in many parsers and hence moved into Text.Pandoc.Shared. | |||||
2014-04-15 | Shared: Fixed bug in toRomanNumeral. | John MacFarlane | 1 | -2/+2 | |
9 and numbers ending in 9 would end with "IXIV." Thanks to Jesse Rosenthal. Closes #1249. | |||||
2014-04-05 | Shared.openURL: Set proxy with value of http_proxy env variable. | John MacFarlane | 1 | -3/+11 | |
Note: proxies with non-root paths are not supported, because of limitations in http-conduit. Closes #1211. | |||||
2014-01-08 | fetchItem: Handle image URLs beginning with '//'. | John MacFarlane | 1 | -4/+9 | |
2013-12-19 | HLint: use `elem` and `notElem` | Henry de Valence | 1 | -8/+4 | |
Replaces long conditional chains with calls to `elem` and `notElem`. |