Commit Graph
18539 Commits
Author SHA1 Message Date
Tuong Nguyen Manh 594f109956 asciidoc writer: Add more table features (#11267)
This adds the following table features:

- row span and column span
- footer row
- individual horizontal cell alignment

[API change] T.P.Writers.Shared: Add functions `allRowsEmpty` and
`tableBodiesToRows` from the RST writer for reuse in other writers.

Also fix hlint warning about `unzip` from `NonEmpty`:
The exported polymorphic function will become
monomorphic in the future. Restrict the `NonEmpty`
import to use the Prelude `unzip` function.
2025-11-03 20:30:33 +01:00
John MacFarlane a7778c80f3 Markdown reader: fix performance issue in links with '.
Closes #10880.
2025-11-03 17:09:34 +01:00
John MacFarlane c04c5ad16d Makefile: Use python3 in update-translations. 2025-11-02 15:40:09 +01:00
John MacFarlane 1edd5cde72 LaTeX writer: improve handling of math environments in tex math.
Previously the special handling added for #9711 worked only
when the math element did not contain spaces before the
math environment.

Closes #11266.
2025-11-02 15:37:54 +01:00
John MacFarlane b69e9dbb81 Typst reader: handle document metadata and #title.
See jgm/typst-hs#80.

Note that previously, the typst reader never returned document
metadata.  Now it does, even if the typst document does not contain
a `#title` function that would result in actually printing the
title block.
2025-10-30 20:02:28 +01:00
John MacFarlane 2c6cd8327a PDF: fix regression with typst and smart quotes.
Before 3.8, the default behavior when producing a PDF `-t typst`
was to produce smart quotes according to typst's defaults.
(This could be defeated by specifying `-t typst-smart`.)

This behavior broke in 3.8 because of a change to Text.Pandoc.PDF.
This change caused `smart` to be disabled for all formats when
producing PDFs, when before it was only disable for TeX-based
formats (to avoid bad ligatures).

This commit restores the old behavior. Possibly the regression also
other affects other non-TeX formats, e.g. HTML.

Closes #11256.
2025-10-30 17:49:46 +01:00
John MacFarlane 379e389e20 Fix tests for #11259 change. 2025-10-30 17:46:15 +01:00
John MacFarlane cfc5ac447b Re-add columns to typst template.
This is a regression since 3.8.

Closes #11259.
2025-10-30 11:15:09 +01:00
John MacFarlane d353e1d11c LaTeX reader: Moved some entries from environments to blockCommands.
They are not environments!  `ifstrequal`, `iftoggle`, etc.

ifstrequal, iftoggle, etc. -- these are not environments,
and they are handled under inlineCommands.
2025-10-28 22:49:38 +01:00
John MacFarlane 5ba0dbe976 Djot reader: add Space elements.
Previously we just got big Str elements with spaces included.
But many pandoc writers assume that breakable spaces will be
Space elements.  So, we got odd results with e.g. jira output.

Closes #11250.
2025-10-27 22:25:18 +01:00
John MacFarlane d4d69fafb9 Fix stack.yaml. 2025-10-27 09:23:48 +01:00
John MacFarlane 6f1972351d stack.yaml - fix syntax. 2025-10-27 08:03:56 +01:00
dependabot[bot] df7d6bc590 Bump actions/upload-artifact from 4 to 5 (#11248)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 5.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-27 07:36:44 +01:00
John MacFarlane 9639a33b17 Use dev versions of typst-hs, texmath, typst-symbols. 2025-10-26 22:43:18 +01:00
John MacFarlane 8b4e72e969 Typst template: fix font for compatibility with typst 0.14.
Typst 0.14 doesn't permit an empty array for `font`.
Closes #11238.
2025-10-26 19:43:03 +01:00
John MacFarlane 8a60743624 Citeproc: allow formatting in locator to be transmitted to citeproc.
We do this indirectly, by rendering the formatting using the
HTML tags that citeproc recognizes.  Fixes jgm/citeproc#68
and jgm/citeproc#163.

Note that formatting is only possible for locators given in
the explicit form, surrounded by curly braces.  It won't work
for implicit locators, since these expect number-like expressions.
2025-10-24 23:11:26 +02:00
John MacFarlane d6c95435bf Use latest dev citeproc. 2025-10-24 23:11:26 +02:00
Mickaël Canouil ba64240f2c Typst template: fix syntax for bibliography inclusion (#11233)
Previously the syntax was wrong when multiple bibliography files were
specified.  Typst expects an array.
2025-10-23 11:31:57 +02:00
John MacFarlane 09c9be2c12 Update AUTHORS.md. pandoc-lua-engine-0.5.0.1 3.8.2.1 pandoc-cli-3.8.2.1 2025-10-20 10:30:15 +02:00
John MacFarlane 699abd7d86 Update changelog. 2025-10-20 10:28:21 +02:00
John MacFarlane 3d5efe7400 Update manual date and regenerate man pages. 2025-10-20 10:26:59 +02:00
John MacFarlane d929bbf394 Bump pandoc-lua-engine to 0.5.0.1 2025-10-20 10:18:44 +02:00
John MacFarlane f7e0f5f5a5 Bump pandoc, pandoc-cli to 3.8.2.1 2025-10-20 10:18:22 +02:00
John MacFarlane 1b9b05e2f7 cabal.project - remove obsolete constraint for data-default.
We no longer need this, now that dependent packages have
been fixed to use data-default >= 0.8.
2025-10-20 10:15:45 +02:00
John MacFarlane 3766e39389 pandoc-lua-engine: allow citeproc 0.11. 2025-10-19 23:27:09 +02:00
John MacFarlane 263b058d70 Use released citeproc 0.11. 2025-10-19 23:12:29 +02:00
John MacFarlane 77d0bf6df3 Allow unicode-data 0.8. 2025-10-18 23:18:56 +02:00
Albert Krewinkel 13a5b1a4df Org reader: parse parameter lists on unknown blocks.
The reader tries to parse the rest of the opening line of a block, e.g.,
`#+begin_myblock …`, as a parameters list. It first assumes that the parameters
are in lisp-style (`:key value`), then alternatively tries to read python-style
key-value pairs (`key=value`) and falls back to reading the entire remaining
line as a single `parameter` attribute.

This method is also applied to dynamic blocks.

Closes: #11188
2025-10-18 17:35:23 +02:00
Albert Krewinkel 941b5662d7 Org reader: add support for dynamic blocks. 2025-10-18 17:34:38 +02:00
John MacFarlane 36cea7c978 Typst template: ensure that title block is properly centered.
Closes #11221.
2025-10-18 15:41:07 +02:00
John MacFarlane 350b821d7c Update to use latest dev citeproc.
Fixed golden test regeneration in Docx reader test.
2025-10-18 15:03:50 +02:00
John MacFarlane eb9bfb6b96 Fix #6959 test so it works on Windows. 2025-10-16 11:17:35 +02:00
John MacFarlane d4dd5e9ab9 Docx writer: properly handle nested comment spans.
Patch credit: @mmourino.

Closes #8189. Closes #6959.
2025-10-15 23:33:04 +02:00
TuongNM 80ccc78a52 RST writer: Don't use simple tables with RowSpans (#11214) 2025-10-14 19:07:02 +02:00
John MacFarlane d81ee85952 RTF reader: improve hyperlink parsing.
Closes #11211.
2025-10-13 20:23:22 +02:00
John MacFarlane 3d6439ad15 Typst writer: Escape open paren after non-space.
This fixes an issue that occurs if an open paren comes
right after e.g. `#strong[test]`.

Closes #11210.
2025-10-13 12:11:29 +02:00
FoxChillz d3ed33bd00 Fixed missing backtick. (#11209) 2025-10-12 14:48:33 +02:00
John MacFarlane 001abd1d96 HTML reader: allow blank space between open and close iframe. 2025-10-11 19:01:03 +02:00
Emmanuel Ferdman 8a76a6fef1 Correct anchor references to pandoc.text module documentation (#11205)
Closes #11111.
2025-10-10 10:14:59 +02:00
John MacFarlane d8354618c4 LaTeX writer/template: small fix for unnumbered tables.
This improves on commit e13aa5c015,
which worked only for recent versions of longtable.

For older versions, we need to define a dummy counter `none`.

Closes #11201.  Thanks to @priiduonu for the solution.
2025-10-06 23:04:40 +02:00
John MacFarlane be0509a26b Changelog spacing fix. 2025-10-06 23:03:31 +02:00
John MacFarlane 6a89576b00 Small improvements to release checklist template. 2025-10-05 22:47:41 +02:00
John MacFarlane fe57c69f29 Bump manual date. pandoc-cli-3.8.2 3.8.2 2025-10-05 17:54:49 +02:00
John MacFarlane 677b8d0bf4 Bump pandoc, pandoc-cli to 3.8.2, update changelog 2025-10-05 17:48:39 +02:00
John MacFarlane ae1ef4364a Use released texmath 0.13.0.1 2025-10-05 17:14:10 +02:00
John MacFarlane e87b86261f Typst writer: don't add semicolons as much.
Previously we added semicolons after inline commands not
followed by spaces, but mainly this was to deal with one issue:
the presence of a semicolon after an inline command, which
would be swallowed as a command separator (#9252).

This commits adopts an approach that should avoid so many
superfluous semicolons: it escapes semicolons that might come
right after a command.  See #11196.
2025-10-05 16:33:03 +02:00
John MacFarlane 208142fcf2 Use dev version of texmath. 2025-10-04 21:10:50 +02:00
John MacFarlane 4a87898dd7 Add note on typst template variable.
Only a relative path can be used here.
See #11190.
2025-10-04 20:14:45 +02:00
John MacFarlane 9d452f801d Typst template: fix 3.8 regression in which links disappear.
A template change in 3.8 added a show rule for links which
causes them to disappear except in special cases.

This change fixes the problem.

Closes #11194.
2025-10-04 19:26:59 +02:00
John MacFarlane c66553c76b Small improvement to oneOfStrings.
Use accumulator.
2025-10-04 19:26:59 +02:00