71 Commits
Author SHA1 Message Date
John MacFarlane 6f6a736844 Update man pages. 2024-09-09 22:14:43 -07:00
John MacFarlane 766ebd73fe Bump pandoc-cli to 3.4, depend on pandoc 3.4. 2024-09-09 22:13:15 -07:00
John MacFarlane 092af7ff5d Update MANUAL date and man pages. 2024-07-28 14:13:20 -07:00
John MacFarlane 7200b2bbfc Bump pandoc-lua-engine version to 0.3.1, depend on it in pandoc-cli 2024-07-28 13:44:12 -07:00
John MacFarlane ab94daf416 Bump to 3.3, update changelog 2024-07-28 13:41:56 -07:00
Albert Krewinkel 73ce302479 Harmonize maintainer email addresses in module headers. 2024-07-08 13:27:45 +02:00
Albert Krewinkel 22ca9e7a20 pandoc-cli: Include pandoc copyright in Lua version info 2024-06-28 11:10:58 +02:00
Albert Krewinkel 522302a97e pandoc-cli: Refer printing of version info to the Lua interpreter
The Lua interpreter no longer terminates when called with `-v` or
`--version` arguments, thus improving compatibility with the default
`lua` interpreter program.
2024-06-28 10:03:14 +02:00
John MacFarlane d8be1feb32 Update manual date and man pages. 2024-06-24 12:37:25 -07:00
John MacFarlane ea74c90aff Update pandoc-cli to 3.2.1, bump dependency versions 2024-06-24 12:30:15 -07:00
Albert Krewinkel 7db19d8cd4 Update more copyright dates to 2024. 2024-06-08 16:46:42 +02:00
John MacFarlane 13c8e7c9f0 pandoc-cli: constrain pandoc-server version. 2024-05-15 08:24:34 -07:00
John MacFarlane 8188eec85f Updaet manual date and man pages. 2024-05-11 12:32:43 -07:00
John MacFarlane b419770850 Bump pandoc, pandoc-cli to 3.2, update changelog.
Also bump pandoc-lua-engine to 0.2.1.5 and allow pandoc 3.2.
2024-05-11 12:01:16 -07:00
John MacFarlane 03630a2c6e Update copyright dates to 2024. 2024-04-25 18:16:49 -07:00
John MacFarlane 1904fa53fa pandoc-cli: ensure UTF8 when emitting version info. 2024-04-25 17:49:38 -07:00
John MacFarlane 409658d16d Bump to 3.1.13, update changelog and man page 2024-04-06 23:24:24 -07:00
John MacFarlane a32942e428 Update date in manual and regenerate man pages. 2024-03-17 19:30:05 -07:00
John MacFarlane ffa973ba7e Updaet man pages. 2024-03-14 16:55:46 -07:00
John MacFarlane c08365ed5d Bump pandoc-cli version to 3.1.12.3, require pandoc 3.1.12.3. 2024-03-14 16:50:54 -07:00
John MacFarlane 2549d34315 Update man pages. 2024-02-29 20:33:50 -08:00
John MacFarlane 75cb36ade8 Bump to 3.1.12.2 (also pandoc-cli), update changelog, manual date. 2024-02-29 20:33:12 -08:00
John MacFarlane 8d63ed4449 Bump to 3.1.12.1, update changelog and manuals. 2024-02-17 10:05:34 -08:00
John MacFarlane 132508d447 Update man page. 2024-02-14 09:12:30 -08:00
John MacFarlane 32e26b1689 Bump pandoc-cli version to 3.1.12, depend on pandoc 3.1.12. 2024-02-14 09:08:19 -08:00
John MacFarlane 13ff7d2ece Update man pages. 2024-01-05 14:50:43 -08:00
John MacFarlane 89a6fa9b00 Bump pandoc-cli to 3.1.11.1. 2024-01-05 13:41:29 -08:00
John MacFarlane c3038dcd54 Bump to 3.1.11, update changelog.
pandoc-cli version is updated in sync.
man pages regenerated.
2023-12-15 18:56:27 -08:00
John MacFarlane 708bfa5c27 Regenerate man pages with pandoc 3.1.10.
This properly escapes hyphens.
Also, we get proper version numbers in pandoc-server and pandoc-lua.

The Makefile has already been modified to ensure that all three
man pages will be regenerated when there is a new version of pandoc.
2023-12-12 13:33:59 -08:00
John MacFarlane df403fb3ea Update MANUAL.txt date and man page date. 2023-12-11 22:12:53 -08:00
John MacFarlane e9be7ea451 Bump pandoc/pandoc-cli to 3.1.10, update changelog. 2023-12-11 22:10:56 -08:00
John MacFarlane 35d44bb666 Link pandoc-cli version to pandoc version.
Henceforth pandoc-cli's version will be synchronized with pandoc's, and
pandoc-cli will depend on an exact pandoc version.

This will avoid confusion by ensuring that `cabal install pandoc-cli-X.Y.Z`
installs pandoc version X.Y.Z.  It will make things more straightforward
for upstream packagers (see #9232).

Note also that the man pages included in this package are for a specific
pandoc version.

This scheme does not follow the Haskell PVP, but that should cause no
harm, because this package does not expose a library.
2023-12-09 10:56:35 -08:00
John MacFarlane c2c45f1c6a Remove tested-with from pandoc-cli.cabal. 2023-12-09 10:20:34 -08:00
John MacFarlane 55227a2027 Move man pages to pandoc-cli package.
Closes #9245.
2023-12-09 09:55:13 -08:00
John MacFarlane 7a33ebce7f Bump pandoc-cli version to 0.1.1.1. 2023-07-21 08:25:37 -07:00
John MacFarlane bec5429e4f Fix regression on short boolean arguments.
In 3.1.5 boolean arguments were allowed an optional argument
(true|false).  This created a regression for uses of fused
short arguments, e.g. `-somyfile.html`, which was equivalent
to `-s -omyfile.html`, but now raised an error because
pandoc attempted to parse `o` as a boolean `true` or `false`.

This change adds a preprocessing step on the raw arguments
before they are sent to the option parser. In this preprocessing
step, `-somyfile.html` would be split into two arguments,
`-s` and `-omyfile.html`.  The splitting happens when a
short boolean option is followed by another short option.

Closes #8956.
2023-07-19 11:56:58 -07:00
Andreas Scherer 6da429f829 Purge double space. 2023-04-05 07:52:52 -07:00
John MacFarlane f97ab76f81 Bump pandoc-cli to 0.1.1, depend on latest pandoc-lua-engine 2023-03-27 16:55:35 -07:00
Albert Krewinkel f9b6777a92 pandoc-cli: require hslua-cli-1.4.1
This fixes a bug where the program would not enter interactive mode if
`-v`, `-e`, or `-l` was used together with the `-i` command line flag.
2023-03-18 18:26:12 +01:00
Albert Krewinkel a23d14079c pandoc-cli: add a Lua REPL 2023-03-17 09:18:41 -07:00
Albert Krewinkel 0f7653cd10 Switch to hslua-2.3 2023-03-13 13:23:43 +01:00
Albert Krewinkel 28fa37e554 CI: test with GHC 9.2.5 and 9.4.4 2023-01-12 22:21:39 +01:00
Albert Krewinkel b55cd83a60 Update copyright years, it's 2023! 2023-01-10 20:28:27 +01:00
John MacFarlane 848f6b51b2 Text.Pandoc.App: Change parseOptionsFromArgs and parseOptions... (#8406)
They now return `Either OptInfo Opt`.

Add `OptInfo` type.

Add `handleOptInfo` function.  This performs the IO actions for
things like `--version` that were previously done in `parseOptionsFromArgs`.
An argument for a `ScriptingEngine` has been added, to facilitate
printing custom templates and custom extensions for Lua filters.
(However, at this stage nothing is yet done with it.)

[API change]
2022-11-02 19:07:22 -07:00
John MacFarlane 3e48d9701d Re-add TemplateHaskell pragma in pandoc-cli.
This was an hlint false positive.
2022-10-31 09:03:10 -07:00
John MacFarlane 8b3be07ae8 hlint suggestions. 2022-10-30 11:02:00 -07:00
John MacFarlane 135cfed2a3 Print starting server message to stderr instead of stdout. 2022-10-28 09:32:50 -07:00
John MacFarlane 552d3b42ae Issue message when starting up server indicating the port. 2022-10-28 09:30:24 -07:00
John MacFarlane 2e1f424daa Move defaultUserDataDir from T.P.Shared to T.P.Data [API change]. 2022-10-19 10:48:49 -07:00
John MacFarlane fde8635a18 Split Text.Pandoc.Version from Text.Pandoc.Shared.
This new module exports `pandocVersion` and `pandocVersionText`,
which are no longer exported from Text.Pandoc.Shared. [API change]

Also, we now set the `pandoc-version` variable centrally rather
than in the writers.  One effect is the man writer now emits
a comment with the pandoc version (this was intended before,
judging from the template, but it didn't happen because the
vairable wasn't set).
2022-10-19 09:16:13 -07:00