Commit Graph
18704 Commits
Author SHA1 Message Date
Lima User d8fcdbbd22 Add gnumake and unzip to flake.nix 2026-01-23 23:33:57 +01:00
John MacFarlane 49eb145292 Add tests for #7201, #7582. Rescind claim to have fixed #8715. 2026-01-23 23:28:02 +01:00
John MacFarlane b45f6cf86a HTML slide formats: make . . . pause work in nested blocks.
Closes #8715. Closes #7201. Closes #7582.
2026-01-23 16:31:11 +01:00
John MacFarlane c8ad2752c4 Markdown writer: properly handle tables with footers.
Closes #11416.
2026-01-23 10:51:29 +01:00
Gordon Woodhull 07b9e927ca MANUAL: specify lualatex version for tagging/standard support (#11415) 2026-01-22 23:47:17 +01:00
Gordon WoodhullandClaude Opus 4.5 e07a3f3454 LaTeX writer: Add PDF standard support via DocumentMetadata (#11407)
Add `pdfstandard` metadata variable for specifying PDF standards
(PDF/A, PDF/X, PDF/UA) in LaTeX output. Uses LaTeX's \DocumentMetadata
command which requires LuaLaTeX.

- PDF version requirements are automatically inferred, but can be explicitly
  overridden.
- Automatic tagging for standards that require it (ua-1, ua-2, a-2a, a-3a).
- Warning for unsupported standards
- Documentation in MANUAL.txt (Variables for LaTeX, Accessible PDFs)

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-22 20:00:57 +01:00
John MacFarlane 395fb2db43 Docx reader: look inside v:rect as well as v:shape.
This partially addresses #11412, but it would be nice to
add proper handling of the caption.
2026-01-22 19:23:36 +01:00
John MacFarlane d599154394 Markdown reader: allow superscripted spans.
These were being parsed as inline notes. Now we disallow an
inline note followed by attributes, as this is almost certainly
meant to be a span.

Closes #11409.
2026-01-21 17:04:49 +01:00
John MacFarlane 5f398e9698 Fix a couple small documentation errors.
Closes #11408.
2026-01-21 09:54:35 +01:00
John MacFarlane f2c7a9c0cf ADd tar to stack.yaml. 2026-01-19 13:23:28 +01:00
John MacFarlane 754beea13a Use latest dev texmath. 2026-01-19 13:19:10 +01:00
John MacFarlane 1eab54eb92 Allow --extract-media to extract to a tar archive...
instead of a directory.  This happens when the path given has a
.tar extension.
2026-01-18 19:24:02 +01:00
John MacFarlane 363135f65e Use latest dev asciidoctor-hs 2026-01-17 22:33:43 +01:00
John MacFarlane 05b0fcbfbe Use latest dev texmath. 2026-01-17 14:33:11 +01:00
John MacFarlane 2ce4db75da AsciiDoc writer: export spaces inside delimited constructs like emph. 2026-01-16 00:14:23 +01:00
John MacFarlane cb6f5a3b37 DocBook/JATS reader: don't export surrounding space from inline elements.
Previously we would export leading and trailing space inside
elements like emphasis or ulink so they appeared outside the
resulting pandoc Inline (Emph or Link). This is not really
motivated; DocBook and XML in general treats leading and trailing
whitespace in this context as significant.

These spaces may casue problems for some output formats, e.g.
asciidoc, but these issues should be addressed in the
corresponding writers, as they are in the Markdown writer,
using Text.Pandoc.Writers.Shared.delimited.

Closes #11398.
2026-01-15 10:55:58 +01:00
Albert Krewinkel 9219a313e9 Lua: add function pandoc.utils.documentation (#11383)
Closes #10999.

This is now used to generate much of the Lua API documentation.
2026-01-15 09:59:58 +01:00
Chris Callison-BurchandChris Callison-Burch d14dee0dc2 PPTX writer: support notes field in metadata for title slide (#11396)
This adds support for a `notes` field in the YAML metadata block
that will be used as speaker notes for the title slide in PowerPoint
output.

Previously, there was no way to add speaker notes to the title slide
since it is generated from metadata rather than from content blocks.
The `::: notes` syntax only works for content slides.

Example usage:

    ---
    title: My Presentation
    notes: |
      Welcome everyone to this presentation.
      Remember to introduce yourself.
    ---

Closes #5844 (for PPTX output).

Co-authored-by: Chris Callison-Burch <ccb+github@upenn.edu>
2026-01-14 11:14:30 +01:00
John MacFarlane ca0f375498 release-candidate: sign Windows artifacts with SignPath cert. 2026-01-13 11:41:43 +01:00
John MacFarlane 024c5f182c Allow crypton-x509-system 1.8.* 2026-01-13 11:34:47 +01:00
John MacFarlane 425a53489f release-candidate: Another attempt to get signing working. 2026-01-12 22:09:16 +01:00
John MacFarlane 12b3bc3287 release-candidate: add a diagnostic step. 2026-01-12 21:04:05 +01:00
John MacFarlane fe773dca1f release-candidate CI: remove name on upload-unsigned-artifact. 2026-01-12 19:01:47 +01:00
John MacFarlane 3c415f3e50 More fixes for windows code signing process. 2026-01-12 17:40:30 +01:00
John MacFarlane 8af4ede529 Fix signing step in windows CI. 2026-01-12 15:07:34 +01:00
John MacFarlane 11bf7e88a4 Add SignPath signing step to release-candidate CI. 2026-01-12 14:32:03 +01:00
John MacFarlane e720af09e8 MANUAL.txt: Fix link for bbcode_steam.
Closes #11389.
2026-01-09 17:01:57 +01:00
John MacFarlane ee394582c4 doc/custom-writers.md: Fix typo.
Closes #11388.
2026-01-09 17:01:12 +01:00
Albert Krewinkel cb8739f5b0 Lua: switch to HsLua 2.5 2026-01-08 17:55:04 +01:00
John MacFarlane 8123be654d Markdown writer: Allow display math to start/end with space.
This reverts to earlier < 3.7 behavior.
Closes #11384.
2026-01-08 11:41:35 +01:00
John MacFarlane 6c28eadd6c LaTeX reader: handle more quote macros.
(From fontspec and ngerman babel.)

Closes #6120.
2026-01-08 11:23:03 +01:00
John MacFarlane 8a75c077b0 Logging: add pretty field to ToJSON instance for LogMessage.
This just reproduces the output of `logMessage`, for convenience
for those who are using the JSON output outside of Haskell.
2026-01-07 11:33:37 +01:00
John MacFarlane b206e941ca EPUB writer: don't use footnote backlinks for EPUBv3.
Here we use aside elements, which are popups, and the backlinks
are not needed; in some readers they cause a redundant number to
appear, since the reader adds a note number.

Standard practice seems to be not to use these.
2026-01-07 11:21:50 +01:00
John MacFarlane b026624ed7 Docx reader: handle tables without tblGrid.
Closes #11380.
2026-01-07 11:21:50 +01:00
John MacFarlane 7dafc1a8e5 flake.lock update 2026-01-07 11:21:50 +01:00
You Jiangbin c0b66602c2 Fix docx writer: skip directory entries when building media overrides (#11379)
Pandoc's docx writer was previously adding an `<Override>`
for `/word/media/` in `[Content_Types].xml` when the reference doc
contains media, which violates OPC rules and causes Word
 to report corruption.
2026-01-07 11:21:06 +01:00
Christophe Dervieux 81f33bdaff Fix author prefix placeholder in JATS template (#11381)
Follow up on https://github.com/jgm/pandoc/pull/10622 that fix typo in other file
2026-01-06 16:29:03 +01:00
Albert Krewinkel e9c4d7f724 Lua: let pandoc.with_state error on unknown options
Unknown or unsupported options now cause the `pandoc.with_state`
function to fail.

Closes: #11376
2026-01-05 22:48:45 +01:00
Yann Trividic 2a426718bc DocBook reader: support "role" attribute (#11255)
The `role` attribute is parsed and added to Pandoc AST elements,
using a wrapper Div if needed.
2026-01-03 12:36:19 -05:00
John MacFarlane 12ad483674 Typst template: disable hyphenation for title, subtitle.
Closes #11375.
2026-01-03 11:32:22 -05:00
John MacFarlane 60369fd353 Remove redundant check for asciidoc in UnknownReader. 2026-01-03 11:22:40 -05:00
John MacFarlane 91f6d08bea AsciiDoc writer: use a span with role for SmallCaps.
Closes #11374.
2026-01-03 11:20:28 -05:00
John MacFarlane cbdb72eecd flake.nix; provide profiterole, profiteur, eventlog2html. 2026-01-02 20:46:38 -05:00
Tuong Nguyen Manh 2327e302cb RTF reader: Improve hyperlink parsing more (#11370)
Both the field instruction and its result may be ungrouped.

Closes #10942.
2026-01-02 11:43:15 -05:00
Albert Krewinkel 8f8ea44d02 Lua: add function pandoc.with_state
The function allows to run a callback with a modified pandoc state. This
provides the ability to temporarily modify the resource path, the user
data directory, and the HTTP request headers.

Closes: #10859
2026-01-02 11:10:09 -05:00
Albert Krewinkel e8d140f41f Lua: support equallity checks of LogMessage objects
The *LogMessage* type now has the appropriate metamethod.
2026-01-02 14:42:11 +01:00
Albert Krewinkel 7b68846b92 Lua: mark readers and writers with their types.
The `pandoc.readers` and `pandoc.writers` maps now have string values
instead of boolean values. The string signals the type of the
reader/writer, `"text"` for *TextReader*/*TextWriter* and `"bytestring"`
for *ByteStringReader*/*ByteStringWriter*.

Closes: #11367
2025-12-31 10:43:07 +01:00
John MacFarlane b7bd1210b0 MediaWiki: better handling of inline tags.
`<mark>`, `<var>`, `<samp>`, and `<kbd>` now produce Code or Span
elements with classes, which can be handled by multiple output
formats, instead of simply being parsed as raw HTML tags.

Closes #11299.
2025-12-30 12:11:46 -07:00
John MacFarlane 7cadf23197 MediaWiki reader: handle non-recognized tags as plain text.
Partially addresses #11299.
2025-12-29 23:49:51 -07:00
John MacFarlane e5ee5ed04f RTF reader: fix bug where list items were...
...incorporated into a following table.
Closes #11364.
2025-12-29 10:11:41 -07:00