summaryrefslogtreecommitdiff
path: root/pandoc.hs
AgeCommit message (Collapse)Author
2020-12-10Move executable to app directory.John MacFarlane
Otherwise we have problems with cabal repl.
2020-03-13Update copyright year (#6186)Albert Krewinkel
* Update copyright year * Copyright: add notes for Lua and Jira modules
2019-03-01Remove license boilerplate (pandoc.hs).John MacFarlane
2018-03-18Use NoImplicitPrelude and explicitly import Prelude.John MacFarlane
This seems to be necessary if we are to use our custom Prelude with ghci. Closes #4464.
2018-01-05Update copyright notices to include 2018Albert Krewinkel
2017-10-27hlint suggestions.John MacFarlane
2017-10-27More code simp in pandoc.hs.John MacFarlane
2017-10-27pandoc.hs - removed some cruft.John MacFarlane
2017-10-26update years in copyrightKolen Cheung
2017-06-02hlint suggestions.John MacFarlane
2017-06-01Some hlint refactoring.John MacFarlane
2017-04-02Text.Pandoc.App: Throw errors rather than exiting.John MacFarlane
These are caught (and lead to exit) in pandoc.hs, but other uses of Text.Pandoc.App may want to recover in another way. Added PandocAppError to PandocError (API change). This is a stopgap: later we should have a separate constructor for each type of error. Also fixed uses of 'exit' in Shared.readDataFile, and removed 'err' from Shared (API change). Finally, removed the dependency on extensible-exceptions. See #3548.
2017-03-20Lua filters (#3514)Albert Krewinkel
* Add `--lua-filter` option. This works like `--filter` but takes pathnames of special lua filters and uses the lua interpreter baked into pandoc, so that no external interpreter is needed. Note that lua filters are all applied after regular filters, regardless of their position on the command line. * Add Text.Pandoc.Lua, exporting `runLuaFilter`. Add `pandoc.lua` to data files. * Add private module Text.Pandoc.Lua.PandocModule to supply the default lua module. * Add Tests.Lua to tests. * Add data/pandoc.lua, the lua module pandoc imports when processing its lua filters. * Document in MANUAL.txt.
2017-03-04Stylish-haskell automatic formatting changes.John MacFarlane
2017-02-06Consolidated file arguments into Opt.John MacFarlane
2017-02-06Further refactoring of App.John MacFarlane
Moved option parsing code into App. pandoc.hs is now a 2-liner.
2017-02-06Removed another redundant import.John MacFarlane
2017-02-05Split pandoc.hs into a module, Text.Pandoc.App, and a small program.John MacFarlane
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.
2017-02-05pandoc.hs: make reader and writer Maybe values in Opt.John MacFarlane
2017-02-05More simplification of pandoc.hs.John MacFarlane
Opt is now set up to contain only the basic content passed through the options -- further processing (lookup of styles, insertion of file contents, etc.) is now done later.
2017-02-04More simplification of Opt in pandoc.hs.John MacFarlane
We defer file reading til after option parsing.
2017-02-04More simplification of Opt in pandoc.hs.John MacFarlane
2017-02-04Small revision to deprecation message for --old-dashes.John MacFarlane
2017-02-04Simplified Opt structure in cli option parsing.John MacFarlane
We should make this closer to the actual options, and do processing outside.
2017-02-04Better error messages for removed options.John MacFarlane
See #3416.
2017-02-04Added TODO comment.John MacFarlane
2017-01-30`--mathml` and MathML in HTMLMathMethod longer take an argument.John MacFarlane
The argument was for a bridge javascript that used to be necessary in 2004. We have removed the script already.
2017-01-28LaTeX writer: export writeBeamer.John MacFarlane
Removed writerBeamer from WriterOptions.
2017-01-25Provide explicit separate functions for HTML 4 and 5.John MacFarlane
* Text.Pandoc.Writers.HTML: removed writeHtml, writeHtmlString, added writeHtml4, writeHtml4String, writeHtml5, writeHtml5String. * Removed writerHtml5 from WriterOptions. * Renamed default.html template to default.html4. * "html" now aliases to "html5"; to get the old HTML4 behavior, you must now specify "-t html4".
2017-01-25Removed readerVerbosity and writerVerbosity.John MacFarlane
API change. Also added a verbosity parameter to makePDF.
2017-01-25More logging-related changes.John MacFarlane
Class: * Removed getWarnings, withWarningsToStderr * Added report * Added logOutput to PandocMonad * Make logOutput streaming in PandocIO monad * Properly reverse getLog output Readers: * Replaced use of trace with report DEBUG. TWiki Reader: Put everything inside PandocMonad m. API changes.
2017-01-25Changes to verbosity in writer and reader options.John MacFarlane
API changes: Text.Pandoc.Options: * Added Verbosity. * Added writerVerbosity. * Added readerVerbosity. * Removed writerVerbose. * Removed readerTrace. pandoc CLI: The `--trace` option sets verbosity to DEBUG; the `--quiet` option sets it to ERROR, and the `--verbose` option sets it to INFO. The default is WARNING.
2017-01-25Removed writerHighlight; made writerHighlightStyle a Maybe.John MacFarlane
API change. For no highlighting, set writerHighlightStyle to Nothing.
2017-01-25Removed writerIgnoreNotes.John MacFarlane
Instead, just temporarily remove notes when generating TOC lists in HTML and Markdown (as we already did in LaTeX). Also export deNote from Text.Pandoc.Shared. API change in Shared and Options.WriterOptions.
2017-01-25Removed unused readerFileScope.John MacFarlane
API change.
2017-01-25Removed writerMediaBag from WriterOpts.John MacFarlane
...since this is now handled through PandocMonad. Added an explicit MediaBag parameter to makePDF and makeSelfContained.
2017-01-25Removed writerTeXLigatures.John MacFarlane
Make `smart` extension work in LaTeX/ConTeXt writers instead. Instead of `-t latex --no-tex-ligatures`, do `-t latex-smart`.
2017-01-25Made `smart` extension default for pandoc markdown.John MacFarlane
Updated tests.
2017-01-25Removed readerOldDashes and --old-dashes option, added old_dashes extension.John MacFarlane
API change. CLI option change.
2017-01-25Removed readerSmart and the --smart option; added Ext_smart extension.John MacFarlane
Now you will need to do -f markdown+smart instead of -f markdown --smart This change opens the way for writers, in addition to readers, to be sensitive to +smart, but this change hasn't yet been made. API change. Command-line option change. Updated manual.
2017-01-25Make Extensions a custom type instead of a Set Extension.John MacFarlane
The type is implemented in terms of an underlying bitset which should be more efficient. API change: from Text.Pandoc.Extensions export Extensions, emptyExtensions, extensionsFromList, enableExtension, disableExtension, extensionEnabled.
2017-01-25Removed `--normalize` option and normalization functions from Shared.John MacFarlane
* Removed normalize, normalizeInlines, normalizeBlocks from Text.Pandoc.Shared. These shouldn't now be necessary, since normalization is handled automatically by the Builder monoid instance. * Remove `--normalize` command-line option. * Don't use normalize in tests. * A few revisions to readers so they work well without normalize.
2017-01-25pandoc.hs: moved main loop to beginning of file.John MacFarlane
2017-01-25Refactored pandoc.hs so that all the runIO' part comes at the end.John MacFarlane
2017-01-25pandoc.hs - moved some utility functions out of main loop.John MacFarlane
2017-01-25More refactoring of pandoc.hs for clarity.John MacFarlane
2017-01-25Put filter running code into MonadIOJohn MacFarlane
2017-01-25Fixed a misleading comment.John MacFarlane
2017-01-25Added a type signatureJohn MacFarlane
2017-01-25More refactoring of pandoc.hs for clarity.John MacFarlane