Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
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`. | |||||
2013-12-19 | HLint: Use all | Henry de Valence | 1 | -1/+1 | |
Replace `and . map` with `all`. | |||||
2013-12-09 | Added `withSocketsDo` around http conduit code in `openURL`. | John MacFarlane | 1 | -1/+2 | |
This should address #1080, but further testing on Windows is needed before we can close the bug. | |||||
2013-12-01 | normalizeDate: Allow dates with year only (%Y) | Shaun Attfield | 1 | -1/+1 | |
2013-11-19 | Shared: Fixed bug in openURL with data: URIs. | John MacFarlane | 1 | -1/+2 | |
Previously the base-64 encoded bytestring was returned. We now decode it so it's a proper image! This should fix parsing of data: URLs. | |||||
2013-10-16 | Use isURI instead of isAbsoluteURI. | John MacFarlane | 1 | -2/+2 | |
It allows fragments identifiers. | |||||
2013-08-28 | Generalized type of stringify. | John MacFarlane | 1 | -3/+4 | |
2013-08-16 | Shared: Changed stringify so it ignores notes. | John MacFarlane | 1 | -1/+5 | |
Also documented this in README. | |||||
2013-08-16 | Revert "Shared: stringify now skips over footnotes." | John MacFarlane | 1 | -1/+0 | |
This reverts commit 19591df739a6c50a3d0a9af55ba90b883264b21d. This change didn't work; query has already written the contents of the note by the time it gets to Note. | |||||
2013-08-16 | Shared: stringify now skips over footnotes. | John MacFarlane | 1 | -0/+1 | |
That is usually the right thing to do for section labels, etc. | |||||
2013-08-15 | Shared: Better error message when default data file not found. | John MacFarlane | 1 | -3/+7 | |
Listing the full path can confuse people who are using `--self-contained`: they might have intended the file to be found locally. So now we just list the data file name. | |||||
2013-08-11 | Options: Changed `writerSourceDir` to `writerSourceURL` (now a Maybe). | John MacFarlane | 1 | -10/+10 | |
Previously we used to store the directory of the first input file, even if it was local, and used this as a base directory for finding images in ODT, EPUB, Docx, and PDF. This has been confusing to many users. It seems better to look for images relative to the current working directory, even if the first file argument is in another directory. writerSourceURL is set to 'Just url' when the first command-line argument is an absolute URL. (So, relative links will be resolved in relation to the first page.) Otherwise, 'Nothing'. The ODT, EPUB, Docx, and PDF writers have been modified accordingly. Note that this change may break some existing workflows. If you have been assuming that relative links will be interpreted relative to the directory of the first file argument, you'll need to make that the current directory before running pandoc. Closes #942. | |||||
2013-08-10 | Use walk, walkM in place of bottomUp, bottomUpM when possible. | John MacFarlane | 1 | -1/+1 | |
They are significantly faster. | |||||
2013-08-10 | Use query instead of queryWith. | John MacFarlane | 1 | -2/+27 | |
2013-07-30 | Fixed compilation with http-conduit flag False. | John MacFarlane | 1 | -2/+2 | |
2013-07-18 | Improved fetching of external resources. | John MacFarlane | 1 | -7/+9 | |
* In Shared, openURL and fetchItem now return an Either, for better error handling. (API change.) * Better error message when fetching a URL fails with `--self-contained`. * EPUB writer: If resource not found, skip it, as in Docx writer. * Closes #916. | |||||
2013-07-04 | cabal: Added http-conduit flag, which allows fetching https resources. | John MacFarlane | 1 | -12/+28 | |
It also brings in a large number of dependencies (http-conduit and its dependencies), which is why for now it is an optional flag. Closes #820. | |||||
2013-07-01 | Created Text.Pandoc.Writers.Shared, improved metaToJSON. | John MacFarlane | 1 | -81/+1 | |
* Text.Pandoc.Writers.Shared contains shared functions used only in writers. * metaToJSON now takes a WriterOptions parameter, and will return an empty object if standalone is not specified. | |||||
2013-07-01 | Shared: Export getField. | John MacFarlane | 1 | -1/+14 | |
2013-06-29 | Metadata changes: Variables now completely shadow metadata. | John MacFarlane | 1 | -2/+9 | |
Previously if you set a value both in metadata and with a variable, they'd be combined into a list. Now the variable replaces the value in document metadata. If many variables with the same name are set, a list is created. Shared: metaToJSON now has an argument for a variable list. | |||||
2013-06-27 | Shared: Added `defField`. | John MacFarlane | 1 | -0/+14 | |
`defField` is like `setField`, but does nothing if the field already has a value. | |||||
2013-06-25 | Fixed merge bugs in Shared. | John MacFarlane | 1 | -10/+10 | |
2013-06-25 | Removed 'Functor' constraint. | John MacFarlane | 1 | -2/+2 | |