summaryrefslogtreecommitdiff
path: root/pandoc.hs
Commit message (Collapse)AuthorAge
* Removed check for PATH variable in running filters.John MacFarlane2014-08-17
| | | | | | | | | | This cause problems on Windows 8, where the variable is called `Path`. Instead, simply trap the exception that will be raised by `findExecutable` if path is not set. This should fix #1542.
* pandoc: Don't strip path off of sourceURL.John MacFarlane2014-08-06
| | | | | | We need this information for relative URLs! This should resolve the continuing problem noted in #750.
* Merge pull request #1486 from Aelve/minorJohn MacFarlane2014-08-04
|\ | | | | Very minor cleanup and readability changes
| * Slightly fix readability of main program file.Artyom Kazak2014-08-04
| |
* | Merge branch 'epubend' of https://github.com/mpickering/pandoc into ↵John MacFarlane2014-08-04
|\ \ | |/ |/| | | | | | | | | mpickering-epubend Conflicts: pandoc.cabal
| * EPUB Reader: Integrated into programMatthew Pickering2014-07-31
| |
* | Text.Pandoc.SelfContained changes.John MacFarlane2014-08-02
| | | | | | | | | | | | | | | | * mkSelfContained now takes just two arguments, WriterOptions and the string. * It no longer looks in data files. This only made sense when we had copies of slidy and S5 code there. * Shared.fetchItem' is used instead of the nearly duplicate getItem.
* | pandoc.hs: More code reorganization.John MacFarlane2014-07-31
|/
* pandoc.hs: Rewrote some of the logic for clarity.John MacFarlane2014-07-31
|
* New module, Text.Pandoc.MediaBag.John MacFarlane2014-07-31
| | | | | | | Moved `MediaBag` definition and functions from Shared: `lookupMedia`, `mediaDirectory`, `insertMedia`, `extractMediaBag`. Removed `emptyMediaBag`; use `mempty` instead, since `MediaBag` is a Monoid.
* Made MediaBag a newtype, and added mime type information to media.John MacFarlane2014-07-31
| | | | | | | | | | Shared now exports functions for interacting with a MediaBag: - `emptyMediaBag` - `lookuMedia` - `insertMedia` - `mediaDirectory` - `extractMediaBag`
* getT2TMeta: Take list of source files instead of single.John MacFarlane2014-07-30
| | | | Get latest modification time.
* Allow --self-contained to get content from MediaBag.John MacFarlane2014-07-30
| | | | Added a parameter to makeSelfContained (API change).
* PDF, Docx, EPUB, and ODT writers now automatically use MediaBag.John MacFarlane2014-07-30
| | | | | The MediaBag is thread through from the reader, with no need to extract to files.
* pandoc: Thread media bag into WriterOptions.John MacFarlane2014-07-30
| | | | | | This will make it available to docx and epub readers, etc., so we don't have to extract media to a directory when going from docx -> epub.
* Added --extract-media option.John MacFarlane2014-07-30
| | | | | | This has been documented to affect the epub and docx readers, so we should either add the epub reader before the next release or change the documentation.
* Make toplevel pandoc bin make use of mediabag.Jesse Rosenthal2014-07-30
| | | | | Note that at the moment the mediabag is discarded. This will have to be changed to make use of it.
* Txt2Tags Reader: Added recognition of macrosMatthew Pickering2014-07-27
|
* Txt2Tags Reader: Integrated into pandocMatthew Pickering2014-07-27
|
* Merge branch 'master' of git://github.com/jgm/pandoc into dokuwikiClare Macrae2014-07-01
|\
| * Filters: respect shebang if filter is executable.John MacFarlane2014-06-30
| | | | | | | | Closes #1389.
* | Merge remote-tracking branch 'jgm/master' into dokuwikiClare Macrae2014-06-29
|\|
| * Fixed `--filter` so it doesn't search PATH for a filter with a path.John MacFarlane2014-06-27
| | | | | | | | | | This fixed a bug wherein `--filter ./caps.py` would run `caps.py` from the system path, even if there was a `caps.py` in the working directory.
| * Add track changes option to command line.Jesse Rosenthal2014-06-25
| |
| * Fixed compiler warnings.John MacFarlane2014-06-21
| |
| * Filters: don't print misleading error message.John MacFarlane2014-06-20
| | | | | | | | | | Previously pandoc would say that a filter was not found, even in a case where the filter had a syntax error.
| * Integrated the docx reader into the main pandoc program.mpickering2014-06-16
| | | | | | | | | | Changes also include generalising the types of reader allowed. The mechanism now mimics the more general output mechanism.
| * Update copyright notices for 2014, add missing noticesAlbert Krewinkel2014-05-09
| |
| * Allow html4 as synonym of html as reader.John MacFarlane2014-04-27
| | | | | | | | It already worked for writer.
| * Fix #1267.John MacFarlane2014-04-27
| | | | | | | | | | | | | | We now check the writerName for a lua script in pandoc.hs, so that lowercasing and format parsing aren't done. Note this behavior change: getWriter in Text.Pandoc no longer returns a custom writer on input "foo.lua".
| * A bit of refactoring that shouldn't change any semantics.John MacFarlane2014-04-27
| | | | | | | | In preparation for a fix to #1267.
| * Give more useful error message if '-t pdf' is specified.John MacFarlane2014-04-05
| | | | | | | | Closes #1155.
| * Make it possible to run filters that aren't executable.John MacFarlane2014-04-05
| | | | | | | | | | | | | | | | | | | | | | | | Pandoc first tries to find the executable (searching the path if path isn't given). If it fails, but the file exists and has a .py, .pl, .rb, .hs, or .php extension, pandoc runs the filter using the appropriate interpreter. This should make it easier to use filters on Windows, and make it more convenient for everyone. Closes #1096.
| * PDF: Changes to error reporting, to handle non-UTF8 error output.John MacFarlane2014-03-19
| |
| * Add a simple Emacs Org-mode readerAlbert Krewinkel2014-03-04
| | | | | | | | | | The basic structure of org-mode documents is recognized; however, org-mode features like todo markers, tags etc. are not supported yet.
| * Added readerTrace to ReaderOptions, --trace command line opt.John MacFarlane2014-02-25
| | | | | | | | | | | | This is to debug backtracking-related parsing bugs. So far it is only implemented for markdown, but it would be good to extend it to latex and html readers.
| * The `--bibliography` option now sets the `biblio-files` variable.John MacFarlane2014-01-03
| | | | | | | | | | So, if you're using `--natbib` or `--biblatex`, you can just use `--bibliography=foo.bib` instead of `-V bibliofiles=foo`.
| * Merge pull request #1005 from nougad/consistent_bibliographyJohn MacFarlane2014-01-02
| |\ | | | | | | Don't add pandoc-citeproc filter if natbib or biblatex is used
| | * Fixed stupid copy&paste errorFlorian Eitel2013-09-30
| | | | | | | | | | | | How could this happend? sry
| | * Don't add pandoc-citeproc filter if natbib or biblatex is usedFlorian Eitel2013-09-30
| | | | | | | | | | | | See https://github.com/jgm/pandoc-templates/issues/42
| * | HLint: redundant parensHenry de Valence2013-12-19
| | | | | | | | | | | | Remove parens enclosing a single element.
| * | HLint: use `elem` and `notElem`Henry de Valence2013-12-19
| | | | | | | | | | | | Replaces long conditional chains with calls to `elem` and `notElem`.
| * | Allow https: to work in pandoc command line arguments.John MacFarlane2013-12-05
| | | | | | | | | | | | (Use openURL from Shared instead of simpleHTTP.)
| * | Allow "epub2" as synonym for "epub", "html4" for "html".John MacFarlane2013-11-30
| | |
| * | Don't look for slidy files in data files w/ --self-contained.John MacFarlane2013-10-21
| |/
| * Handle Boolean values in `--metadata`.John MacFarlane2013-09-19
| | | | | | | | | | | | | | | | | | | | Note that anything not parseable as a YAML boolean or string is treated as a literal string. Note that you can still get a string value with "yes" or any of the strings interpretable as booleans: -M boolvalue=yes -M stringvalue='"yes"'
| * More informative error when a filter is not found in path.John MacFarlane2013-09-17
| | | | | | | | No more "resource vanished (broken pipe)"!
| * Allow `--metadata` to be repeated for the same key to form a list.John MacFarlane2013-09-17
| | | | | | | | | | This also has the effect that `--bibliography` can be repeated, as before.
| * More robust check for '-F pandoc-filters', allowing pathnames.John MacFarlane2013-09-14
| |
| * `--bibliography` again implies `-F pandoc-citeproc`.John MacFarlane2013-09-10
| | | | | | | | But only if pandoc-citeproc isn't already specified as a filter.