summaryrefslogtreecommitdiff
path: root/pandoc.cabal
Commit message (Collapse)AuthorAge
* Improve SVG image size code.Marc Schreiber2017-05-20
| | | | | | | The old code made some unwise assumptions about how the svg file would look. See #3580.
* Org reader: put tree parsing code into dedicated moduleAlbert Krewinkel2017-05-16
|
* Org reader: add basic file inclusion mechanismAlbert Krewinkel2017-05-14
| | | | | | | | | Support for the `#+INCLUDE:` file inclusion mechanism was added. Recognized include types are *example*, *export*, *src*, and normal org file inclusion. Advanced features like line numbers and level selection are not implemented yet. Closes: #3510
* Remove https flag.John MacFarlane2017-05-07
| | | | | | | | | Supporting two completely different libraries for fetching from URLs makes it difficult to trap errors, because of different error types expected from the libraries. There's no clear reason not to build with these https-capable libraires.
* API change: move writer functions to Text.Pandoc.WritersAlbert Krewinkel2017-04-26
| | | | | | Writer helper functions were defined in the top-level Text.Pandoc module. These functions are moved to the Writer submodule as to enable reuse in other submodules.
* API change: move reader functions to Text.Pandoc.ReadersAlbert Krewinkel2017-04-26
| | | | | | Reader helper functions were defined in the top-level Text.Pandoc module. These functions are moved to the Readers submodule as to enable reuse in other submodules.
* Allow aeson 1.2.0.0.John MacFarlane2017-04-22
|
* Use skylighitng >= 0.3.3.John MacFarlane2017-04-22
|
* Lua filter: allow shorthand functions for math and quotedAlbert Krewinkel2017-04-14
| | | | | Allow to use functions named `SingleQuoted`, `DoubleQuoted`, `DisplayMath`, and `InlineMath` in filters.
* Avoid repeating StackValue instances definitionsAlbert Krewinkel2017-04-14
| | | | | | The lua filters and custom lua writer system defined very similar StackValue instances for strings and tuples. These instance definitions are extracted to a separate module to enable sharing.
* Extract lua helper functions into Lua.Util moduleAlbert Krewinkel2017-04-14
|
* Drop dependency on hslua-aesonAlbert Krewinkel2017-04-14
| | | | | Pushing values to the lua stack via custom functions is faster and more flexible.
* Ensure correctness of StackValue instancesAlbert Krewinkel2017-04-06
|
* Merge pull request #3550 from tarleb/lua-readers-submoduleJohn MacFarlane2017-04-03
|\ | | | | Lua module: add readers submodule
| * Lua module: add readers submoduleAlbert Krewinkel2017-04-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Plain text readers are exposed to lua scripts via the `pandoc.reader` submodule, which is further subdivided by format. Converting e.g. a markdown string into a pandoc document is possible from within lua: doc = pandoc.reader.markdown.read_doc("Hello, World!") A `read_block` convenience function is provided for all formats, although it will still parse the whole string but return only the first block as the result. Custom reader options are not supported yet, default options are used for all parsing operations.
* | Revert "Revert "Use file-embed instead of hsb2hs to embed data files.""John MacFarlane2017-04-02
| | | | | | | | This reverts commit 1fa15c225b515e1fa1c6566f90f1be363a4d770f.
* | Text.Pandoc.App: Throw errors rather than exiting.John MacFarlane2017-04-02
|/ | | | | | | | | | | | | | | | | 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.
* Allow a theme file as argument to `--highlight-style`.John MacFarlane2017-04-01
| | | | Also include a sample, `default.theme`, in `data/`.
* Add JATS to description in pandoc.cabal.John MacFarlane2017-03-30
|
* Automatically include URI-encoded jats.csl for jats output.John MacFarlane2017-03-30
| | | | | | | | | This way people can do pandoc -s -t jats --filter pandoc-citeproc and it will just work. If they want to specify a stylesheet, they still can.
* Added JATS writer.John MacFarlane2017-03-30
| | | | | | | * New module Text.Pandoc.Writer.JATS exporting writeJATS. * New output format `jats`. * Added tests. * Revised manual.
* Added default.jats template.John MacFarlane2017-03-28
| | | | | This is copied from Martin Fenner's pandoc-jats project: https://github.com/mfenner/pandoc-jats
* Add auxiliary files for command test for #3530 to pandoc.cabal.John MacFarlane2017-03-27
| | | | Otherwise builds fail.
* Revert "Use file-embed instead of hsb2hs to embed data files."John MacFarlane2017-03-26
| | | | This reverts commit 10d91c147968d2e4d63b99b5b0342624827f416f.
* Use file-embed instead of hsb2hs to embed data files.John MacFarlane2017-03-26
| | | | | | | | | | I think template haskell is robust enough now across platforms that this will work. Motivation: file-embed gives us better dependency tracking: if a data file changes, ghc/stack/cabal know to recompile the Data module. This also removes hsb2hs as a build dependency.
* Ensure compatibility with hslua 0.5.*Albert Krewinkel2017-03-24
| | | | | | The 0.5.0 release of hslua fixes problems with lua C modules on linux. The signature of the `loadstring` function changed, so a compatibility wrapper is introduced to allow both 0.4.* and 0.5.* versions to be used.
* Allow creation of pdf via groff ms and pdfroff.John MacFarlane2017-03-23
| | | | pandoc -t ms -o output.pdf input.txt
* Initial addition of groff ms writer.John MacFarlane2017-03-23
| | | | | | | | | * New module: Text.Pandoc.Writers.Ms. * New template: default.ms. * The writer uses texmath's new eqn writer to convert math to eqn format, so a ms file produced with this writer should be processed with `groff -ms -e` if it contains math.
* Added two lua test files to extra-source-files in pandoc.cabal.John MacFarlane2017-03-20
| | | | | This was caught by our new .travis.yml, which builds from an extracted sdist tarball instead of the repository.
* Lua filters (#3514)Albert Krewinkel2017-03-20
| | | | | | | | | * 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.
* Added test for #256.John MacFarlane2017-03-16
|
* Add default abbreviations file (data/abbreviations).John MacFarlane2017-03-16
| | | | | | | | | | This contains a list of strings that will be recognized by pandoc's Markdown parser as abbreviations. (A nonbreaking space will be inserted after the period, preventing a sentence space in formats like LaTeX.) Users can override the default by putting a file abbreviations in their user data directory (`~/.pandoc` on *nix).
* Removed another unused cabal dependency.John MacFarlane2017-03-15
|
* Removed some unnecessary build-depends.John MacFarlane2017-03-15
|
* Use tasty-golden for golden tests in Old.John MacFarlane2017-03-15
|
* Use tasty for tests rather than test-framework.John MacFarlane2017-03-14
|
* Better handling of \part in LaTeX.John MacFarlane2017-03-13
| | | | | | | | | | | | Closes #1905. Removed stateChapters from ParserState. Now we parse chapters as level 0 headers, and parts as level -1 headers. After parsing, we check for the lowest header level, and if it's less than 1 we bump everything up so that 1 is the lowest header level. So `\part` will always produce a header; no command-line options are needed.
* Add Muse writer (#3489)Alexander Krotov2017-03-10
| | | | | | | | * Add Muse writer * Advertise new Muse writer * Muse writer: add regressions tests
* Expand \newenvironment macros.John MacFarlane2017-03-10
| | | | | | Closes #987. Depends on still unreleased texmath 0.9.3.
* Require skylighting 0.3.1.John MacFarlane2017-03-04
|
* Bumped syb upper bound.John MacFarlane2017-03-02
|
* Expose some unexposed modules.John MacFarlane2017-02-25
| | | | | | | | | | | | | + Text.Pandoc.Writers.Shared + Text.Pandoc.Parsing + Text.Pandoc.Asciify + Text.Pandoc.Emoji + Text.Pandoc.ImageSize [API change] These are often helpful to people writing their own reader or writer modules. Closes #3260.
* We need process >= 1.2.3 for readCreateProcessWithExitCode.John MacFarlane2017-02-20
|
* Updated test-with field.John MacFarlane2017-02-20
|
* Use latest skylighting (0.3).John MacFarlane2017-02-20
|
* Use new skylighting-0.2.John MacFarlane2017-02-20
|
* pandoc.cabal: use cpphs if embed_data_files and darwin.John MacFarlane2017-02-12
|
* Add Org writer unit testsAlexander Krotov2017-02-12
|
* Added --log option to save log messages in JSON format to a file.John MacFarlane2017-02-11
| | | | See #3392.
* Added Text.Pandoc.Logging (exported module).John MacFarlane2017-02-10
| | | | | | | | | | | | This now contains the Verbosity definition previously in Options, as well as a new LogMessage datatype that will eventually be used instead of raw strings for warnings. This will enable us, among other things, to provide machine-readable warnings if desired. See #3392.