summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/App.hs
Commit message (Collapse)AuthorAge
* _online_latexmathml_defaultDebian Haskell Group2018-04-24
| | | Gbp-Pq: Name 1001_online_latexmathml_default.patch
* Move filter functions to separate moduleAlbert Krewinkel2018-01-13
|
* Lua filters: make PANDOC_READER_OPTIONS availableAlbert Krewinkel2018-01-12
| | | | | The options which were used to read the document are made available to Lua filters via the `PANDOC_READER_OPTIONS` global.
* Use latest skylighting and omit the 'missingincludes' check.John MacFarlane2018-01-07
| | | | | | | | | | If you use a custom syntax definition that refers to a syntax you haven't loaded, pandoc will now complain when it is highlighting the text, rather than at the start. This saves a huge performance hit from the `missingIncludes` check. Closes #4226.
* Don't use `missingIncludes` unless custom syntax defs have been given.John MacFarlane2018-01-06
| | | | | | | | | This avoids a huge performance sink that comes from evaluating all the elements of the default syntax map. Better just to have run-time errors for missing includes? See #4226.
* Update copyright notices to include 2018Albert Krewinkel2018-01-05
|
* Filter changes.John MacFarlane2017-12-28
| | | | | | | | | | | * Previously we ran all lua filters before JSON filters. * Now we run filters in the order they are presented on the command line, whether lua or JSON. * The type of `applyFilters` has changed (incompatible API change). * `applyLuaFilters` has been removed (incompatible API change). * Bump version to 2.1. See #4196.
* Changed format of --list-extensions.John MacFarlane2017-12-28
| | | | Now the + or - occurs first.
* Allow `--list-extensions` to take an optional FORMAT argument.John MacFarlane2017-12-27
| | | | | This lists the extensions set by default for the selected FORMAT.
* Allow lenient decoding of *latex error logs.John MacFarlane2017-12-27
| | | | | | | | These sometimes aren't properly UTF8 encoded, and it's confusing if we get an encoding error due to the error log. Closes #4200.
* Fixed bug: when target is PDF, writer extensions were being ignored.John MacFarlane2017-12-23
| | | | | | | | | | E.g. `-t latex-smart -o file.pdf` would produce a different latex intermediate than `-t latex-smart -o file.tex`. Thanks to Bernhard Fisseni for pointing this out. This is a regression since pandoc 2.0 (introduced in commit c7e3c1ec).
* Add pptx to isTextFormat listJesse Rosenthal2017-12-21
| | | | This is used to check standalone and not writing to the terminal.
* Custom writer: use init file to setup Lua interpreterAlbert Krewinkel2017-12-13
| | | | | | The same init file (`data/init`) that is used to setup the Lua interpreter for Lua filters is also used to setup the interpreter of custom writers.lua.
* `--pdf-engine-opt`: fix bug where option order was reversed.John MacFarlane2017-12-11
| | | | Closes #4137.
* Integrate Powerpoint writer into pandoc.Jesse Rosenthal2017-12-11
|
* Changes for skylighting-0.5.John MacFarlane2017-12-10
| | | | | | | | | | | | | | This fixes a bug in 2.0.4, whereby pandoc could not read the theme files generated with `--print-highlight-style`. It also fixes some CSS issues involving line numbers. Highlighted code blocks are now enclosed in a div with class sourceCode. Highlighting CSS no longer sets a generic color for pre and code; we only set these for class `sourceCode`. This will close #4133 and #4128.
* Add `empty_paragraphs` extension.John MacFarlane2017-12-04
| | | | | | | | | | | | | | | | * Deprecate `--strip-empty-paragraphs` option. Instead we now use an `empty_paragraphs` extension that can be enabled on the reader or writer. By default, disabled. * Add `Ext_empty_paragraphs` constructor to `Extension`. * Revert "Docx reader: don't strip out empty paragraphs." This reverts commit d6c58eb836f033a48955796de4d9ffb3b30e297b. * Implement `empty_paragraphs` extension in docx reader and writer, opendocument writer, html reader and writer. * Add tests for `empty_paragraphs` extension.
* Add --strip-empty-paragraphs option.John MacFarlane2017-12-02
| | | | This works for any input format.
* Added --print-highlight-style option.John MacFarlane2017-11-28
| | | | | | | | This generates a JSON version of a highlighting style, which can be saved as a .theme file, modified, and used with `--highlight-style`. Closes #4106. Closes #4096.
* Fix --help output for --highlight-style to include FILE (#4098)Mauro Bieg2017-11-27
| | | Closes #4095.
* Clearer deprecation warning for --latexmathml, --asciimathml, -m.John MacFarlane2017-11-26
| | | | | Previously we only mentioned `--latexmathml`, even if `-m` was used.
* Add comment explaining why TH is used in Text.Pandoc.App.John MacFarlane2017-11-21
|
* Change JSON instances for Opt to TemplateHaskell (#4083)Jasper Van der Jeugt2017-11-21
| | | | | | | | | | | | | | | | | | | The `Generic` JSON instances for `Text.Pandoc.App.Opt` seem to tickle a particulary bad quadratic complexity case (Generics complexity is worse than quadratic with respect to the number of fields in the datatype). This is with GHC-8.2.1, I didn't test it using 8.0 but I assume it is similar. Using `Generic`, compilation of the `Text.Pandoc.App` module takes minutes and often gets killed due to out of memory on slower machines with "only" 8GB of accessible memory. This is particularly annoying to me since it means I cannot build pandoc on Travis. TemplateHaskell is a little uglier, but the module seems to compile within a few seconds, and compilation doesn't take more than 1GB of memory. Should I also change the other JSON instances throughout the codebase for consistency?
* Recognize ".muse" file extensionAlexander Krotov2017-11-21
|
* Fix regression with --metadata.John MacFarlane2017-11-08
| | | | | | | It should replace a metadata value set in the document itself, rather than creating a list including a new value. Closes #4054.
* Deprecated ancient HTML math methods.John MacFarlane2017-11-07
| | | | | | | `--latexmathml`, `--gladtex`, `--mimetex`, `--jsmath`
* EPUB writer fixes:John MacFarlane2017-10-30
| | | | | | | | | | | - Ensure that epub2 is recognized as a non-text format, so that a template is used. - Don't include "prefix" attribute for ibooks for epub2. It doesn't validate. - Fix stylesheet paths; previously we had an incorrect stylesheet path for the cover page and nav page.
* Fixed warnings.John MacFarlane2017-10-29
|
* Use uncurry.John MacFarlane2017-10-29
|
* hlint suggestions.John MacFarlane2017-10-27
|
* hlint suggestions.John MacFarlane2017-10-27
|
* Automatic reformating by stylish-haskell.John MacFarlane2017-10-27
|
* makePDF: add argument for pdf options, remove writerPdfArgs.John MacFarlane2017-10-26
| | | | | - Removed writerPdfArgs from WriterOptions (API change). - Added parameter for pdf args to makePDF.
* Text.Pandoc.App: export applyFilters, applyLuaFilters. (API change)John MacFarlane2017-10-24
|
* App: added --request-header option.John MacFarlane2017-10-15
|
* Handle unknown options in form `--latex-engine=foo`.John MacFarlane2017-10-15
| | | | | Previously these were not triggering the helpful message about option name changes.
* Removed redundant importJohn MacFarlane2017-10-06
|
* KaTeX fixes:John MacFarlane2017-10-05
| | | | | | | * In Options.HTMLMathMethod, the KaTeX contsructor now takes only one string (for the KaTeX base URL), rather than two [API change]. * The default URL has been updated to the latest version. * The autoload script is now loaded by default.
* Removed Verbosity and MediaBag params from makePDF.John MacFarlane2017-09-30
| | | | | They can be obtained from CommonState since we're in PandocIO.
* Removed writerSourceURL, add source URL to common state.John MacFarlane2017-09-30
| | | | | | | | | | | | | | | | | | 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`.
* Run Lua filters before extracting mediaAlbert Krewinkel2017-09-30
| | | | | This enables users to change the media files being extracted via lua filters.
* Text.Pandoc.Lua: add mediabag submoduleAlbert Krewinkel2017-09-30
|
* Support R filters #3940 (#3941)Andrie de Vries2017-09-28
|
* Lua filters: set global FORMAT instead of args.John MacFarlane2017-09-26
| | | | This changes the type of runLuaFilter.
* Fixed bug in determining writer for xelatex engine.John MacFarlane2017-09-20
| | | | This revises the last commit, fixing #3931.
* Fix and simply latex engine code in App.John MacFarlane2017-09-19
| | | | Fixes #3931.
* Added `--strip-comments` option, `readerStripComments` in `ReaderOptions`.John MacFarlane2017-09-17
| | | | | | | | | | * Options: Added readerStripComments to ReaderOptions. * Added `--strip-comments` command-line option. * Made `htmlTag` from the HTML reader sensitive to this feature. This affects Markdown and Textile input. Closes #2552.
* Set PANDOC_READER_OPTIONS in environment where filters are run.John MacFarlane2017-09-15
| | | | This contains a JSON representation of ReaderOptions.
* Add default pdf engine for beamer.John MacFarlane2017-09-12
|
* Use defaultLatexEngine instead of `head latexEngines`.John MacFarlane2017-09-12
| | | | Partial functions make me nervous.