Commit Graph
16639 Commits
Author SHA1 Message Date
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
John MacFarlane 5e381e3878 Fix a security vulnerability in MediaBag and T.P.Class.IO.writeMedia.
This vulnerability, discovered by Entroy C, allows users to write
arbitrary files to any location by feeding pandoc a specially crafted
URL in an image element.  The vulnerability is serious for anyone
using pandoc to process untrusted input.  The vulnerability does
not affect pandoc when run with the `--sandbox` flag.
2023-06-20 13:50:13 -07:00
John MacFarlane 40dacad525 ChunkedHTML writer: Make math work in top-level page.
Closes #8915.
2023-06-20 11:59:25 -07:00
John MacFarlane 19ea12dc64 Bump versions for skylighting-core, skylighting. 2023-06-20 11:05:13 -07:00
harabat 0134b63323 Update Linux install links
- Updated Arch link (previous one was 404'ing)
- Standardised some other links that weren't pointing to the package or the distro-specific search results
2023-06-19 15:17:42 -04:00
John MacFarlane 83fcd0031a Add Extracting log message for --extract-media.
This message will also be triggered when media is being
extracted to a temporary location, e.g. in PDF production.
2023-06-19 11:18:30 -07:00
John MacFarlane 725ec09a10 Make implicit_figures work again in commonmark reader.
Support for this (introduced in #6350) disappeared when we made an
architectural change.
2023-06-19 11:18:30 -07:00
Adelar da Silva Queiróz 3a20ea3aca fix: add highlight for F# language
Fix for this SO question: https://tex.stackexchange.com/questions/563778/how-to-get-f-syntax-highlighting
2023-06-19 12:28:40 -04:00
John MacFarlane 8194199c34 Allow epub-title-page to be used in defaults files.
This wasn't implemented before due to an oversight. Closes #8908.
2023-06-19 09:27:19 -07:00
dependabot[bot] a27eaa22ca Bump cachix/install-nix-action from 21 to 22
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 21 to 22.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v21...v22)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-19 11:53:48 -04:00
John MacFarlane 1c3742149a Update tests for #8903 2023-06-17 09:28:35 -04:00
John MacFarlane 913bd8c777 LaTeX writer: Fix escaping of & in \href and \url.
Closes #8903.
2023-06-16 18:52:59 -04:00
John MacFarlane b1a78b0dda Bump pandoc-lua-engine to 0.2.0.1. pandoc-lua-engine-0.2.0.1 2023-06-09 10:02:31 -07:00
Felix Yan ede51f6a5a Include lua/module/sample.svg in hackage tarball
Should fix the following error when running tests from Hackage tarball:

```
    pandoc.mediabag:                            [WARNING] Could not fetch resource lua/module/sample.svg: replacing image with description
FAIL
      fetch // populates media bag:
      File lua/module/sample.svg not found in resource path
DEBUG:root:haskell-pandoc-lua-engine:
      fill // populates media bag:
      lua/module/pandoc-mediabag.lua:70:
      expected values to be equal, got 'nil' and 'image/svg+xml'
```
2023-06-09 09:56:18 -07:00
Noah Malmed 76952d0b06 Add footer and multiple body parsing to JATS table reader (#8795)
Closes #8765.
2023-06-08 09:58:28 -07:00
John MacFarlane 7b4eb40737 Parse references title from ref-list in JATS reader.
Closes #8365.
2023-06-07 13:36:58 -07:00
John MacFarlane 4f440583a8 JATS writer: include title in ref-list.
Previously the reference title ended up in a separate
section at the back of the body instead of in the ref-list
in the back matter.

Closes #8364.
2023-06-07 13:18:20 -07:00
John MacFarlane 0166aecaab Allow abstract-title to be specified in docx metadata.
Closes #8794.
2023-06-07 09:08:53 -07:00
John MacFarlane d04838b678 Fix localization of "Abstract" title in docx writer.
See #8702, which was only partially implemented before.
2023-06-07 08:58:21 -07:00
John MacFarlane c982576133 Update ATUHORS.md. 3.1.3 2023-06-06 18:02:46 -07:00
John MacFarlane 8bdb430c74 Fix whitespace. 2023-06-06 17:51:17 -07:00
John MacFarlane adbf115b2d Regenerated README.md 2023-06-06 17:51:04 -07:00
John MacFarlane 72a85ac6ab Update manual date and man page. 2023-06-06 17:50:17 -07:00