aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/App.hs
AgeCommit message (Collapse)AuthorFilesLines
2017-03-04Stylish-haskell automatic formatting changes.John MacFarlane1-109/+110
2017-03-04hlint refactoring.John MacFarlane1-12/+9
2017-02-27Removed `--epub-stylesheet`; use `--css` instead.John MacFarlane1-13/+2
* Removed writerEpubStylesheet in WriterOptions. * Removed `--epub-stylesheet` option. * Allow `--css` to be used with epub. * Allow multiple stylesheets to be used. * Stylesheets will be taken both from `--css` and from the `stylesheet` metadata field (which can contain either a file path or a list of them). Closes #3472, #847.
2017-02-25App: reverse optInputFiles so they come out in right order in templates.John MacFarlane1-1/+5
2017-02-25Add `sourcefile` and `outputfile` template variables (#3439)Roland Hieber1-0/+5
Closes #3431.
2017-02-25Make `--ascii` work with DocBook output too.John MacFarlane1-1/+4
2017-02-23Use PandocIOError in Class.John MacFarlane1-5/+1
2017-02-23Put makeSelfContained in PandocMonad instead of IO.John MacFarlane1-1/+1
This removes the need to pass MediaBag around and improves exceptions. It also opens up the possibility of using makeSelfContained purely.
2017-02-20Added Functor constraint to keep ghc 7.8.4 happy.John MacFarlane1-1/+1
2017-02-11Rename logMessagesToJSON -> encodeLogMessages.John MacFarlane1-2/+1
2017-02-11Logging: export logMessagesToJSON.John MacFarlane1-2/+2
Use a deterministic order for fields.
2017-02-11Added --log option to save log messages in JSON format to a file.John MacFarlane1-0/+12
See #3392.
2017-02-11Use new warnings throughout the code base.John MacFarlane1-2/+1
2017-02-06Removed --parse-raw and readerParseRaw.John MacFarlane1-19/+14
These were confusing. Now we rely on the +raw_tex or +raw_html extension with latex or html input. Thus, instead of --parse-raw -f latex we use -f latex+raw_tex and instead of --parse-raw -f html we use -f html+raw_html
2017-02-06Fix importJohn MacFarlane1-1/+1
2017-02-06Changed year on copyright message.John MacFarlane1-1/+1
2017-02-06Consolidated file arguments into Opt.John MacFarlane1-4/+7
2017-02-06Further refactoring of App.John MacFarlane1-8/+724
Moved option parsing code into App. pandoc.hs is now a 2-liner.
2017-02-05Fix an unneeded import warning.John MacFarlane1-1/+1
2017-02-05Split pandoc.hs into a module, Text.Pandoc.App, and a small program.John MacFarlane1-0/+720
The App module provides a function that does a pandoc conversion, based on option settings. The program (pandoc.hs) now does nothing more than parse options and pass them to this function, which can easily be used by other applications (e.g. a GUI wrapper). The Opt structure has been further simplified. API changes: * New exposed module Text.Pandoc.App * Text.Pandoc.Highlighting has been exposed. * highlightingStyles has been moved to Text.Pandoc.Highlighting.