I'm pleased to announce the release of pandoc 3.14,
available in the usual places:
Binary packages & changelog:
https://github.com/jgm/pandoc/releases/tag/3.14
Source & API documentation:
http://hackage.haskell.org/package/pandoc-3.14
This release includes a lot of bug fixes and small improvements,
including improvements in dependencies, which you can read about
in the changelog. Here are the changes of special note:
-
Pandoc now searches a path given in an enviornment variable
PANDOC_DATA_DIRS when looking up data files (including
templates, filters, defaults files, metadata files, etc.).
The user data directory is still tried first. This change
will make it easier to create distributions of pandoc with
special customized data files. -
The LaTeX writer now uses custom macros for footnotes in
tables and definition lists, fixing a bug with hyperlinks
in the notes in these contexts. Those who use custom templates
will need to import the definitions of these macros from
the default LaTeX template.
API change:
- Text.Pandoc.Class exports new functions
getDataDirs
andgetPandocDataDirs.
Thanks to all who contributed, especially new contributors Support Reset sourcepos when parsing footnotes and grid table cells (#12001, extends fix for #11888). Otherwise, when one of these ends a file, relative paths in it can be rebased against the next file on the command line.
LaTeX reader:
Typst reader:
HTML reader:
RST reader:
ODT reader:
Docx reader:
Pptx reader:
Xlsx reader:
Docx writer:
EPUB writer:
Ipynb writer:
Vimwiki reader:
LaTeX writer:
HTML styles template:
Text.Pandoc.PDF:
Text.Pandoc.Class:
Text.Pandoc.Citeproc:
pandoc-lua-engine: raise lower bound for pandoc to 3.13 (#12066).
Depend on texmath 0.13.3.5, commonmark 0.3.2, commonmark-extensions 0.2.8, citeproc 0.14.2, typst 0.12.1, emojis 0.1.6, skylighting 0.15.0.1.
New bounds for crypton in pandoc-lua-engine and pandoc.
Makefile:
cabal.project: specify Minimize the test docx, odt, pptx files. This reduces the size of the test files (and release tarball) by 1.79 MB.
Alain Lesage, Asuka, Caio Vinícius, Jeremy Levartovsky,
Nacho García, tyler000000.
Click to expand changelog
PANDOC_DATA_DIRS for data file lookup (#7922). 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. If PANDOC_USER_DATA_DIRS is set, print its value in --version output.
\pandocfootnotemark{n} and \pandocfootnotetext{n}{..}) as produced by the LaTeX writer for notes in tables, captions, etc.
\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.
rawLaTeXParser (#12072). The raw LaTeX parser didn’t work properly when crossing from one source file to another.
columns: auto in grid (#12061).
<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.
styles extension (#12060).
+styles, consecutive “Source Code” paragraphs are combined into a single code block by combineBlocks. With +styles, each paragraph is first wrapped in a Div carrying its custom-style attribute, so the CodeBlock case no longer matched and every line became its own Div [CodeBlock].
w:numStyleLink in abstract numberings (#9222, Caio Vinícius).
notes div at the end of the slide’s blocks, the form the pptx writer turns into speaker notes, so pptx -> Markdown -> pptx keeps them.
chart Div whose type attribute holds the chart type. The chart’s title becomes the table captions. The chart code is in Text.Pandoc.Readers.OOXML.Charts.
hidden class on the header (Nacho García, #12023).
\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. 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). Note: 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.
repeat-caption class, captions will be repeated on each page of a longtable.
@print rules to end (#12064), so they aren’t overridden.
getDataDirs and getPandocDataDirs. [API change]
removeFinalPeriod now acts across Link boundary.
make check-cabal: exit with error status on outdated deps.
check-cabal; add check-sdist target we can run separately.
+http flag for all ghc versions.