Commit graph

37 commits

Author SHA1 Message Date
Albert Krewinkel
cd4b8f66bb Cabal cleanup (#5693)
* pandoc.cabal: remove conditionals for ghc < 8.0. Support for GHC 7.10 has been dropped.
* pandoc.cabal: compile with `-Wcpp-undef` when possible
* pandoc.cabal: compile with `-fhide-source-paths` if possible
2019-08-26 17:04:30 -07:00
John MacFarlane
8a26422bfc Use dev version of doctemplates. 2019-08-25 23:49:40 -07:00
John MacFarlane
188bd5e1e9 Update cabal.project to use released doctemplates. 2019-08-25 14:30:19 -07:00
John MacFarlane
1ee6e0e087 Use new doctemplates, doclayout.
+ Remove Text.Pandoc.Pretty; use doclayout instead. [API change]
+ Text.Pandoc.Writers.Shared: remove metaToJSON, metaToJSON'
  [API change].
+ Text.Pandoc.Writers.Shared: modify `addVariablesToContext`,
  `defField`, `setField`, `getField`, `resetField` to work with
  Context rather than JSON values. [API change]
+ Text.Pandoc.Writers.Shared: export new function `endsWithPlain` [API
  change].
+ Use new templates and doclayout in writers.
+ Use Doc-based templates in all writers.
+ Adjust three tests for minor template rendering differences.
+ Added indentation to body in docbook4, docbook5 templates.

The main impact of this change is better reflowing of content
interpolated into templates.  Previously, interpolated variables
were rendered independently and intepolated as strings, which could lead
to overly long lines.  Now the templates interpolated as Doc values
which may include breaking spaces, and reflowing occurs
after template interpolation rather than before.
2019-08-25 14:24:31 -07:00
John MacFarlane
5b11ca03e1 Use released pandoc-types. 2019-08-23 12:50:58 -07:00
Albert Krewinkel
6166f9499f
cabal.project: remove options unsupported by GHC 8.0 2019-08-16 20:52:15 +02:00
Albert Krewinkel
813e1fc7e0
Lua: add module for AST element sequence traversal
Lua filters must be able to traverse sequences of AST elements and to
replace elements by splicing sequences back in their place. Special
`Walkable` instances can be used for this; those are provided in a new
module `Text.Pandoc.Lua.Walk`.
2019-08-16 20:52:15 +02:00
John MacFarlane
ea3a779f7b Use dev version of pandoc-citeproc. 2019-08-05 10:51:06 -07:00
John MacFarlane
3ab1f21568 Use latest pandoc-citeproc. 2019-07-28 23:43:04 -07:00
John MacFarlane
dddad515e8 Update pandoc-citeproc and skylighting versions. 2019-06-04 09:01:50 -07:00
John MacFarlane
9e63924f28 Add ghc-options to cabal.project. 2019-03-27 09:36:52 -07:00
John MacFarlane
12e36ba827 Use latest pandoc-citeproc. 2019-03-12 23:27:45 -07:00
John MacFarlane
a286ef2eb5 Update pandoc-citeproc version in cabal.project. 2019-03-07 22:38:14 -08:00
John MacFarlane
994ca26199 cabal.project - update pandoc-citeproc version. 2019-03-03 09:16:28 -08:00
John MacFarlane
fb5bafd13e Use latest pandoc-citeproc (0.16.1). 2019-02-15 15:05:46 -08:00
John MacFarlane
4ef23623d3 Use pandoc-citeproc-0.16.0.2 2019-02-07 10:00:21 -08:00
John MacFarlane
5d3b8ede15 cabal.project - use released pandoc-citeproc (take 2). 2019-02-06 17:32:46 -08:00
John MacFarlane
23932d5e05 cabal.project - use released pandoc-citeproc. 2019-02-06 10:56:28 -08:00
John MacFarlane
aec7afa24a Fix cabal.project. 2019-01-25 08:11:24 -08:00
John MacFarlane
975d8efb3b cabal.project - set flag defaults, revise pandoc-citeproc commit. 2019-01-25 06:56:08 -08:00
John MacFarlane
395ea03069 Support ipynb (Jupyter notebook) as input and output format.
[API change]

* Depend on ipynb library.

* Add `ipynb` as input and output format.

* Added Text.Pandoc.Readers.Ipynb (supports both nbformat v3 and v4).

* Added Text.Pandoc.Writers.Ipynb (supports nbformat v4).

* Added ipynb readers and writers to T.P.Readers,
  T.P.Writers, and T.P.Extensions.  Register the
  file extension .ipynb for this format.

* Add `PandocIpynbDecodingError` constructor to Text.Pandoc.Error.Error.

* Note: there is no template for ipynb.
2019-01-22 21:45:59 -08:00
John MacFarlane
80e86109a2 Use compatible version of pandoc-citeproc. 2018-12-02 09:33:50 -08:00
John MacFarlane
465f11833f Remove tag on pandoc-citeproc in cabal.project. 2018-10-18 20:45:20 -07:00
John MacFarlane
2cd8f1f155 cabal.project - add tag for pandoc-citeproc. 2018-10-18 17:01:56 -07:00
John MacFarlane
19d9afcae6 Revert "cabal.project - removed git repo for pandoc-citeproc."
This reverts commit 29ea3e734d.
2018-10-18 16:58:47 -07:00
John MacFarlane
29ea3e734d cabal.project - removed git repo for pandoc-citeproc.
Released version is okay.
2018-10-18 16:43:36 -07:00
John MacFarlane
ebdb2deb0d Updated version bounds for containers and haddock-library.
Allow haddock-library 1.7 and containers 0.6.*.

Closes #4974.
2018-10-17 17:30:14 -07:00
John MacFarlane
65cf5cfe7b cabal.project - use latest pandoc-citeproc from git. 2018-10-04 10:34:10 -07:00
John MacFarlane
7bf80575b5 cabal.project - added pandoc.citeproc again. 2018-10-02 10:48:24 -07:00
John MacFarlane
2bec94e49f cabal.project - remove source-dependency stanzas.
They shouldn't be needed given new releases of these packages.
2018-10-01 23:58:25 -07:00
John MacFarlane
890d67bc2f Use released pandoc-citeproc, texmath. 2018-09-28 16:28:56 -07:00
John MacFarlane
4461134b14 Added 'allow-newer' to cabal.project. 2018-09-26 22:20:14 -07:00
John MacFarlane
881a1e0145 Add texmath to cabal.project. 2018-09-25 19:00:34 -07:00
John MacFarlane
b3ada2f11b cabal.project - use source repository stanzas. 2018-09-25 17:48:33 -07:00
John MacFarlane
225062a2bc cabal.project - use vendor/*/*.cabal. 2018-09-25 15:24:22 -07:00
John MacFarlane
cc993460be cabal.project - use ./pandoc-citeproc. 2018-09-25 15:23:02 -07:00
John MacFarlane
cbdf7f4199 Added cabal.project. 2018-09-25 15:07:46 -07:00