Commit Graph
18881 Commits
Author SHA1 Message Date
John MacFarlane 99813a53ab Cirrus macos release candidate: switch to sonoma for build.
Monterey is no  longer available.
pandoc-lua-engine-0.5.2 pandoc-cli-3.9.0.1 3.9.0.1
2026-03-18 11:40:28 +01:00
John MacFarlane e940ac0ae0 cabal.project - remove patch for basement...
which we no longer need.
2026-03-18 11:17:34 +01:00
John MacFarlane c126c2bb47 Use new versions of cryton, crypton-x509-system, tls
This eliminates memory, basement, foundation as transitive deps.
2026-03-18 11:10:14 +01:00
John MacFarlane 71bf72a037 Fix wasm build to use ram package instead of memory. 2026-03-18 10:57:30 +01:00
John MacFarlane 109887263f Markdown reader: small code simplification...
to ef6b669e25.
2026-03-17 20:27:32 +01:00
John MacFarlane 024fe7aa40 Add to AUTHORS.md. 2026-03-17 20:17:07 +01:00
John MacFarlane 49064d150d Moved some things from extra-source-files to extra-doc-files. 2026-03-17 19:43:35 +01:00
John MacFarlane 8e9fc5b27c Add test files to extra-source-files. 2026-03-17 19:42:30 +01:00
John MacFarlane 5b58633e85 Update changelog. 2026-03-17 19:40:00 +01:00
John MacFarlane ef6b669e25 Markdown reader: Fix bug with lists_without_preceding_blankline.
This was not properly implemented, causing some unintended
results. Closes #11534.
2026-03-17 19:37:08 +01:00
John MacFarlane 14b3876547 Update man page and MANUAL date. 2026-03-17 16:38:41 +01:00
John MacFarlane dcdd2af224 Bump lower bounds for asciidot, djot, texmath, typst. 2026-03-17 16:17:24 +01:00
John MacFarlane 3e8fca87c8 Bump pandoc-lua-engine to 0.5.2. 2026-03-17 16:13:43 +01:00
John MacFarlane cd0bd0bf31 Bump to 3.9.0.1, bump and sync pandoc-cli. 2026-03-17 16:12:32 +01:00
John MacFarlane f53d95ab35 Use released djot, asciidoc, texmath, typst. 2026-03-17 16:11:03 +01:00
John MacFarlane 4fbe52f4c1 Update typst tests for template change. 2026-03-17 11:00:39 +01:00
John MacFarlane dc4bcd23cc typst template: put title block in a conditional.
This avoids an empty block for documents that lack metadata
information.  The empty block causes problems if `#set page`
is used, as it will cause a page break.

Closes #11529.
2026-03-17 09:58:29 +01:00
John MacFarlane 1cc6fec234 ImageSize: correctly handle percentage width, height on svg.
Previously we were getting image size of 0 when a percentage
was specified for width or height on SVG.  With this change,
we simply ignore these percentages (becaues ImageSize doesn't
know the size of the containing element).

Closes #11530.
2026-03-17 09:49:29 +01:00
John MacFarlane 0784049b40 MANUAL.txt: Note that JSON may be used in YAML metadata blocks.
JSON is a subset of YAML. See #11525.
2026-03-17 09:04:44 +01:00
John MacFarlane 5f245367d9 LaTeX template: properly handle keywords with commas.
These need to be put in an `\xmpquote{..}` command.
Closes #11528.
2026-03-16 17:34:01 +01:00
John MacFarlane bf45205b8a Update typst test for math changes. 2026-03-15 18:12:01 +01:00
John MacFarlane 1eba245757 Use latest dev texmath. 2026-03-15 16:01:48 +01:00
ˌbodʲɪˈɡrʲim f10ee0eec3 LaTeX reader: support supertabular environment (#11523) 2026-03-14 22:25:19 +01:00
John MacFarlaneandClaude c8ee9dc545 Docx reader: preserve non-textbox content when unwrapping textboxes.
Previously, when a w:p paragraph contained runs with textboxes,
the entire paragraph was replaced by just the textbox content,
discarding all other runs (including image-bearing runs).
Now we walk the paragraph's children in order, grouping
non-textbox content into copies of the original w:p and splicing
unwrapped textbox content in place, preserving the original order.

We also treat text inside a textbox containing an image as a
figure caption.  (One often finds captioned images of this
kind in docx files.)

Closes #11510.
Closes #6893.
Closes #11412.
Closes #5394.
Closes #9633.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-03-14 20:12:34 +00:00
John MacFarlane 8aa7a08574 Docx writer: don't depend on extractTarget from Docx reader. 2026-03-12 23:51:21 +01:00
John MacFarlane 244528e044 Docx reader: properly handle media stored with packaged-rooted paths...
...such as /media.  This can be produced by the online version
of Word. (Desktop Word uses paths relative to word/.)  With this change,
media stored at an absolute path will be stored with its original
name and not given a SHA1-based name.

Closes #11518.
2026-03-12 23:28:54 +01:00
Raymond Berger f0d05eb438 Docx reader: Recognize media inside textboxes (#11515)
Closes #11053.
2026-03-12 22:26:17 +01:00
John MacFarlane d39ca219e7 Permit http-client-tls 0.4. 2026-03-12 10:29:41 +01:00
silby 09faceaa0d Remove self from sponsorship recipients (#11519) 2026-03-12 10:22:45 +01:00
John MacFarlane 6219b9ebf6 Use latest dev asciidoc-hs. 2026-03-10 12:26:26 +01:00
John MacFarlane 80c704a9ac Typst writer: properly escape . after bracketed argument.
(When it might be mistaken for field access.)

Closes #11511.
2026-03-09 14:10:53 +01:00
John MacFarlane 661d18b244 Allow tls 2.2. 2026-03-08 09:54:42 +01:00
Peter Briggs 87e00ed944 Fix outdated OPML spec URL in MANUAL.txt (#11504) 2026-03-08 09:52:20 +01:00
John MacFarlane 131cf7ce9b Allow crypton 1.1. 2026-03-07 23:42:44 +01:00
Albert Krewinkel 40b525352d JATS writer: improve representation of divs
The writer now checks if the element used to represent (non-special)
divs has any `<boxed-text>` specific attributes. If it does, the writer
keeps wrapping the div contents in a `<boxed-text>`, as it did before.
Otherwise, the writer falls back to the more appropriate `<p>` element
or simply unwraps the div if the wrapping element wouldn't have any
attributes. The new behavior gives better semantic results in most
cases, as `<boxed-text>` should be used for text that "is outside the
flow of the narrative text", which doesn't apply to most divs.

"Special" divs, like those used to mark sections, are not affected by
this change.
2026-03-06 13:59:04 +01:00
massifrg 15ddf4124c ICML writer support for image object styles (#11498)
This change allows users to style images in InDesign bysetting the
`object-style` attribute in a pandoc Image, which is mapped to the
AppliedObjectStyle attribute in the Rectangle element around
an Image element in the resulting ICML.
2026-03-03 22:31:55 +01:00
John MacFarlane aab99655e9 Use latest dev asciidoc-hs. 2026-03-03 17:07:06 +01:00
John MacFarlane a6ab08da9f MediaWiki writer: use appropriate syntax for external images.
Note that they will only be rendered as images if an
option `$wgAllowExternalImages` is enabled in the MediaWiki instance.

Closes #11494.
2026-03-03 15:38:51 +00:00
dependabot[bot] 929597b7c4 Bump actions/upload-artifact from 6 to 7
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 6 to 7.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v6...v7)

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

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-02 11:55:41 +01:00
John MacFarlaneandClaude Opus 4.5 104344fe72 PPTX writer: register content type for embedded fonts.
When a reference document contains embedded fonts (.fntdata files),
the content type was not being registered in [Content_Types].xml,
causing PowerPoint to flag the output as corrupted.

Closes #11492.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-28 14:07:54 +00:00
John MacFarlane fd8d755f8a Markdown writer: escape literal & that would trigger entity.
Closes #11490.
2026-02-27 11:51:35 +01:00
Pascal Wagler 72b62843c1 EPUB 3 update allowed values for metadata identifier.scheme (#11485)
- Update allowed values for metadata `identifier.scheme` from ONIX codelist  issue 72.
- Change some `identifier.schema` allowed values to better align with ONIX codelist.
- Update manual.

Closes #11481.
2026-02-25 22:03:33 +01:00
John MacFarlane 086d1f5673 Fix stack.yaml. 2026-02-25 12:58:55 +01:00
John MacFarlane 9bfde3cd9d Use latest dev djoths. 2026-02-25 12:36:05 +01:00
John MacFarlaneandClaude Opus 4.5 1a3a6e4e19 Require auto-update >= 0.2.6 to fix server on macOS.
Version 0.2.5 introduced a dependency on getSystemTimerManager
which fails on macOS. Version 0.2.6 includes a fix that provides
fallback logic for non-threaded runtimes.

Closes #11488.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-25 11:06:13 +00:00
John MacFarlane f5d8079ad7 Tweak to #11487 - Use fromContext instead of lookupMeta.
This ensures that things will work even if the variable is
set using `--variable`.

Closes #11486.
2026-02-25 11:55:58 +01:00
Christophe Dervieux 7bd9dbecdc Revealjs writer: default scrollProgress to 'auto'.
RevealJS defaults scrollProgress to 'auto', but the writer was
setting it to true.  Use lookupMeta to distinguish between
MetaBool True, MetaBool False, and unset (defaulting to 'auto').
The template uses a helper variable scrollProgressAuto since
pandoc templates cannot distinguish a MetaString "auto" from
MetaBool True in a single variable.
2026-02-25 11:45:30 +01:00
Christophe Dervieux bf96353c48 Revealjs template: fix type rendering of scroll-view options.
Remove quotes from scrollActivationWidth (should be a number,
not a string).  Use $if/$else$ guard for scrollSnap so that
`false` renders as a boolean literal rather than the string
'false'.  Add /nowrap to scrollSnap and scrollLayout.
2026-02-25 11:45:30 +01:00
John MacFarlane d53fa0cffb pandoc-cli.cabal: bump base min bound to 4.18 (same as pandoc). 2026-02-25 10:29:46 +01:00
John MacFarlane e327b2e6ba Revert change to ghc-options in pandoc-cli.
An earlier change removed `-threaded`, which we need.
See #11488.
2026-02-25 10:19:06 +01:00