Commit Graph
16661 Commits
Author SHA1 Message Date
John MacFarlane 484fcaffd8 Depend on dev version of pandoc-types.
(For aeson version bound.)
2023-06-28 08:37:46 -07:00
John MacFarlane 6decf7c037 Allow aeson 2.2. 2023-06-28 08:30:39 -07:00
John MacFarlane 561510166f Support --id-prefix for markdown output.
Closes #8878.
2023-06-27 18:06:44 -07:00
John MacFarlane 3981f2515d Added some more dependencies to shell.nix. 2023-06-27 16:00:26 -07:00
John MacFarlane d472d43e43 CI for linux-nix: use -Wall. 2023-06-27 14:49:21 -07:00
John MacFarlane 186060dc16 Removed unused import. 2023-06-27 14:47:09 -07:00
John MacFarlane 1d79953429 PandocMonad: Use toTextM in readFileFromDirs. 2023-06-27 11:52:33 -07:00
John MacFarlane da717de334 Fix toTextM for Windows.
We forgot to filter out CRs as we do in toText.
2023-06-27 11:41:12 -07:00
John MacFarlane e0bea476bf Use toTextM instead of toText when possible.
(That is, whenever we have the filename and are in a
PandocMonad instance.)

This will lead to more informative error messages for UTF8
encoding, indicating the file path and byte offset where the
error occurs. Closes #8884.
2023-06-27 11:15:31 -07:00
John MacFarlane 67970d244e Text.Pandoc.Class: add toTextM.
This is like `Text.Pandoc.UTF8.toText`, except:

- it takes a file path as first argument, in addition to
  bytestring contents
- it raises an informative error with source position if
  the contents are not UTF8-encoded

[API change]

This replaces `utf8ToText` in `Text.Pandoc.App.Input`.

See #8884.
2023-06-27 11:12:58 -07:00
John MacFarlane 6eaa631185 MANUAL: Add clarification on --section-divs. Closes #8882. 2023-06-27 10:19:50 -07:00
John MacFarlane 0c9b20cee1 Remove invalid term "Subject" from translations for tr.
Closes #8921.
2023-06-27 09:39:41 -07:00
John MacFarlane 139ba79305 Add cabal caching to linux-nix-cabal CI workflow. 2023-06-27 09:36:28 -07:00
John MacFarlane f074b03b89 Revert "Try adding magic nix cache to nix CI build."
This reverts commit 295c6b0485.

This was actually slower than what we had before (14m on second
run, as compared to 12m).
2023-06-26 16:46:47 -07:00
John MacFarlane 43b7162a1e Update copyright date in pandoc.cabal. 2023-06-26 16:16:55 -07:00
John MacFarlane 0e64c7c8bf Add some dependencies to shell.nix. 2023-06-26 15:39:37 -07:00
John MacFarlane 295c6b0485 Try adding magic nix cache to nix CI build.
See https://determinate.systems/posts/magic-nix-cache
2023-06-26 15:30:38 -07:00
John MacFarlane eb1050428d Bump pandoc-server to 0.1.0.1. pandoc-server-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 c80ebc4621 Require commonmark >= 0.2.3 and fix import warning. 2023-06-26 09:15:11 -07:00
John MacFarlane 7f30075ab7 Add CI testing on ghc 9.6 2023-06-26 09:15:06 -07:00
Olivier Benz 7cca27b67d Use ghc-musl 9.6.2 docker image (#8701) 2023-06-26 09:12:31 -07:00
John MacFarlane 14f86c3481 Bump pandoc-lua-engine to 0.2.1. pandoc-lua-engine-0.2.1 2023-06-24 14:27:31 -07:00
John MacFarlane 726822fc32 macos Makefile: change to using notarytool. 3.1.4 2023-06-24 14:22:46 -07:00
John MacFarlane bcb346f7fb Update AUTHORS.md 2023-06-24 11:48:15 -07:00
John MacFarlane 9ccdd8e5ae Update changelog. 2023-06-24 11:46:18 -07:00
John MacFarlane da99cd4e21 Remove unneeded stack entries 2023-06-24 11:26:49 -07:00
John MacFarlane 0359cc8203 Update man page. 2023-06-24 11:25:53 -07:00
John MacFarlane bfaa3ab13a Bump to 3.1.4 2023-06-24 11:25:49 -07:00
John MacFarlane 44d9b492f9 Fix spacing issues. 2023-06-24 11:25:38 -07:00
John MacFarlane 3f06c7f0dd Make --number-sections work with JATS writer. 2023-06-24 11:22:11 -07:00
John MacFarlane 52d352a5ae Update #8764 command test for latest change to HTML table parser (#8634). 2023-06-24 11:21:51 -07:00
Ruqi f257c97170 Update TableBody RowHeadColumns caculation: change from max to min (#8634)
This change sets RowHeadColumns to the minimum value of each row, which
gives better results in cases where rows have different numbers of leading th tags.
2023-06-24 09:18:03 -07:00
John MacFarlane 5246f02f0b Improve tests for fillMediaBag/extractMedia.
Ensure that the current directory is not changed up if a test fails,
and fix messages for the assertion failures.
2023-06-23 10:54:59 -07:00
John MacFarlane fe62da61df Add tests for fillMediaBag/extractMedia. 2023-06-23 10:36:33 -07:00
John MacFarlane df4f13b262 More fixes to 5e381e3.
These changes recognize that parseURI does not unescape the path.

Another change is that the canonical form of the path used as the
MediaBag key retains percent-encoding, if present; we only unescape
the string when writing to a file.

See #8918.

Some tests are needed before the issue can be closed.
2023-06-23 09:27:04 -07:00
John MacFarlane 54561e9a66 Fix bug in 5e381e3878
In the new code a comma mysteriously turned into a period.
This would have prevented proper separation of the mime type and
content in data uris. Thanks to @hseg for catching this.
2023-06-23 09:00:56 -07:00
ech0 7b8b8f802d Retain image query parameters in dokuwiki reader (#8887)
While converting dokuwiki syntax to gfm, the query parameters of images were stripped from the output.
In general this makes sense, as the parameters' semantics are specific to dokuwiki. But it makes it impossible
to access the query in a filter. This change retains the query parameters of image urls in the dokuwiki reader,
by adding it as an extra query attribute.
2023-06-22 11:00:47 -07:00
Stephen Altamirano 83b69ead81 Textile reader: Add support for link references (#8706)
Textile supports what it calls "link alias", which are analogous to
Markdown's reference-style links.
2023-06-22 10:53:15 -07:00
Norwid Behrnd ebcb61fb07 mention alternatives to LaTeX to generate pdf
Pandoc's default engine to generate pdf is LaTeX.  In reply
to an issue report,[1] and with the documentation in mind,
INSTALL.md now hints one can equally use other tools for this
task, too.

[1] https://github.com/jgm/pandoc/issues/8769
2023-06-22 10:50:44 -07:00
Per Christian Gaustad fcf19186d4 Add Nynorsk (New Norwegian) translations 2023-06-22 10:49:54 -07:00
Albert Krewinkel 5beb7a1b64 Lua: report warnings from Lua scripts
Lua's warning system is plugged into pandoc's reporting architecture.
Warnings that are raised with the Lua `warn` function are now reported
together with other messages.
2023-06-22 10:48:33 -07:00
Albert Krewinkel b07552c23f Logging: add new log message type ScriptingWarning [API change] 2023-06-22 10:48:33 -07:00
Albert Krewinkel cce347eaf5 LaTeX reader: support alt text on images. (#8745)
Closes: #8743
2023-06-22 10:46:56 -07:00
Vladimir Alexiev 52297a2bd3 add to "Academic publishing workflows" (#8742)
resolves #8696
2023-06-22 10:45:49 -07:00
John MacFarlane 713e9a61ac Add http-client-tls to stack.yaml 2023-06-22 10:33:59 -07:00
John MacFarlane 0347a250cb Add upper bound for crypton-connection 2023-06-22 10:33:49 -07:00
Felix Yan 3fb69c634c Use crypton-connection instead of connection (#8896)
Follows the change introduced in tls 1.7.0. Fixes building.
Remove tls < 1.7 from cabal.project
2023-06-22 09:56:09 -07:00
John MacFarlane 25c797e9d4 Add hslua-repl to stack.yaml. 2023-06-21 11:12:50 -07:00
John MacFarlane 0853b5887c Use lts-21.0 for stack.yaml. 2023-06-21 09:44:49 -07:00