Commit graph

15619 commits

Author SHA1 Message Date
John MacFarlane
257587f55b Server: add citeproc support. 2022-08-14 21:22:24 -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
2f5c75132a Server: support tabStop, indentedCodeClasses 2022-08-13 23:16:47 -07:00
John MacFarlane
6274327398 App: Remove unneeded MonadIO constraints in readSources. 2022-08-13 20:36:44 -07:00
John MacFarlane
62ddc1ae54 PDF: Use some standard PandocMonad functions instead of liftIO. 2022-08-13 18:18:26 -07:00
John MacFarlane
34e00caee5 Factor out convertWithOpts' from convertWithOpts.
This runs in any PandocMonad, MonadIO, MonadMask instance.
2022-08-13 17:10:31 -07:00
John MacFarlane
4dfc30ca10 Server: add Default instance for Params. 2022-08-13 16:47:16 -07:00
John MacFarlane
55c524e83c Support --strip-comments in commonmark/gfm.
This change makes the commonmark reader sensitive to
`readerStripComments`.

Closes #8222.
2022-08-13 12:58:40 -07:00
Albert Krewinkel
5a99747063 Lua: add function pandoc.utils.citeproc
The function runs the *citeproc* processor on a Pandoc document.
Exposing this functionality to Lua allows to make citation processing
part of a filter or writer, simplifies the creation of multiple
bibliographies, and enables the use of varying citation styles in
different parts of a document.
2022-08-13 12:30:13 -07:00
Albert Krewinkel
eb18267407
LaTeX template: fix behavior of colorlinks variable
Fixes a regression that required the `boxlinks` variable to be set in
addition to the usual link coloring variables. Otherwise links were
never colored in LaTeX PDF output.

Fixes: #8226
2022-08-12 00:11:10 +02:00
John MacFarlane
7a35e7ee68 Server - set standalone by default to true if binary output. 2022-08-09 15:37:47 -07:00
John MacFarlane
5db3f96400 server /babelmark - make text a required param. 2022-08-09 10:56:51 -07:00
John MacFarlane
59ac2933c9 server - have /babelmark accept form params rather than JSON. 2022-08-09 10:24:48 -07:00
John MacFarlane
30074c12e5 Server: Re-add /batch endpoint. We need it. 2022-08-08 15:17:08 -07:00
John MacFarlane
007483b2c3 server: change 'input' param back to 'text'. 2022-08-08 13:36:01 -07:00
John MacFarlane
1f3f9d6dda Switch CI to ubuntu-latest. 2022-08-08 13:32:28 -07:00
John MacFarlane
0aeb7aec1a server: make babelmark endpoint accept GET. 2022-08-08 10:12:33 -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
297e48661d server: Accept POST instead of GET at babelmark endpoint. 2022-08-08 08:35:32 -07:00
John MacFarlane
4e003e9cdb trypandoc Makefile revisions. 2022-08-07 23:15:24 -07:00
John MacFarlane
3a5168af90 Fix pandoc-server on linux make_artifacts.sh. 2022-08-07 23:02:35 -07:00
John MacFarlane
e4a7ed9e36 stack.yaml - fix server flag. 2022-08-07 23:01:28 -07:00
John MacFarlane
2b30d27669 Rename pandoc-cgi -> pandoc-server. 2022-08-07 21:26:17 -07:00
John MacFarlane
4359e60b93 pandoc-cgi: change babelmark endpoint to GET, as expected. 2022-08-07 19:37:11 -07:00
John MacFarlane
6b9da0cc96 pandoc-cgi:
Remove /batch endpoint; instead, behave differently if
passed an array of JSON objects.

Rename multidingus endpoint to babelmark.
2022-08-07 19:31:40 -07:00
Albert Krewinkel
18484cbf47
LaTeX writer: fix widths of multicolumn cells
Fixes: #8218
2022-08-07 22:10:15 +02:00
John MacFarlane
bf5edd9f02 pandoc-cgi - add multidingus endpoint.
This is what babelmark expects.
2022-08-07 12:51:36 -07:00
John MacFarlane
87391feb02 Improve trypandoc index.html.
Use vanilla JS instead of jquery.
Use new pandoc-cgi interface.
2022-08-07 12:20:00 -07:00
John MacFarlane
83d81b34b6 Add version endpoint to pandoc-cgi 2022-08-07 09:48:56 -07:00
John MacFarlane
48b4e46603 rc build: copy pandoc-cgi to linux release candidate artifacts. 2022-08-06 16:58:58 -07:00
John MacFarlane
ccc195a983 Remove trypandoc flag from stack.yaml 2022-08-06 16:56:13 -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
Albert Krewinkel
fc3b9e763f
Use dev version of gridtables.
Closes: #8216
2022-08-05 13:48:30 +02:00
John MacFarlane
0f80284c3d Convert tool/extract-changes.hs to a Lua filter. 2022-08-03 23:59:39 -07:00
John MacFarlane
6ffc489395 stack.yaml - add skylihting-format-ansi to extra-deps. 2022-08-03 21:45:09 -07:00
John MacFarlane
dc61dd471a Change release date on changelog 2022-08-03 21:29:45 -07:00
John MacFarlane
2cb794fe4f Update AUTHORS.md 2022-08-03 21:27:51 -07:00
John MacFarlane
54f07d259d stack.yaml - update extra-deps. 2022-08-03 21:17:17 -07:00
John MacFarlane
2972211568 Allow latest skylighting. 2022-08-03 21:17:09 -07:00
John MacFarlane
c777fa347a Regenerate README.md 2022-08-03 21:16:57 -07:00
John MacFarlane
a14e7b0c6d Update date on manual. 2022-08-03 21:16:43 -07:00
John MacFarlane
c4840e073a Added some tests to extra-source-files in cabal. 2022-08-03 20:54:07 -07:00
John MacFarlane
3eb52a7b8e Update changelog. 2022-08-03 20:52:21 -07:00
John MacFarlane
2bb3f33296 FB2 writer: fix handling of non-section Divs.
This allows the writer to recurse into those Divs and
find new sections inside them. See #8123.
2022-08-03 16:09:03 -07:00
John MacFarlane
94ba44cec9 Bump to 2.19. 2022-08-03 12:20:56 -07:00
John MacFarlane
ccf82d0172 Provisional 2.19 changelog. 2022-08-03 12:20:40 -07:00
John MacFarlane
c9027fb834 Deprecate deLink. 2022-08-03 12:17:09 -07:00
John MacFarlane
47796aa89e Use latest released versions of citeproc, texmath. 2022-08-03 10:44:12 -07:00