aboutsummaryrefslogtreecommitdiff
path: root/pandoc.hs
AgeCommit message (Collapse)AuthorFilesLines
2014-07-31EPUB Reader: Integrated into programMatthew Pickering1-0/+1
2014-07-31pandoc.hs: Rewrote some of the logic for clarity.John MacFarlane1-25/+31
2014-07-31New module, Text.Pandoc.MediaBag.John MacFarlane1-3/+4
Moved `MediaBag` definition and functions from Shared: `lookupMedia`, `mediaDirectory`, `insertMedia`, `extractMediaBag`. Removed `emptyMediaBag`; use `mempty` instead, since `MediaBag` is a Monoid.
2014-07-31Made MediaBag a newtype, and added mime type information to media.John MacFarlane1-16/+10
Shared now exports functions for interacting with a MediaBag: - `emptyMediaBag` - `lookuMedia` - `insertMedia` - `mediaDirectory` - `extractMediaBag`
2014-07-30getT2TMeta: Take list of source files instead of single.John MacFarlane1-3/+1
Get latest modification time.
2014-07-30Allow --self-contained to get content from MediaBag.John MacFarlane1-1/+3
Added a parameter to makeSelfContained (API change).
2014-07-30PDF, Docx, EPUB, and ODT writers now automatically use MediaBag.John MacFarlane1-8/+10
The MediaBag is thread through from the reader, with no need to extract to files.
2014-07-30pandoc: Thread media bag into WriterOptions.John MacFarlane1-12/+14
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.
2014-07-30Added --extract-media option.John MacFarlane1-16/+47
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.
2014-07-30Make toplevel pandoc bin make use of mediabag.Jesse Rosenthal1-1/+2
Note that at the moment the mediabag is discarded. This will have to be changed to make use of it.
2014-07-27Txt2Tags Reader: Added recognition of macrosMatthew Pickering1-6/+14
2014-07-27Txt2Tags Reader: Integrated into pandocMatthew Pickering1-1/+2
2014-07-01Merge branch 'master' of git://github.com/jgm/pandoc into dokuwikiClare Macrae1-2/+6
2014-06-30Filters: respect shebang if filter is executable.John MacFarlane1-2/+6
Closes #1389.
2014-06-29Merge remote-tracking branch 'jgm/master' into dokuwikiClare Macrae1-124/+231
2014-06-27Fixed `--filter` so it doesn't search PATH for a filter with a path.John MacFarlane1-1/+3
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.
2014-06-25Add track changes option to command line.Jesse Rosenthal1-0/+17
2014-06-21Fixed compiler warnings.John MacFarlane1-2/+0
2014-06-20Filters: don't print misleading error message.John MacFarlane1-4/+1
Previously pandoc would say that a filter was not found, even in a case where the filter had a syntax error.
2014-06-16Integrated the docx reader into the main pandoc program.mpickering1-3/+10
Changes also include generalising the types of reader allowed. The mechanism now mimics the more general output mechanism.
2014-05-09Update copyright notices for 2014, add missing noticesAlbert Krewinkel1-3/+3
2014-04-27Allow html4 as synonym of html as reader.John MacFarlane1-6/+7
It already worked for writer.
2014-04-27Fix #1267.John MacFarlane1-10/+13
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".
2014-04-27A bit of refactoring that shouldn't change any semantics.John MacFarlane1-10/+9
In preparation for a fix to #1267.
2014-04-05Give more useful error message if '-t pdf' is specified.John MacFarlane1-16/+24
Closes #1155.
2014-04-05Make it possible to run filters that aren't executable.John MacFarlane1-2/+18
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.
2014-03-19PDF: Changes to error reporting, to handle non-UTF8 error output.John MacFarlane1-1/+4
2014-03-04Add a simple Emacs Org-mode readerAlbert Krewinkel1-0/+1
The basic structure of org-mode documents is recognized; however, org-mode features like todo markers, tags etc. are not supported yet.
2014-02-25Added readerTrace to ReaderOptions, --trace command line opt.John MacFarlane1-0/+9
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.
2014-01-03The `--bibliography` option now sets the `biblio-files` variable.John MacFarlane1-0/+3
So, if you're using `--natbib` or `--biblatex`, you can just use `--bibliography=foo.bib` instead of `-V bibliofiles=foo`.
2014-01-02Merge pull request #1005 from nougad/consistent_bibliographyJohn MacFarlane1-1/+3
Don't add pandoc-citeproc filter if natbib or biblatex is used
2013-12-19HLint: redundant parensHenry de Valence1-4/+2
Remove parens enclosing a single element.
2013-12-19HLint: use `elem` and `notElem`Henry de Valence1-1/+1
Replaces long conditional chains with calls to `elem` and `notElem`.
2013-12-05Allow https: to work in pandoc command line arguments.John MacFarlane1-5/+8
(Use openURL from Shared instead of simpleHTTP.)
2013-11-30Allow "epub2" as synonym for "epub", "html4" for "html".John MacFarlane1-1/+4
2013-10-21Don't look for slidy files in data files w/ --self-contained.John MacFarlane1-2/+0
2013-09-30Fixed stupid copy&paste errorFlorian Eitel1-1/+0
How could this happend? sry
2013-09-30Don't add pandoc-citeproc filter if natbib or biblatex is usedFlorian Eitel1-1/+4
See https://github.com/jgm/pandoc-templates/issues/42
2013-09-19Handle Boolean values in `--metadata`.John MacFarlane1-4/+13
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"'
2013-09-17More informative error when a filter is not found in path.John MacFarlane1-2/+7
No more "resource vanished (broken pipe)"!
2013-09-17Allow `--metadata` to be repeated for the same key to form a list.John MacFarlane1-14/+26
This also has the effect that `--bibliography` can be repeated, as before.
2013-09-14More robust check for '-F pandoc-filters', allowing pathnames.John MacFarlane1-3/+3
2013-09-10`--bibliography` again implies `-F pandoc-citeproc`.John MacFarlane1-5/+11
But only if pandoc-citeproc isn't already specified as a filter.
2013-09-08`--bibliography` no longer implies `-F pandoc-citeproc`.John MacFarlane1-2/+0
This could lead to double filtering if the user specifies `-F` too.
2013-09-01Changed --metadata to return Boolean True if no value.John MacFarlane1-7/+8
Also documented in README.
2013-09-01Change for latest pandoc-citeproc.John MacFarlane1-1/+1
2013-09-01Restore --bibliography, --csl, --citation-abbreviations.John MacFarlane1-0/+27
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
2013-09-01Added `--metadata/-M` option.John MacFarlane1-7/+23
This is like `--variable/-V`, but actually adds to metadata, not just variables.
2013-08-25Added `-F` as shortcut for `--filter`.John MacFarlane1-1/+1
2013-08-24Removed dependency on citeproc-hs.John MacFarlane1-65/+3
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.