Albert Krewinkel
dc150df8e1
Add cabal flag derive_json_via_th
...
Disabling the flag will cause derivation of ToJSON and FromJSON
instances via GHC Generics instead of Template Haskell. The flag is
enabled by default, as deriving via Generics can be slow (see #4083 ).
2018-11-04 20:51:08 +01:00
Albert Krewinkel
418bd42df8
App: extract output settings into module
2018-11-03 10:07:47 -07:00
Albert Krewinkel
fd3c8cd8c7
App: extract command line options to separate module
2018-11-03 10:07:47 -07:00
John MacFarlane
6b7a7adcbf
Fix readWithM with Stream.
2018-11-02 20:26:36 -07:00
John MacFarlane
c721d28c33
T.P.Parsing: Generalize readWithM to any Char Stream.
...
[API change]
2018-11-02 18:23:46 -07:00
John MacFarlane
e10d5b3d5b
Change 'groff' -> 'roff'.
...
These formats (man, ms) are not groff-specific.
2018-11-01 16:46:43 -07:00
Albert Krewinkel
0531a4653a
API change: expose module Text.Pandoc.Filter
...
The module is likely to be useful to library users.
2018-10-28 12:08:52 -07:00
John MacFarlane
cd93faddbf
Revert "Roff reader: use LineParts abstraction."
...
This reverts commit 42ba3c0a0b
.
2018-10-27 12:29:54 -07:00
John MacFarlane
42ba3c0a0b
Roff reader: use LineParts abstraction.
...
This didn't really help performance in the end.
2018-10-27 12:28:15 -07:00
Albert Krewinkel
0b8a31f77f
pandoc.cabal: add GHC 8.6.1 to list of tested compilers
2018-10-27 20:35:21 +02:00
Albert Krewinkel
f966a8c432
pandoc.cabal: enable more compiler warnings
2018-10-27 20:35:20 +02:00
John MacFarlane
e0f985bb21
Rename Groff -> Roff.
...
Module T.P.Readers.Groff -> T.P.Readers.Roff
Module T.P.Writers.Groff -> T.P.Writers.Roff
Module T.P.GroffChar -> T.P.RoffChar
GroffTokens -> RoffTokens
GroffToken -> RoffToken.
2018-10-26 21:29:33 -07:00
Albert Krewinkel
7f70aaa5fa
Text.Pandoc.Lua: move globals handling to separate module
2018-10-26 22:24:21 +02:00
John MacFarlane
74396c7f90
Add man reader to pandoc.cabal description.
2018-10-25 23:16:43 -07:00
Albert Krewinkel
096cbe6987
Lua: allow access to pandoc state ( #5015 )
...
* Lua: allow access to pandoc state
Lua filters and custom writers now have read-only access to most fields
of pandoc's internal state via the global variable `PANDOC_STATE`.
* Lua: allow iterating through fields of PANDOC_STATE
* Lua filters doc: describe CommonState
* Lua filters doc: mention global variable PANDOC_STATE
* Lua: add access to logs
Log messages can currently only be printed, but not decomposed.
2018-10-25 22:12:14 -07:00
John MacFarlane
6c71100fcf
Added Text.Pandoc.Readers.Groff.
...
This is an internal module that exports a tokenizer for groff
formats.
Closes #4998 .
2018-10-24 17:38:08 -07:00
John MacFarlane
94c73e84d5
Merge branch 'Yanpas-groff_reader'
2018-10-18 20:58:46 -07:00
John MacFarlane
62467c6e46
Bump upper bound for QUickCheck.
2018-10-18 20:44:45 -07:00
John MacFarlane
9d852df615
Bump upper bound for binary.
2018-10-18 20:43:18 -07:00
John MacFarlane
bbd94eae2b
Add Text.Pandoc.GroffChar.
...
This will hold common escaping data for groff characters.
2018-10-18 09:39:55 -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
f48960b75f
Move common groff functions to Text.Pandoc.Writers.Groff
...
(unexported module). These are used in both the man and ms
writers.
Moved groffEscape out of Text.Pandoc.Writers.Shared [cancels earlier
API change from adding it, which was after last release].
This fixes strong/code combination on man (should be `\f[CB]` not
`\f[BC]`), mentioned in #4973 .
Updated tests.
Closes #4975 .
2018-10-17 17:26:37 -07:00
John MacFarlane
5c42101ee9
Merge branch 'groff_reader' of https://github.com/Yanpas/pandoc into Yanpas-groff_reader
2018-10-16 18:39:20 -07:00
Yan Pas
2c4e8941a7
update cabal, add man-reader
2018-10-17 01:34:12 +03:00
John MacFarlane
2018f41193
Update benchmarks for ghc 8.6.1.
2018-10-13 23:13:53 -07:00
John MacFarlane
259c356435
Added docx/docPropos/custom.xml to cabal data-files.
2018-10-09 11:15:07 -07:00
John MacFarlane
2e9a8d207b
Require skylighting 0.7.4.
...
Closes #4920 .
2018-10-08 22:48:13 -07:00
Yan Pas
27467189ab
Merge branch 'master' into groff_reader
2018-10-07 18:10:01 +03:00
John MacFarlane
2caf198b46
Version to 2.4.
...
We need a major API version bump because of the removed
function from T.P.Writers.Shared.
2018-10-04 09:46:16 -07:00
John MacFarlane
d975917509
Removed Text.Pandoc.Groff.
...
Moved groffEscape function to Text.Pandoc.Writers.Shared.
[API change, since T.P.W.S is exported.]
2018-10-02 18:16:43 -07:00
John MacFarlane
b5a18e748d
Version to 2.3.2.
2018-10-01 22:48:54 -07:00
John MacFarlane
799cd5db7a
Moved babelLangToBCP, polyglossiaLangToBCP to new module...
...
Text.Pandoc.Readers.LaTeX.Lang (unexported).
2018-10-01 21:27:20 -07:00
Albert Krewinkel
9abdbb2783
Lua filters: report traceback when an error occurs
...
A proper Lua traceback is added if either loading of a file or execution
of a filter function fails. This should be of help to authors of Lua
filters who need to debug their code.
2018-10-01 16:32:11 +02:00
John MacFarlane
36f1846cc3
Implement --ascii
(writerPreferAscii
) in writers, not App.
...
Now the `write*` functions for Docbook, HTML, ICML, JATS,
Man, Ms, OPML are sensitive to `writerPreferAscii`. Previously
the to-ascii translation was done in Text.Pandoc.App, and
thus not available to those using the writer functions
directly.
In addition, the LaTeX writer is now sensitive to
`writerPreferAscii` and to `--ascii`. 100% ASCII
output can't be guaranteed, but the writer will use
commands like `\"{a}` and `\l` whenever possible,
to avoid emiting a non-ASCII character.
A new unexported module, Text.Pandoc.Groff, has been
added to store functions used in the different groff-based
writers.
2018-09-30 22:32:00 -07:00
John MacFarlane
59a770e6e9
pandoc.cabal: make base lower bound 4.8.
...
We no longer support ghc 7.8, but this wasn't reflected in the
base versions.
2018-09-30 21:07:48 -07:00
John MacFarlane
aebe5fe99e
LaTeX reader: simplified accent code using unicode-transforms.
...
New dependency on unicode-transforms package for normalization.
2018-09-30 10:25:17 -07:00
John MacFarlane
9dac993835
Added Text.Pandoc.Readers.LaTeX.Parsing (unexported).
...
This collects some of the general-purpose code from the LaTeX
reader, with the aim of making the module smaller. (We've been
having out-of-memory issues compiling this module on CI.)
2018-09-28 10:33:32 -07:00
John MacFarlane
c07b9aebc2
Version to 2.3.1.
2018-09-27 23:09:06 -07:00
Albert Krewinkel
56fe5b559e
Use hslua v1.0.0
2018-09-24 20:11:27 +02:00
mb21
5347e9454f
add test for --metadata-file
2018-09-15 17:06:10 +02:00
John MacFarlane
e44815a9ee
Bump version to 2.3, because of breaking API change to Macro.
2018-08-14 11:54:04 -07:00
John MacFarlane
6728049225
Bump to 2.2.3.2, update man page, changelog.
2018-08-07 09:30:34 -07:00
John MacFarlane
030e8969c7
Bump to 2.2.3.1, update man page and changelog.
2018-08-06 21:37:15 -07:00
John MacFarlane
d8a614d7bb
Bump to 2.2.3, update changelog and man page.
2018-08-05 12:40:56 -07:00
John MacFarlane
a007cd7ad6
Bump version to 2.2.2.1.
2018-07-18 19:23:22 -07:00
John MacFarlane
ebd79b6477
Minor cabal file changes.
...
Requested by 'stack upload.'
Different format for minimum cabal version.
Use of autogen-modules.
2018-07-15 21:43:54 -07:00
John MacFarlane
f44be8c08f
Bump to 2.2.2 and update changelog.
2018-07-15 13:44:43 -07:00
John MacFarlane
d6cbc7ba37
Travis: Use system ghc. And use ghc-8.4.3 instead of 8.4.2.
2018-07-13 10:28:29 -07:00
John MacFarlane
d67a88eb12
Bump upper bound for JuicyPixels.
2018-07-13 08:10:25 -07:00
John MacFarlane
8cea6125fb
Exclude foundaiton 0.0.21 for ghc 7.10.
2018-07-12 21:59:25 -07:00