Commit Graph
18622 Commits
Author SHA1 Message Date
John MacFarlane eea72420fc Use ghc 9.10 (not 9.12) for releases and nightlies. 2025-12-11 23:07:06 +01:00
John MacFarlane ab212c7b87 Fix compiler warning. 2025-12-11 22:58:24 +01:00
John MacFarlane a90307d0c8 Remove workaround that had been needed for older ghc versions. 2025-12-11 22:19:31 +01:00
John MacFarlane c6e2eee5a5 Remove obsolete comment. 2025-12-11 22:19:21 +01:00
John MacFarlane f7670f05ea cirrus builds: use ghc 9.12. 2025-12-11 22:06:20 +01:00
John MacFarlane 0679d22ae1 Drop support for ghc < 9.6.
Build nightly and release candidates using ghc 9.12.
2025-12-11 22:02:16 +01:00
Albert Krewinkel 47ada83bcb JATS writer: fix XML output for nested figures
Subfigures are now wrapped inside a `<fig-group>` element. Furthermore,
figure content that isn't allowed as children of `<fig>` elements, such
as raw text, gets wrapped in `<p>` elements to ensure schema-conform
XML production.

Fixes: #11342
2025-12-11 19:57:54 +01:00
John MacFarlane 20973b12cc Remove redundant import. 2025-12-11 16:27:48 +01:00
John MacFarlane 1f76d3f154 Markdown writer: use setext for headers containing line breaks...
...for commonmark.  Closes #11341.
2025-12-11 11:30:38 +01:00
John MacFarlane 6d745e5276 Markdown writer: ensure \ line breaks are used for commonmark. 2025-12-11 11:30:20 +01:00
John MacFarlane d19cc38f11 T.P.Shared: export hasLineBreaks.
[API change]

Formerly defined in the DocBook writer but more generally useful.
2025-12-11 10:51:54 +01:00
John MacFarlane a6fae6b780 Org: don't include 'example' class when parsing org example blocks.
These are just unmarked code blocks.

Closes #11339.
2025-12-10 23:55:08 +01:00
John MacFarlane b6339f9baa Typst writer: escape hyphens when needed.
Closes #11334.
2025-12-09 19:11:47 +01:00
John MacFarlane c365deaf1f Citeproc: avoid adding an extra space at the beginning of a Cite. 2025-12-09 13:41:43 +01:00
John MacFarlane b347de3cdf nightly: build macos on macos-latest (arm64). 2025-12-09 09:37:45 +01:00
John MacFarlane 457d18df57 Fix stack.yaml. 2025-12-07 17:16:49 +01:00
John MacFarlane 7767011767 Implement reset-citation-positions class on headings.
When the `reset-citation-positions` class is added to
a top-level heading, `--citeproc` will reset position
information at that point in the document. This is needed
in order to ensure that the first citation in a chapter
to a work that has been cited in a previous chapter will
not be in abbreviated form.

Requires a dependency on a development version of citeproc.
2025-12-07 17:07:05 +01:00
John MacFarlane 7ced712014 HTML5 template: conditionally include lang attribute.
Previously we included it unconditionally, even if this
meant giving it an empty value.  This seems at best redundant,
since the empty value is the default. At worst, it adds clutter
and according to some sources may prevent the use of browser defaults.

I believe that the justification for including these attributes
even with empty values is not a good one; see commit 07d51d9
for the original change.  On my reading, the HTML spec does not
require the presence of the attribute on the html element; it
only says that if the attribute is present, it must have an
empty string or valid BCP 47 language tag as its value.

See also #11324.
2025-12-06 11:51:09 +01:00
John MacFarlane a3ab4b8545 HTML reader: parse inline style elements as RawInline.
This is a cleaner fix to #10643 than the reverted commit 7fe8c92.

Styles are not stripped, but with this change they will not
interfere with inline parsing.

Closes #11246.
2025-12-05 11:14:11 +01:00
John MacFarlane 6531f24540 Revert "HTML reader: ignore style tags in the body."
This reverts commit 7fe8c92821.

See #10643 and #11246.
2025-12-05 10:47:32 +01:00
John MacFarlane 41b14dc891 RST reader: fix definition lists where term ends with -.
This reverts some old code giving special treatment to lines
ending in hyphens; I don't understand why it was there, because
rst2html does not seem to do this.

Closes #11323.
2025-12-05 10:46:24 +01:00
John MacFarlane 5e72d6e143 Use latest dev asciidoc. 2025-12-05 10:24:36 +01:00
John MacFarlane c6d99c957a Use latest asciidoc. 2025-12-04 23:41:19 +01:00
John MacFarlane 2c37f95417 Citeproc.BibTeX: Fix typo affecting jurisdiction biblatex type.
Closes #11321.
2025-12-04 23:00:31 +01:00
John MacFarlane dc4f624584 Fix biblatex parsing of @commentary entries.
Previously they were skippedas comments due to a bug.
Closes #11322.
2025-12-04 22:55:19 +01:00
John MacFarlane 78929adb4d Use dev typst-hs 2025-12-04 12:04:20 +01:00
John MacFarlane e79e0d621e Use dev asciidoc. 2025-12-03 09:32:57 +01:00
John MacFarlane b9b6ba0805 Texinfo writer: improve handling of certain code blocks.
MediaWiki, for example, will parse a code block containing
formatting as a sequence of Code elements separated by
LineBreaks. For this we now use a texinfo example block.

Closes #11312.
2025-12-02 12:04:36 +01:00
har7an 92e35d1b90 Fix a few mistakes in the contributing docs. (#11318)
* Fix a typo in the contributing docs.
* Fix link to Lua filter docs, so it works on GitHub.  (A rewrite rule will ensure that it also works on pandoc.org.)
* Update minimum GHC version in contributing docs.
* Add a comment in the respective CI file to keep the version up-to-date
  in the contributing guide.
2025-12-02 11:26:40 +01:00
har7an bbedaadc4d Typst template: Fix keywords usage. (#11317)
Previously the template turned any `keywords` defined in Pandoc metadata
into empty objects due to a misnomer in a loop variable. This in turn
was rejected by the Typst compiler as invalid syntax, making document
generation with keywords impossible.
2025-12-02 09:56:10 +01:00
John MacFarlane 568dab1453 Add new authors. pandoc-lua-engine-0.5.0.2 3.8.3 pandoc-cli-3.8.3 2025-12-01 09:48:34 +01:00
John MacFarlane 7ff2ead417 Regenerate man pages. 2025-12-01 09:46:49 +01:00
John MacFarlane c9a741b4bd Fix spacing issue. 2025-12-01 09:45:44 +01:00
John MacFarlane d3a013e580 Regenerate README.md 2025-12-01 09:45:41 +01:00
John MacFarlane 867686b554 pandoc-lua-engine: bump to 0.5.0.2. 2025-12-01 09:38:08 +01:00
John MacFarlane 23b1aa788a Update changelog. 2025-12-01 09:36:26 +01:00
John MacFarlane a2c8aef1cb Bump to 3.8.3 (pandoc, pandoc-cli)> 2025-12-01 09:36:10 +01:00
John MacFarlane 6b20a1eabb Update manual date and man pages. 2025-12-01 00:34:59 +01:00
John MacFarlane 48badd2073 pandoc-lua-engine: allow citeproc 0.12. 2025-11-30 18:05:49 +01:00
John MacFarlane 4bdb4550c2 Use released asciidoc 0.1. 2025-11-30 17:57:08 +01:00
John MacFarlane b22eaa6939 Use released djot 0.1.2.4. 2025-11-30 17:43:30 +01:00
John MacFarlane 7e2bd987ae Use released texmath 0.13.0.2. 2025-11-30 17:41:56 +01:00
John MacFarlane d6a6332729 CI: fail fast. 2025-11-30 17:26:28 +01:00
John MacFarlane 847e7d566f Use released typst 0.8.1. 2025-11-30 17:25:05 +01:00
John MacFarlane 564e275008 Use released citeproc 0.12. 2025-11-30 16:58:20 +01:00
Ezwal fc07b06851 Docx reader: Handle REF link instruction (#11296)
This PR aims to handle a common run field instruction (fieldInstr)
from docx format :  REF, specifically those with the "link" switch \h.

In word software, you can create REF field instruction with the
Cross-reference button. You can create cross-reference to
many things such as Equation, Table, Title...
2025-11-30 13:49:58 +01:00
Asliddinbek Azizovich 094061d946 Add reveal.js scroll view option to HTML writer (#11305)
* Add revealjs `scroll` view option to HTML writer
* Add `scrollSnap` option into default.revealjs

Closes #10052
2025-11-30 13:45:36 +01:00
John MacFarlane 1dcb984453 Clean up implicit_figure documentation.
Explain how to specify alt text.

See #11082.
2025-11-30 13:31:17 +01:00
John MacFarlane 66cbd2471f Give long form of option as well as short.
See #11306.
2025-11-30 13:20:39 +01:00
Tuong Nguyen Manh 58e741a0d6 ANSI writer: Apply row spans in tables (#11294)
The ANSI writer is now able to keep track of row spans and apply them in rows.

[API change] T.P.Writers.Shared:
Add functions `insertCurrentSpansAtColumn`, `takePreviousSpansAtColumn`
and `decrementTrailingRowSpans` for applying and keeping track of
RowSpans over multiple rows.

Fixes: #10149
2025-11-30 13:20:30 +01:00