Commit Graph
26 Commits
Author SHA1 Message Date
John MacFarlane 705e3e6aaf pandoc-server: bump to 0.1.0.4. 2023-12-11 22:10:38 -08:00
John MacFarlane e7348b4f76 pandoc-server: Switch from base64 to base64-bytestring.
See #9233.
2023-12-06 09:11:28 -08:00
John MacFarlane 83b560cd6e pandoc-server: allow text 2.1. 2023-08-31 09:28:26 -07:00
John MacFarlane c648cc778b Bump to pandoc-server 0.1.0.3 2023-08-31 09:26:38 -07:00
John MacFarlane 6d43490b3a Allow skylighting 0.14 (and require it in pandoc core). 2023-08-26 23:15:41 -07:00
John MacFarlane c473e53266 Bump pandoc-server version to 0.1.0.2. 2023-08-06 19:09:01 -07:00
John MacFarlane 14b5298052 Bump dates, update dependencies. 2023-08-06 11:44:41 -07:00
John MacFarlane eb1050428d Bump pandoc-server to 0.1.0.1. 2023-06-26 10:06:31 -07:00
John MacFarlane 9bb5c3beb8 Bump upper bound on servant-server.
This is needed for compilation with ghc 9.6.
2023-06-26 09:57:14 -07:00
John MacFarlane aa747f194f Require pandoc-types 1.23, update dependencies.
This fails to build because pandoc-lua-marshal still needs updating.
2023-01-13 10:42:07 -08:00
Albert Krewinkel 28fa37e554 CI: test with GHC 9.2.5 and 9.4.4 2023-01-12 22:21:39 +01:00
John MacFarlane d7960212c0 Replace --epub-chapter-level with --split-level.
Rationale: we need this splitting level now not just in
EPUB but in chunked HTML.

`--epub-chapter-level` will still function as a deprecated
synonynm. `epub-chapter-level` will also continue to work in
defaults files, ande `epub_chapter_level` will still work for
Lua marshalling.

[API changes]

Text.Pandoc.App.Opt: remove `optEpubChapterLevel`, add
`optSplitLevel`.

Text.Pandoc.Options: remove `writerEpubChapterLevel`, add
`writerSplitLevel`.
2023-01-12 09:04:29 -08:00
John MacFarlane f038897187 Use doctemplates 0.11.
This avoids a transitive dependency on HsYAML, which we no longer
use in pandoc.
2022-11-21 10:44:59 -08:00
John MacFarlane 7ef00d7226 pandoc-server: add ContentType to CORS policy.
See #8427.
2022-11-09 17:49:40 -08:00
John MacFarlane e2899fd52a Add simple CORS support to pandoc-server.
Closes #8427.
2022-11-08 12:45:15 -08:00
John MacFarlane 1195f5bb3b Minor code cleanups. 2022-10-15 11:43:56 -07:00
Albert Krewinkel 5589b1f8f9 [API Change] Change argument type of getReader, getWriter.
The functions now take a `FlavoredFormat` instead of a text argument.
2022-10-08 16:05:48 -07:00
Albert Krewinkel a4218b9719 [API Change] Add new module "Text.Pandoc.Format"
The module provides functions and types for format spec parsing and
processing.

The function `parseFormatSpec` was moved from Text.Pandoc.Extensions to
the new module and renamed to `parseFlavoredFormat`. It now operates in
a PandocMonad and is based on the updated types.
2022-10-08 16:05:48 -07:00
Albert Krewinkel ddaadc88bc [API Change] Rename pandocVersion to pandocVersionText...
and add a new `pandocVersion` value with type `Version`. This is
consistent with the type used for `pandocTypesVersion` and allows to use
the value where a Version type is required.
2022-09-30 08:33:40 -07:00
John MacFarlane 931ccd0376 Remove deprecated option --strip-empty-paragraphs. 2022-09-29 10:37:46 -07:00
John MacFarlane 9169eee7e1 Bump pandoc version to 3.0.
In light of the package splitting changes.
2022-09-29 08:18:02 -07:00
John MacFarlane fd1b3f2b6f Bump version to 2.20, depend on >= 2.20 in pandoc-cli, pandoc-server. 2022-09-28 08:50:11 -07:00
John MacFarlane fde83cdcab T.P.Server: remove parseServerOpts.
[API change]
We only use `parseServerOptsFromArgs`.
2022-09-27 22:10:04 -07:00
John MacFarlane d2b300e96d pandoc-server: minor code simplification. 2022-09-27 08:46:29 -07:00
Albert Krewinkel 175b791529 pandoc-cli: support "lua" and "serve" as commands
Pandoc behaves like `pandoc-lua` and `pandoc-server` if the first
argument is `lua` and `serve`, respectively.
2022-09-27 08:42:27 -07:00
John MacFarlane bd1d923b86 Split pandoc-server, pandoc-cli into separate packages. (#8309)
This also removes the unnecessary Setup.hs from pandoc.
Cabal does not need this with build-type 'simple'.
2022-09-22 09:47:07 -07:00