Small improvements to pandoc-server.md.

This commit is contained in:
John MacFarlane 2022-08-15 23:16:50 -07:00
parent e7fa9c4c23
commit f46e70d4b0

View file

@ -15,6 +15,21 @@ conversions. It can be used either as a running server
or as a CGI program. To use `pandoc-server` as a CGI
program, rename it as `pandoc-server.cgi`.
All pandoc functions are run in the PandocPure monad, which
ensures that they can do no I/O operations on the server.
This should provide a high degree of security. It does,
however, impose certain limitations:
- Resources cannot be fetched via HTTP.
- PDFs cannot be produced.
- Filters are not supported.
- Any images, include files, or other resources needed for
the document conversion must be explicitly included in
the request, via the `files` field (see below under API).
# OPTIONS
`--port NUM`
@ -67,6 +82,7 @@ values.
specified on the pandoc command line.
``` TODO
wrapText :: Maybe WrapOption
columns :: Maybe Int