John MacFarlane
4b73c8f529
Allow latest unix package.
2022-08-18 22:52:00 -07:00
John MacFarlane
7d93aefbbd
Bump to 2.19.1, update changelog.
2022-08-18 22:45:04 -07:00
John MacFarlane
d3aa51b1ee
pandoc-server.cgi: allow setting timeout
...
via PANDOC_SERVER_TIMEOUT environment variable.
2022-08-18 22:33:19 -07:00
Albert Krewinkel
e6d4501feb
Use latest gridtables-0.0.3.0
...
This restores undocumented behavior which allowed to grid tables to have
separator lines that have fewer characters than the cell they delimit.
2022-08-18 23:30:36 +02:00
John MacFarlane
60f9c8447e
Remove trypandoc Makefile.
2022-08-18 13:16:54 -07:00
John MacFarlane
70aa88a595
Allow haddock-library-1.11.0.
2022-08-18 10:33:42 -07:00
John MacFarlane
8ddc2fc79a
Integrate server into main pandoc.
...
- Remove server flag.
- Remove pandoc-server executable.
- Add Text.Pandoc.Server as exposed module. [API change]
- Re-use Opt (and our existing FromJSON instance) for Params.
- Document.
2022-08-17 12:28:14 -07:00
John MacFarlane
455d11ec18
pandoc.cabal: small update to description.
2022-08-15 16:09:07 -07:00
John MacFarlane
5d9b36ae53
Server: support more writer options.
2022-08-14 21:50:00 -07:00
John MacFarlane
3966b016d1
Server: add files.
...
This allows the user to upload auxiliary files to be used in
the conversion.
2022-08-14 17:14:59 -07:00
John MacFarlane
4e04947470
Server: add abbreviations, defaultImageExtension, ...
...
... trackChanges, stripComments.
2022-08-14 16:57:33 -07:00
John MacFarlane
6625e9655e
Use base64 instead of base64-bytestring.
...
It is supposed to be faster and more standards-compliant.
2022-08-14 16:33:37 -07:00
John MacFarlane
4dfc30ca10
Server: add Default instance for Params.
2022-08-13 16:47:16 -07:00
John MacFarlane
5335410ace
pandoc-server: allow binary writers/readers.
...
The expectation (which needs to be documented, along
with everything else about this server) is that the binary
content be base 64 encoded.
2022-08-08 09:53:19 -07:00
John MacFarlane
2b30d27669
Rename pandoc-cgi -> pandoc-server.
2022-08-07 21:26:17 -07:00
John MacFarlane
5635ef9c57
Replace old trypandoc code with new pandoc-cgi.
...
This is based on servant. It is less hacky and more extensible.
2022-08-06 14:42:38 -07:00
John MacFarlane
2972211568
Allow latest skylighting.
2022-08-03 21:17:09 -07:00
John MacFarlane
c4840e073a
Added some tests to extra-source-files in cabal.
2022-08-03 20:54:07 -07:00
John MacFarlane
94ba44cec9
Bump to 2.19.
2022-08-03 12:20:56 -07:00
John MacFarlane
47796aa89e
Use latest released versions of citeproc, texmath.
2022-08-03 10:44:12 -07:00
Albert Krewinkel
c015c35a8a
Support rowspans and colspans in grid tables ( #8202 )
...
* Add tests for zero-width and fullwidth chars in grid tables
* T.P.Parsing: simplify `gridTableWith'`, `gridTableWith` [API Change]
The functions `gridTableWith` and `gridTableWith'` no longer takes a
boolean argument that toggles whether a table head should be parsed:
both, tables with heads and without heads, are always accepted now.
* Support colspans, rowspans, and multirow headers in grid tables.
Grid tables in Markdown, reStructuredText, and Org can now contain cells
spanning over multiple columns and/or multiple rows; table headers
containing multiple rows are supported as well.
Note: the markdown writer does not yet support these more complex grid
table features.
2022-07-30 08:56:44 -07:00
Albert Krewinkel
c724e9cb7c
Require pandoc-lua-marshal 0.1.7
...
Adds a `clone` methods to Pandoc objects and allows to pass Blocks in
instead of full Caption elements.
2022-07-16 15:29:18 +02:00
John MacFarlane
3571352a0a
Use citeproc 0.8.
2022-07-01 12:12:58 +02:00
Albert Krewinkel
6d351df1ed
Lua: ensure that tables marshaled via JSON arrays behave like Lists.
...
This allows to invoke methods like `map` and `includes` on lists like
`PANDOC_WRITER_OPTIONS.extensions`.
2022-06-23 22:53:11 +02:00
Albert Krewinkel
0f573a5368
Require hslua-2.2.1, unless lua53 flag is set.
...
This fixes a problem where the encoding used for Lua filenames would
sometimes mismatch the encoding used by the OS. The file wasn't found
when that happened, for example with an umlaut-containing filename on
Windows. The change ensures that all characters of available in the
default locale can be used in the filename.
2022-06-19 14:30:27 +02:00
Albert Krewinkel
a4a0a47a91
Allow aeson 2.1 ( #8130 )
2022-06-16 11:34:52 -06:00
Albert Krewinkel
0bd8a0e3d1
CI: test with latest GHC minor versions
2022-06-16 12:14:55 +02:00
Albert Krewinkel
42cbc71bbc
Allow placing custom readers and writers in data subdir ( #8112 )
...
* PandocMonad: add new function `findFileWithDataFallback` [API Change]
* Custom readers: allow files to be placed in "readers" data dir
* Custom writers: allow files to be placed in "writers" data dir
2022-06-10 08:37:12 -07:00
Albert Krewinkel
b3cee8bdb0
Lua: Simplify module loading code.
...
Modules are now loaded directly; the special pandoc Lua package searcher
is no longer necessary and has been removed.
2022-06-08 22:45:28 +02:00
Albert Krewinkel
15f91964b3
Require pandoc-lua-marshal 0.1.6
...
Fixes : #8101
2022-06-03 10:29:01 +02:00
John MacFarlane
9aff86143e
Require skylighting 0.12.3.1 and update tests.
2022-05-31 19:49:27 -07:00
John MacFarlane
dc03399cc3
Add 'nightly' flag.
...
This causes a `-nightly-COMPILEDATE` suffix to be added the
the output of `--version`.
This is used in the nightly CI builds.
Closes #8016 .
2022-04-12 18:03:26 -07:00
John MacFarlane
f460936528
Revert "Add 'nightly' flag and build with this for nightlies."
...
This reverts commit f81f5a2090
.
2022-04-12 10:06:02 -07:00
John MacFarlane
f81f5a2090
Add 'nightly' flag and build with this for nightlies.
...
This flag causes a suffix '-nightly-YYYY-MM-DD' to be added
to the version for nightlies.
Closes #8016 .
2022-04-11 17:17:11 -07:00
John MacFarlane
0ddddf2f37
Revert "Add info about git commit and date to --version
info."
...
This reverts commit 9d7c01e4a4
.
2022-04-11 13:14:38 -07:00
John MacFarlane
c13db98dce
Revert "Relax version bound on githash so the version in stackage works."
...
This reverts commit 69ad7cbcbd
.
2022-04-11 13:14:36 -07:00
John MacFarlane
69ad7cbcbd
Relax version bound on githash so the version in stackage works.
2022-04-11 11:35:54 -07:00
John MacFarlane
9d7c01e4a4
Add info about git commit and date to --version
info.
...
See #8016 .
2022-04-11 10:40:51 -07:00
John MacFarlane
c47b2a21bd
Bump to 2.18.
2022-04-04 09:42:55 -07:00
John MacFarlane
c18bb2ab58
Use latest doclayout (0.4)
2022-04-03 23:13:48 -07:00
John MacFarlane
705abd0f51
Increase lower bounds for commonmark, texmath.
2022-04-02 16:58:12 -07:00
John MacFarlane
feb5b03976
Use citeproc 0.7.
2022-04-02 13:33:05 -07:00
Albert Krewinkel
e4f4be6c80
Remove redundant dependency on hslua-marshalling.
...
The package is a dependency of hslua; all important modules are
re-exported.
2022-03-29 08:04:49 +02:00
John MacFarlane
f5129666e7
Add lua53 flag.
...
It is false by default. If set to true, compile with hslua 2.1
and Lua 5.3, otherwise hslua 2.2 and Lua 5.4.
2022-03-28 10:06:52 -07:00
John MacFarlane
51f18d52c7
Rename T.P.Parsing.Combinators -> T.P.Parsing.General.
...
Because many of the exported things aren't combinators...
Also remove redundant explot of indentWith from T.P.Parsing.Lists.
2022-03-25 11:14:54 -07:00
John MacFarlane
dff340ed50
CI: Test with ghc 9.2.2.
2022-03-24 09:22:10 -07:00
John MacFarlane
db0a2c3947
Remove unnecessary dependency on hslua-aeson.
2022-03-24 09:20:56 -07:00
Albert Krewinkel
43e549b2fb
Markdown writer: move table-related code into submodule.
2022-03-18 14:15:56 +01:00
Albert Krewinkel
1aeeba9ecb
Shared: define ordNub as alias for nubOrd from containers package ( #7963 )
...
This requires at least containers 0.6.0.1, which ships with the oldest
GHC version currently supported by pandoc (GHC 8.6).
2022-03-13 08:42:30 -07:00
John MacFarlane
d523eca3d3
Use dev version of pandoc-types.
...
This allows toJSONFilter to work with Meta and MetaValue.
2022-03-11 10:23:06 -08:00