aboutsummaryrefslogtreecommitdiff
path: root/pandoc.cabal
AgeCommit message (Collapse)AuthorFilesLines
2017-04-01Allow a theme file as argument to `--highlight-style`.John MacFarlane1-0/+2
Also include a sample, `default.theme`, in `data/`.
2017-03-30Add JATS to description in pandoc.cabal.John MacFarlane1-1/+1
2017-03-30Automatically include URI-encoded jats.csl for jats output.John MacFarlane1-0/+2
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.
2017-03-30Added JATS writer.John MacFarlane1-0/+3
* New module Text.Pandoc.Writer.JATS exporting writeJATS. * New output format `jats`. * Added tests. * Revised manual.
2017-03-28Added default.jats template.John MacFarlane1-0/+1
This is copied from Martin Fenner's pandoc-jats project: https://github.com/mfenner/pandoc-jats
2017-03-27Add auxiliary files for command test for #3530 to pandoc.cabal.John MacFarlane1-0/+2
Otherwise builds fail.
2017-03-26Revert "Use file-embed instead of hsb2hs to embed data files."John MacFarlane1-1/+1
This reverts commit 10d91c147968d2e4d63b99b5b0342624827f416f.
2017-03-26Use file-embed instead of hsb2hs to embed data files.John MacFarlane1-1/+1
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.
2017-03-24Ensure compatibility with hslua 0.5.*Albert Krewinkel1-1/+2
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.
2017-03-23Allow creation of pdf via groff ms and pdfroff.John MacFarlane1-4/+5
pandoc -t ms -o output.pdf input.txt
2017-03-23Initial addition of groff ms writer.John MacFarlane1-1/+5
* 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.
2017-03-20Added two lua test files to extra-source-files in pandoc.cabal.John MacFarlane1-0/+2
This was caught by our new .travis.yml, which builds from an extracted sdist tarball instead of the repository.
2017-03-20Lua filters (#3514)Albert Krewinkel1-0/+7
* 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-16Added test for #256.John MacFarlane1-0/+1
2017-03-16Add default abbreviations file (data/abbreviations).John MacFarlane1-0/+2
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).
2017-03-15Removed another unused cabal dependency.John MacFarlane1-1/+0
2017-03-15Removed some unnecessary build-depends.John MacFarlane1-8/+3
2017-03-15Use tasty-golden for golden tests in Old.John MacFarlane1-0/+2
2017-03-14Use tasty for tests rather than test-framework.John MacFarlane1-3/+3
2017-03-13Better handling of \part in LaTeX.John MacFarlane1-0/+1
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.
2017-03-10Add Muse writer (#3489)Alexander Krotov1-1/+6
* Add Muse writer * Advertise new Muse writer * Muse writer: add regressions tests
2017-03-10Expand \newenvironment macros.John MacFarlane1-1/+1
Closes #987. Depends on still unreleased texmath 0.9.3.
2017-03-04Require skylighting 0.3.1.John MacFarlane1-2/+2
2017-03-02Bumped syb upper bound.John MacFarlane1-3/+3
2017-02-25Expose some unexposed modules.John MacFarlane1-5/+5
+ 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.
2017-02-20We need process >= 1.2.3 for readCreateProcessWithExitCode.John MacFarlane1-2/+2
2017-02-20Updated test-with field.John MacFarlane1-1/+1
2017-02-20Use latest skylighting (0.3).John MacFarlane1-2/+2
2017-02-20Use new skylighting-0.2.John MacFarlane1-2/+2
2017-02-12pandoc.cabal: use cpphs if embed_data_files and darwin.John MacFarlane1-0/+3
2017-02-12Add Org writer unit testsAlexander Krotov1-0/+1
2017-02-11Added --log option to save log messages in JSON format to a file.John MacFarlane1-17/+2
See #3392.
2017-02-10Added Text.Pandoc.Logging (exported module).John MacFarlane1-0/+1
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.
2017-02-05Split pandoc.hs into a module, Text.Pandoc.App, and a small program.John MacFarlane1-5/+6
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-04Added first command test to cabal metadata and repo.John MacFarlane1-0/+1
2017-02-04Added skeleton for Tests.Command.John MacFarlane1-0/+1
2017-02-04Moved tests/ -> test/.John MacFarlane1-106/+106
2017-01-31Version bounds: require skylighting 0.1.1.4, bump bounds for blaze-*.John MacFarlane1-5/+5
2017-01-29Merge branch 'typeclass'John MacFarlane1-17/+24
2017-01-29Updated copyright to include 2017.John MacFarlane1-1/+1
2017-01-29Bump version to 1.19.2.John MacFarlane1-1/+1
2017-01-29Use latest skylighting.John MacFarlane1-3/+3
2017-01-29Fixed trypandoc.John MacFarlane1-1/+1
2017-01-28Rely on skylighting 0.1.1.2.John MacFarlane1-3/+3
2017-01-27Fix up benchmarks so they compile.John MacFarlane1-0/+1
2017-01-26Split writeDocbook into writeDocbook4, writeDocbook5.John MacFarlane1-3/+3
Removed writerDocbookVersion in WriterOptions. Renamed default.docbook template to default.docbook4. Allow docbook4 as an output format. But alias docbook = docbook4.
2017-01-26EPUB writer: split writeEPUB into writeEPUB2, writeEPUB3.John MacFarlane1-1/+1
Also include explicit epub2 output format in CLI tool.
2017-01-25Provide explicit separate functions for HTML 4 and 5.John MacFarlane1-3/+5
* 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-25Revert "Added page breaks into Pandoc."John MacFarlane1-3/+3
This reverts commit f02a12aff638fa2339192231b8f601bffdfe3e14.
2017-01-25Compile against pandoc-types 1.18.*.John MacFarlane1-3/+3