Commit Graph
19825 Commits
Author SHA1 Message Date
Daniel Scherzer 2bfef0edfb README.md: use Special:MyLanguage in MediaWiki links 2026-11-15 15:55:17 -08:00
John MacFarlane 80ddf99201 update flake.lock. 2026-11-15 13:29:57 -08:00
John MacFarlane 3d4b86b68f Use dev texmath. 2026-11-15 13:04:20 -08:00
John MacFarlane 616faaad43 Use ipynb 0.3. 2026-11-14 13:53:33 -08:00
John MacFarlane 300d24fdb1 Fix typo in changelog. 2026-11-11 22:42:28 -08:00
John MacFarlane 3bc7b8527e Fix typo in changelog. 2026-11-11 20:25:23 -08:00
John MacFarlane 3dde36a9dd Update changelog. pandoc-lua-engine-0.5.4.3 3.14 pandoc-server-0.1.4.3 pandoc-cli-3.14 2026-11-11 18:59:06 -08:00
John MacFarlane bdf5b8ed91 Added some dependencies to stack.yaml that are needed for nix. 2026-11-11 18:21:21 -08:00
John MacFarlane f4f188405d Fix stack.yaml and depend on latest pandoc-lua-marshal. 2026-11-11 17:59:52 -08:00
John MacFarlane 2aeeeeb34b LaTeX reader: fix file-crossing bug in rawLaTeXParser.
The raw LaTeX parser didn't work properly when crossing
from one source file to another. Closes #12072.
2026-11-11 15:58:28 -08:00
John MacFarlane e1f1052e00 Release candidate checklist: don't make release build babel-runnable.
It freezes Emacs for a long time.
2026-11-11 11:56:16 -08:00
John MacFarlane 897e121afe stack.yaml - use latest pandoc-lua-marshall, hslua-aeson 2026-11-11 11:50:57 -08:00
John MacFarlane dd272e1259 Fix allow-newer in stack.yaml. 2026-11-11 10:52:04 -08:00
John MacFarlane aa74a7dc71 Update AUTHORS.md. 2026-11-11 09:25:44 -08:00
John MacFarlane 90c6713b28 changelog tweaks. 2026-11-11 09:23:23 -08:00
John MacFarlane 1d398ef936 Update stack.yaml deps for latest resolver 2026-11-11 09:14:36 -08:00
John MacFarlane 1856585993 Revert "make check-stack : error exit on stack.yaml lint-extra-deps failure."
This reverts commit f753137752.

We are going to get an error for pandoc-types, which we need to
ignore for now -- it's only in stack.yaml because the latest version
is not in nixpkgs.
2026-11-11 09:13:39 -08:00
John MacFarlane f753137752 make check-stack : error exit on stack.yaml lint-extra-deps failure. 2026-11-11 08:47:08 -08:00
John MacFarlane e2b25d25a0 Use latest stackage resolver version. 2026-11-11 08:33:38 -08:00
John MacFarlane f5a9356acf stack.yaml - bump aeson version. 2026-11-11 08:20:34 -08:00
John MacFarlane fbfb133af2 Allow tls 2.5.1. 2026-11-10 23:21:30 -08:00
John MacFarlane 0be51c9ee0 Fix spacing. 2026-11-10 23:19:29 -08:00
John MacFarlane c6b8305263 pandoc-lua-engine to 0.5.4.3 2026-11-10 23:16:51 -08:00
John MacFarlane 52a2262ab8 pandoc-server to 0.1.4.3 2026-11-10 23:16:41 -08:00
John MacFarlane a373fd6d53 Update man pages. 2026-11-10 23:14:09 -08:00
John MacFarlane befc07b447 Bump to 3.14, update changelog and upper bounds in dependencies. 2026-11-10 23:01:15 -08:00
John MacFarlane c37bc32763 Updaet manual date. 2026-11-10 23:00:57 -08:00
John MacFarlane 8f211859b0 Update flake.lock. 2026-11-10 21:53:36 -08:00
John MacFarlane 875ccfd43e Depend on released commonmark 0.3.2, commonmark-extensions 0.2.8 2026-11-10 20:15:02 -08:00
John MacFarlane d20d211aa8 Depend on texmath 0.13.3.5 2026-11-10 20:13:29 -08:00
John MacFarlaneandClaude Opus 5.5 556a25b408 RST reader: strip minimum indentation from indented blocks.
Previously the indentation of the first line was stripped, so lines
with less indentation lost all their leading whitespace.  Now, as in
docutils, the minimum indentation is stripped and relative indentation
is preserved.

Closes #12071.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 18:30:31 -08:00
John MacFarlane 917e21c8ad Use released typst 0.12.1. 2026-11-10 18:30:31 -08:00
John MacFarlane 280edc422b Use released citeproc 0.14.2 2026-11-10 18:30:31 -08:00
John MacFarlane a78ad45a7b Update flake.lock 2026-11-10 13:24:14 -08:00
John MacFarlane 13caf55b26 Use released texmath 0.13.3.4 2026-11-09 22:50:09 -08:00
John MacFarlane 1744ea89a9 Pptx reader: read bold, italic, sub/superscript and hyperlinks.
Text runs were read as plain text, so their formatting and hyperlinks
were lost.

Runs and fields now keep their bold and italic (`b`, `i`) and their
baseline shift (`baseline`, as superscript or subscript). Adjacent runs
with the same format are joined first, so two bold runs make one Strong,
and spaces at the edges of a formatted run are kept outside it.

A run with a hyperlink (`a:hlinkClick`) becomes a Link to the target of
its relationship; adjacent runs with the same relationship make one
link. Links that act within the presentation, such as a jump to another
slide, carry an `action` and are read as plain text.

Formatting in slide titles, table cells and SmartArt, which are read as
plain text, is still ignored, as is underline.

The test fixture was written with python-pptx 1.0.2.

Contributed by @nachogarcia.
2026-11-09 22:00:23 -08:00
John MacFarlane 01e9573268 Use skylighting/skylighting-core 0.15.0.1. 2026-11-09 20:13:51 -08:00
John MacFarlaneandClaude Opus 5.5 eab35c876e LaTeX reader: handle pandoc's deferred footnotes.
+ Parse `\pandocfootnotemark{n}` and `\pandocfootnotetext{n}{..}`,
  as produced by the LaTeX writer for notes in tables, captions,
  etc. Marks and texts are matched by id.
+ Resolve footnote marks inside resolved footnote texts, so that
  nested notes are not lost.
+ Track `\addtocounter{footnote}{n}`, so that `\footnotemark` and
  `\footnotetext` with counter adjustments (as produced by earlier
  versions of pandoc) are matched correctly. Previously all
  of the texts were assigned to the last mark.
+ Ignore definitions of `\pandocbounded`, `\pandocfootnotemark`,
  and `\pandocfootnotetext` (e.g. from pandoc's template), which
  the reader handles directly. Previously these definitions were
  expanded, producing garbage and losing content.

See #11936.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 20:13:38 -08:00
John MacFarlaneandClaude Opus 5.5 5bca190d12 LaTeX writer: fix hyperlinks for deferred footnotes.
Notes in tables, captions, and definition list terms are rendered
as a mark followed later by the note text. Previously we used
`\footnotemark{}` and `\footnotetext` with manual adjustments to
the footnote counter. But hyperref anchors each `\footnotetext` at
the destination of the most recent `\footnotemark`, so when there
were several such notes, all of the texts got the last mark's
anchor and the links for the other marks were broken (visibly so
with xelatex; pdflatex and lualatex silently substituted
page-level destinations).

We now emit `\pandocfootnotemark{n}` and `\pandocfootnotetext{n}{..}`,
where `n` is a unique id. These macros, defined in the default
template when the `deferred-notes` variable is set, save the
footnote mark and hyperref anchor at the mark and restore them
at the text. This removes the need for counter arithmetic, works
when the footnote counter is reset by chapter, and handles notes
nested inside deferred notes (whose texts are now emitted after
the text containing their marks). Since `\@footnotetext` is used
directly, verbatim content in such notes (`\VerbatimFootnotes`)
still works.

Users of custom LaTeX templates, or of LaTeX fragments produced
without `--standalone`, will need to include the definitions of
`\pandocfootnotemark` and `\pandocfootnotetext` from the default
template.

Closes #11936.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 20:13:38 -08:00
John MacFarlane e07fd5c33a Revert "Use dev skylighting."
This reverts commit 01a4c5e281.
2026-11-09 08:44:57 -08:00
John MacFarlane 01a4c5e281 Use dev skylighting. 2026-11-09 08:20:37 -08:00
John MacFarlane cd1d070fba Use latest dev commonmark-hs 2026-11-08 20:38:45 -08:00
John MacFarlaneandClaude Opus 5.5 365cac08e7 HTML reader: don't drop ordered lists and rules inside footnotes.
Previously an `<ol>` inside the body of a note was treated as
the list of notes, and its items were lost.  Similarly, an `<hr>`
inside a note was dropped.  We now set a local `inNoteBody` flag
while parsing a note's content, and only treat `<ol>` as the
note list (and drop `<hr>`) when not in a note body.

Closes #11852.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 09:06:32 -08:00
John MacFarlane cd359ffcda Use latest dev citeproc. 2026-11-07 22:38:40 -08:00
John MacFarlane 160de94937 Add missing command test file to pandoc.cabal.
Also, shrink test/command/9222.docx.
2026-11-07 20:30:29 -08:00
Nacho García 41d9ef8eaf Xlsx reader: read charts. (#12043)
Charts were ignored, and a chart sheet read as an empty section.

The charts on a worksheet or chart sheet, those its drawing refers to,
are now read after its table, in the order they are drawn, as the pptx
reader reads them: a table of the values the chart part caches, in a
`chart` div. A drawing or chart that can't be read is left out, as is a
chart without cached values.

The test fixture was written part by part with a Python script.
2026-11-07 20:17:08 -08:00
Caio Vinícius 5f33447c92 Docx reader: follow w:numStyleLink in abstract numberings (#11978)
Word can define a list through a numbering style: the abstractNum
referenced by the list has no `w:lvl` of its own, only a
`w:numStyleLink`, and the levels live in the abstractNum whose
`w:styleLink` names the same style (ECMA-376 17.9.21 and 17.9.27).
The reader only looked at the referenced abstractNum, found no levels,
and turned the list items into plain paragraphs.

When an abstractNum has no levels but has a `w:numStyleLink`, take the
levels of the abstractNum with the matching `w:styleLink`.

Closes #9222.
2026-11-07 20:08:26 -08:00
Patrick CreightonandCopilot 5579187cdf Docx reader: read all underline types. (#11995)
Only `w:u` with `w:val="single"` was read as Underline. Double, thick,
dotted, wavy and the other underline types, which Word also shows as
underlined text, were dropped. Every value except `none` now gives
Underline, as `w:highlight` already does for highlighting.

Closes #11988.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-07 20:02:29 -08:00
John MacFarlaneandClaude Opus 5.5 6c965aa269 Support PANDOC_DATA_DIRS for data file lookup. (#12010)
If `PANDOC_DATA_DIRS` is set, the (absolute) directories it lists are
searched, in order, for data files not found in the user data directory,
before falling back to the default data files.  This covers templates,
filters, defaults files, metadata files, CSL styles, and other data
files.

[API change] Text.Pandoc.Class: Export new functions `getDataDirs` and
`getPandocDataDirs`.

If `PANDOC_USER_DATA_DIRS` is set, print its value in `--version`
output.

Closes #7922.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 19:59:35 -08:00
John MacFarlaneandClaude Opus 5.5 e39194e939 ODT reader: support the styles extension. (#12065)
With `+styles`, named paragraph and character styles are recorded
in `custom-style` attributes on Divs and Spans, as in the docx
reader. Automatic styles are resolved to the named style they are
based on, and the user-visible name of the style is used.
The default paragraph style, default table cell styles, and styles
that pandoc interprets itself (Emphasis, Strong Emphasis, Source Text,
links, table captions) are not recorded. Paragraphs in list items
and image captions are not wrapped. Headings get a `custom-style`
attribute if their style is not the standard one for their level.

OpenDocument writer: encode custom style names as LibreOffice does,
e.g. `Text body` becomes `Text_20_body`, so that they match
the styles in a reference doc.

See #12060.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 19:53:49 -08:00