Commit Graph
18904 Commits
Author SHA1 Message Date
John MacFarlaneandClaude 89fcb01a58 Shared: use short-circuiting 'any' in compactify
Replace list comprehension filters (which materialize the full
list) with 'any isPara', allowing early exit on the first match.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-04-09 13:46:17 +00:00
John MacFarlaneandClaude 8b17e1c66d Shared: avoid quadratic Text concatenation in toRomanNumeral
Build the result as a Char list and T.pack once, instead of
repeatedly concatenating Text values (each O(n) in the result
length).

Co-Authored-By: Claude <noreply@anthropic.com>
2026-04-09 13:45:48 +00:00
John MacFarlaneandClaude 6b1d44a701 Shared: avoid redundant T.pack in tabFilter
Use the OverloadedStrings literal " " directly instead of
T.pack " ", avoiding an unnecessary pack call on every tab.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-04-09 13:45:15 +00:00
John MacFarlane 04205049c8 Use dev doclayout. 2026-04-09 15:28:03 +02:00
John MacFarlane a6486391e1 Markdown writer: escape ::: to avoid triggering unintended divs.
Closes #11571.
2026-04-09 10:51:15 +02:00
John MacFarlaneandClaude 134296c541 Fix test suite parallel execution failures.
MediaBag test used `inDirectory` (which calls `setCurrentDirectory`),
changing the process-wide CWD and causing other parallel tests
to fail with "does not exist" errors on relative paths.
Replace with absolute paths so the test no longer changes CWD.

Closes #11566.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-04-07 11:18:49 +02:00
John MacFarlane 40e05e47a9 Make groff the default pdf-engine for ms output.
Closes #11558.
2026-04-05 20:22:13 +02:00
John MacFarlane 7aca987b95 MediaWiki writer: handle some technically malformed URLs.
E.g. `http://example.com/#/#room` and `http://example.com/##`. Closes #11562.
2026-04-04 15:27:01 -04:00
John MacFarlane df61b8b1a9 MediaWiki writer: fix escaping to avoid lists.
For paragraphs beginning with literal `#`, `*`, or other things
that would otherwise produce lists, we insert `<nowiki></nowiki>`
rather than (as previously) `\`. `\` does not work to escape
these.

Closes #11563.
2026-04-04 15:12:23 -04:00
John MacFarlane 1a8d44b0c3 MANUAL: Reword restrictions on YAML metadata in commonmark.
See #11561.
2026-04-01 22:24:40 -04:00
John MacFarlane 7777de6adb BibLaTeX inbook should be CSL book, not chapter.
Closes #11552.
2026-03-27 23:56:08 -04:00
John MacFarlane e5b785aeb4 Add dir attribute to html tag in epub templates.
This brings them into agreement with the html templates.
See #11554.
2026-03-27 23:40:19 -04:00
John MacFarlane 9c45e58123 bash_completion.tpl: add groff to pdf-engine completions.
See #11555.
2026-03-27 23:18:12 -04:00
John MacFarlane aabed4299d Set default User-Agent request header to pandoc/VERSION.
This can be overridden using the `--request-header` option.
2026-03-24 12:07:51 +01:00
John MacFarlane 44b23c2023 Remove redundant import. 2026-03-22 15:58:19 +01:00
John MacFarlane fcd8eae940 Man writer: don't run together successive definitions...
in a tight definition list with multiple definitions
after a term. Closes #11547.
2026-03-22 15:41:37 +01:00
John MacFarlane 397fef7900 LaTeX template: Define \xmpquote if not defined.
`\xmpquote` is defined by the hyperref driver hyperxmp; we need a
fallback for those who aren't using that.

Closes #11528.
2026-03-22 10:36:15 +01:00
John MacFarlane 54453a311c MANUAL.txt: Clarify indentation rules for definition lists.
See #11542.
2026-03-21 16:49:34 +01:00
John MacFarlane 55fc212b0b Add Panache to extras. 2026-03-21 16:49:34 +01:00
John MacFarlane 8ce63ffe28 Mardkown writer: fix spacing issues with definition lists.
- Properly handle the case where the first item is an indented
  code block.  (Closes #11542.)
- Use correct indentation when `four_space_rule` extension is
  disabled.
2026-03-20 11:39:01 +01:00
John MacFarlane f1e061478d Bump to 3.9.0.2, update changelog and man pages. pandoc-cli-3.9.0.2 3.9.0.2 2026-03-19 09:40:27 +01:00
John MacFarlane 3769d0cbf4 Typst template: fix regression introduced in 3.9.0.1.
This introduced a bug that will produce the error message
`the character `#` is not valid in code`.

Closes #11538.
2026-03-19 09:17:46 +01:00
John MacFarlane 700e8710b7 RELEASE-CHECKLIST-TEMPLATE.org - default to verbatim output. 2026-03-18 16:36:31 +01:00
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