summaryrefslogtreecommitdiff
path: root/pandoc.hs
Commit message (Collapse)AuthorAge
* 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.
| * `--bibliography` no longer implies `-F pandoc-citeproc`.John MacFarlane2013-09-08
| | | | | | | | | | This could lead to double filtering if the user specifies `-F` too.
| * Changed --metadata to return Boolean True if no value.John MacFarlane2013-09-01
| | | | | | | | Also documented in README.
| * Change for latest pandoc-citeproc.John MacFarlane2013-09-01
| |
| * Restore --bibliography, --csl, --citation-abbreviations.John MacFarlane2013-09-01
| | | | | | | | | | | | | | | | These are now implemented as: --bibliography FILE => --metadata bibliography=FILE --filter pandoc-citeproc --csl FILE => --metadata csl=FILE --citation-abbreviations FILE => --metadata csl-abbreviations=FILE
| * Added `--metadata/-M` option.John MacFarlane2013-09-01
| | | | | | | | | | This is like `--variable/-V`, but actually adds to metadata, not just variables.
| * Added `-F` as shortcut for `--filter`.John MacFarlane2013-08-25
| |
| * Removed dependency on citeproc-hs.John MacFarlane2013-08-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Going forward we'll use pandoc-citeproc, as an external filter. The `--bibliography`, `--csl`, and `--citation-abbreviation` fields have been removed. Instead one must include `bibliography`, `csl`, or `csl-abbrevs` fields in the document's YAML metadata. The filter can then be used as follows: pandoc --filter pandoc-citeproc The `Text.Pandoc.Biblio` module has been removed. Henceforth, `Text.CSL.Pandoc` from pandoc-citations can be used by library users. The Markdown and LaTeX readers now longer format bibliographies and citations. That must be done using `processCites` or `processCites'` from Text.CSL.Pandoc. All bibliography-related fields have been removed from `ReaderOptions` and `WriterOptions`: `writerBiblioFiles`, `readerReferences`, `readerCitationStyle`. API change.
| * Improved error reporting on filters.John MacFarlane2013-08-24
| | | | | | | | Avoid showing spurious output and avoid double error messages.
| * Print stderr output of filters to stderr.John MacFarlane2013-08-14
| |
| * Added module for writing python scripts, with several examples.John MacFarlane2013-08-13
| | | | | | | | See scripts subdirectory.
| * Removed `--print-sample-lua-writer`, added `--print-default-data-file`.John MacFarlane2013-08-13
| | | | | | | | Closes #943.
| * Options: Changed `writerSourceDir` to `writerSourceURL` (now a Maybe).John MacFarlane2013-08-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * Pass writename as argument to filters.John MacFarlane2013-08-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This way filters can figure out what the target format is and react appropriately. Example: #!/usr/bin/env runghc import Text.Pandoc.JSON import Data.Char main = toJSONFilter cap where cap (Just "html") (Str xs) = Str $ map toUpper xs cap _ x = x This capitalizes text only for html output.
| * Revert "Revert "Added `--filter` option.""John MacFarlane2013-08-08
| | | | | | | | This reverts commit 2e5edbb27837372f658b1abbe05371be57415847.
| * Revert "Added `--filter` option."John MacFarlane2013-07-23
| | | | | | | | This reverts commit 85dacbb282f34dc45a810d7c7b5a2d639b70e1f5.