Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2018-05-08 | Use uriPathToPath with file: URIs. | John MacFarlane | 1 | -1/+2 | |
Closes #4613. Needs testing on Windows. | |||||
2018-05-04 | catch IO errors when writing media files, closes #4559 (#4619) | Francesco Occhipinti | 1 | -1/+9 | |
If we do not catch these errors, any malformed entry in a media bag could cause the loss of a whole document output. An example of malformed entry is an entry with an empty file path. | |||||
2018-04-19 | Text.Pandoc.Class.writeMedia: unescape URI-escaping in file path. | John MacFarlane | 1 | -1/+1 | |
This avoids writing things like `file%20one.png` to the file system. | |||||
2018-03-18 | Removed old-locale flag and Text.Pandoc.Compat.Time. | John MacFarlane | 1 | -2/+2 | |
This is no longer necessary since we no longer support ghc 7.8. | |||||
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-16 | Monoid/Semiground cleanup relying on custom Prelude. | John MacFarlane | 1 | -4/+0 | |
2018-03-16 | Class: Semigroup instance for FileTree with base >= 4.9. | John MacFarlane | 1 | -0/+4 | |
2018-02-18 | Powerpoint writer: Move notes slides into data tree. | Jesse Rosenthal | 1 | -0/+8 | |
2018-01-19 | hlint code improvements. | John MacFarlane | 1 | -3/+3 | |
2017-12-28 | Class: make FileTree opaque. | John MacFarlane | 1 | -1/+1 | |
This forces uses to interact with it using `insertInFileTree` and `getFileInfo`, which normalize file names. | |||||
2017-12-28 | Powerpoint writer tests: use IO. | John MacFarlane | 1 | -2/+2 | |
Otherwise we can't find the data files when compiled with -embed_data_files. | |||||
2017-12-28 | Moved makeCanoncial definition out of ifdef! | John MacFarlane | 1 | -9/+11 | |
Also added slide2 to the default pptx, and reordered the data files in pandoc.cabal. | |||||
2017-12-28 | Class: use makeCanonical for normalization in FileTree and data files. | John MacFarlane | 1 | -8/+11 | |
2017-12-28 | Text.Pandoc.Class: add insertInFileTree (API change). | John MacFarlane | 1 | -7/+13 | |
This gives a pure way to insert an ersatz file into a FileTree. In addition, we normalize paths both on insertion and on lookup, so that "foo" and "./foo" will be judged equivalent. | |||||
2017-12-13 | Removed whitespace at ends of line. | John MacFarlane | 1 | -3/+3 | |
2017-12-11 | Add necessary powerpoint functions to Class. | Jesse Rosenthal | 1 | -0/+64 | |
2017-10-29 | Export all of Text.Pandoc.Class from Text.Pandoc. | John MacFarlane | 1 | -1/+0 | |
2017-10-29 | Source code reformatting. | John MacFarlane | 1 | -0/+1 | |
2017-10-27 | hlint suggestions. | John MacFarlane | 1 | -1/+0 | |
2017-10-27 | hlint suggestions. | John MacFarlane | 1 | -5/+4 | |
2017-10-26 | Comment reformat. | John MacFarlane | 1 | -6/+4 | |
2017-10-24 | Added some haddock docs for Text.Pandoc.Class functions. | John MacFarlane | 1 | -3/+22 | |
2017-10-23 | Back to using [WARNING] and [INFO] to mark messages. | John MacFarlane | 1 | -4/+2 | |
2017-10-23 | More pleasing presentation of warnings and info messages. | John MacFarlane | 1 | -4/+5 | |
!! warning -- info | |||||
2017-10-15 | Remove openURL from Shared (API change). | John MacFarlane | 1 | -7/+44 | |
Now all the guts of openURL have been put into openURL from Class. openURL is now sensitive to stRequestHeaders in CommonState and will add these custom headers when making a request. It no longer looks at the USER_AGENT environment variable, since you can now set the `User-Agent` header directly. | |||||
2017-10-15 | Class: add stRequestHeaders to CommonState, and setRequestHeader. | John MacFarlane | 1 | -0/+13 | |
2017-09-30 | Text.Pandoc.Class - add getVerbosity. | John MacFarlane | 1 | -0/+5 | |
2017-09-30 | Removed writerSourceURL, add source URL to common state. | John MacFarlane | 1 | -17/+37 | |
Removed `writerSourceURL` from `WriterOptions` (API change). Added `stSourceURL` to `CommonState`. It is set automatically by `setInputFiles`. Text.Pandoc.Class now exports `setInputFiles`, `setOutputFile`. The type of `getInputFiles` has changed; it now returns `[FilePath]` instead of `Maybe [FilePath]`. Functions in Class that formerly took the source URL as a parameter now have one fewer parameter (`fetchItem`, `downloadOrRead`, `setMediaResource`, `fillMediaBag`). Removed `WriterOptions` parameter from `makeSelfContained` in `SelfContained`. | |||||
2017-09-30 | Text.Pandoc.Lua: add mediabag submodule | Albert Krewinkel | 1 | -9/+19 | |
2017-08-20 | Protect OVERLAPS pragma with CPP. | John MacFarlane | 1 | -0/+4 | |
2017-08-20 | Use OverlappingInstances instead of OVERLAPS for ghc 7.8.4. | John MacFarlane | 1 | -0/+4 | |
2017-08-20 | Removed redundant import. | John MacFarlane | 1 | -1/+0 | |
2017-08-19 | Simplify instances in Class by parameterizing on MonadTrans. | John MacFarlane | 1 | -67/+21 | |
2017-08-12 | Improved error report on loading translation file. | John MacFarlane | 1 | -4/+6 | |
2017-08-12 | Change to yaml for translation files. | John MacFarlane | 1 | -6/+7 | |
2017-08-11 | Fixed import. | John MacFarlane | 1 | -1/+1 | |
2017-08-11 | More redundant imports. | John MacFarlane | 1 | -2/+1 | |
2017-08-11 | Avoid some warnings when compiled wo/ embed_data_files flag. | John MacFarlane | 1 | -2/+3 | |
2017-08-11 | Add getFileName to PandocMonad. | John MacFarlane | 1 | -2/+16 | |
We need this for getDefaultDataFile. | |||||
2017-08-11 | Added support for translations (localization) (see #3559). | John MacFarlane | 1 | -46/+212 | |
* readDataFile, readDefaultDataFile, getReferenceDocx, getReferenceODT have been removed from Shared and moved into Class. They are now defined in terms of PandocMonad primitives, rather than being primitve methods of the class. * toLang has been moved from BCP47 to Class. * NoTranslation and CouldNotLoudTranslations have been added to LogMessage. * New module, Text.Pandoc.Translations, exporting Term, Translations, readTranslations. * New functions in Class: translateTerm, setTranslations. Note that nothing is loaded from data files until translateTerm is used; setTranslation just sets the language to be used. * Added two translation data files in data/translations. * LaTeX reader: Support `\setmainlanguage` or `\setdefaultlanguage` (polyglossia) and `\figurename`. | |||||
2017-08-10 | Removed datadir param from readDataFile and getDefaultTemplate. | John MacFarlane | 1 | -14/+20 | |
In Text.Pandoc.Class and Text.Pandoc.Template, resp. We now get the datadir from CommonState. | |||||
2017-08-10 | Class: add setUserDataDir and getUserDataDir. | John MacFarlane | 1 | -5/+21 | |
* Add stUserDataDir to CommonState. * Rename stUserDataDir/stCabalDataDir in PureState to stUserDataFiles/stCabalDataFiles. | |||||
2017-08-10 | Expose getDefaultDataFile in both Shared and Class. | John MacFarlane | 1 | -3/+13 | |
2017-07-30 | Class: more haddocks. | John MacFarlane | 1 | -0/+12 | |
2017-07-30 | Class: Removed unnecessary withMedia, improved haddocks. | John MacFarlane | 1 | -7/+22 | |
2017-07-19 | Class: started adding haddocks. | John MacFarlane | 1 | -10/+39 | |
2017-07-15 | Don't rely on listDirectory, which is only in newer versions... | John MacFarlane | 1 | -2/+5 | |
of directory. | |||||
2017-07-14 | Class: make addToFileTree handle directories recursively. | John MacFarlane | 1 | -6/+15 | |
2017-07-14 | Class: remove stFontFiles in PureState, 'glob' searches stFiles. | John MacFarlane | 1 | -4/+2 | |
2017-07-14 | Class: added addToFileTree | John MacFarlane | 1 | -0/+8 | |