Commit graph

15654 commits

Author SHA1 Message Date
John MacFarlane
704a10a29e Minor trypandoc landing page improvements. 2022-08-17 12:44:19 -07:00
John MacFarlane
e70c6c40c1 Add manual section on pandoc-server. 2022-08-17 12:38:11 -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
90d52b7129 Redo FromJSON for Opt so that optional values can be omitted.
It would have been cleaner to make all of these values Maybes,
so the JSON could be derived automatically. But this method preserves
the existing API.
2022-08-17 12:28:14 -07:00
Albert Krewinkel
64bed947ab
Server: add missing import 2022-08-17 17:27:35 +02:00
Albert Krewinkel
f294acff38
Org reader: treat "abstract" block as metadata
A block of type "abstract" is assumed to define the document's abstract.
It is transferred from the main text to the metadata.

Closes: #8204
2022-08-17 16:49:37 +02:00
Albert Krewinkel
90d8205e17
Org template: add abstract from metadata as block of type "abstract"
See #8204.
2022-08-17 16:40:54 +02:00
Albert Krewinkel
81e31ee637
LaTeX writer: add label to tables that have an identifier
Tables with an identifier are marked with a `\label`. A caption is
always included in this case, even if the caption is empty.

Closes: #8219
2022-08-17 12:39:07 +02:00
John MacFarlane
c5f8a38f38 Finished pandoc-server documentation. 2022-08-16 16:11:04 -07:00
John MacFarlane
9a9fd0720a Improve documentation for pandoc-server. 2022-08-16 15:38:44 -07:00
John MacFarlane
9b03a01af4 Update RELEASE-CHECKLIST. 2022-08-16 12:48:15 -07:00
John MacFarlane
cd90bffa8c More make_artifacts fixes. 2022-08-16 10:55:36 -07:00
John MacFarlane
473a9b15be LaTeX writer: use \textquotesingle for straight quotes in text. 2022-08-16 09:52:16 -07:00
John MacFarlane
3202a288ac Update INSTALL.md installation from source instructions. 2022-08-16 09:31:10 -07:00
John MacFarlane
97288cea56 Make sure we test building the server. 2022-08-16 09:14:10 -07:00
John MacFarlane
46eecf72c3 Fix rc action for pandoc-server. 2022-08-16 09:12:55 -07:00
John MacFarlane
9bf6c4918e make_artifacts.sh: use --installdir not --bindir. 2022-08-15 23:18:10 -07:00
John MacFarlane
f46e70d4b0 Small improvements to pandoc-server.md. 2022-08-15 23:16:50 -07:00
John MacFarlane
e7fa9c4c23 make debpkg: get rid of docker.log.
Let things come out on the CI output.
2022-08-15 22:47:14 -07:00
John MacFarlane
ce3cd28a6a More make_artifacts fixes. 2022-08-15 18:59:13 -07:00
John MacFarlane
b157abedb7 Fix make_artifacts.sh. 2022-08-15 17:38:28 -07:00
John MacFarlane
2b4b565040 Split linux/control.in into two parts...
for pandoc and pandoc-server.
2022-08-15 16:10:21 -07:00
John MacFarlane
455d11ec18 pandoc.cabal: small update to description. 2022-08-15 16:09:07 -07:00
John MacFarlane
386705f818 linux/make_artifacts.sh: fix paths. 2022-08-15 14:37:06 -07:00
John MacFarlane
f094381378 make_artifacts.sh: create doc directory. 2022-08-15 13:07:32 -07:00
John MacFarlane
7c34908493 Improve linux/make_artifacts.
Structure code more cleanly.
Make separate deb, tarball for pandoc-server.
2022-08-15 10:09:32 -07:00
John MacFarlane
88a31332cd Makefile: Add man target. 2022-08-15 09:58:58 -07:00
John MacFarlane
3c2b97df32 server: add --version. 2022-08-15 09:57:08 -07:00
John MacFarlane
3f2b44b694 Beginning of man page for pandoc-server. 2022-08-15 09:51:17 -07:00
John MacFarlane
87daaa37a9 Server: allow setting Accept:'application/octet-stream'...
to receive raw bytes instead of base64 encoded binary output,
e.g. docx.
2022-08-15 09:20:15 -07:00
John MacFarlane
5416c7f82d Server: minor changes. Add Blob type for auto base64 decoding. 2022-08-15 09:00:25 -07:00
John MacFarlane
9d12fcb0c7 Server: TODO comments. 2022-08-14 23:40:14 -07:00
John MacFarlane
5ae98d4e08 Server: add more options.
Still need to document these and to support some cli options
that are handled as transforms.
2022-08-14 22:55:50 -07:00
John MacFarlane
4f8ee2212a T.P.Highlighting: Export lookupHighlightingStyle.
[API change]
Previously this lived in an unexported module
T.P.App.CommandLineOptions, under the name `lookupHighlightStyle`.
2022-08-14 22:50:57 -07:00
John MacFarlane
5d9b36ae53 Server: support more writer options. 2022-08-14 21:50:00 -07:00
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