pandoc 3.6.1 #10493
jgm
announced in
Announcements
pandoc 3.6.1
#10493
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Click to expand changelog
Allow YAML bibliographies to be arrays of references (YAML bibliographies require an object with references and do not accept arrays #10452). Previously, they had to be YAML objects with a
references
key.Change
--template
to allow use of extensionless templates (Template cannot be set using a Bash process substitution #5270). The intent is to allow bash process substitution: e.g.,--template <(echo "foo")
. Previously pandoc always added an extension based on the output format, which caused problems with the absolute filenames used by bash process substitution (e.g./dev/fd/11
). Now, if the template has no extension, pandoc will first try to find it without the extension, and then add the extension if it can’t be found. So, in general, extensionless templates can now be used. But this has been implemented in a way that should not cause problems for existing uses, unless you are using a templateNAME.FORMAT
but happen to have an extensionless fileNAME
in the template search path.Allow
--shift-heading-level-by=-1
to work in djot in the same way it works for other formats (with the top-level heading being promoted to metadata title) (--shift-heading-level-by=-1 doesn't promote the first H1 of djot input #10459). This needed special treatment because of the way djot surrounds sections with Divs.RST reader:
Markdown reader:
pBase64DataURI
in parsing data URIs (Large inline images use a lot of memory #10075, Evan Silberman and John MacFarlane).HTML reader:
LaTeX reader:
figure*
environment as a figure (Figure captions are not rendered for figure* (figure star) LaTeX environment #10472).MediaWiki reader:
+
(Mediawiki to GFM: + in row table results in error #10491).Textile reader:
Docx writer:
--top-level-division=chapter
is used, chapters will start on a new page and footnote numbering will restart for each chapter. Both of these defaults can be overridden in the reference.docx.Markdown writer:
Mediawiki writer:
LaTeX writer:
csquotes
variable (German quotes: csquotes: true in defaults file has no effect #10403).csquotes
(csquotes:true
should wrap block quotes indisplayquote
environments #10456).HTML writer:
Typst writer:
LaTeX/Beamer templates:
nocite
location (Thomas Hodgson). It must be inside a frame or it is ignored (Move nocite #10465).\nocite
in the preamble works only with biblatex.Text.Pandoc.Parsing:
charsInBalanced
(Evan Silberman).Text.Pandoc.Error:
PandocUnknownWriterError
forpdf
(Evan Silberman).Text.Pandoc.MediaBag:
insertMedia
: fast path for data URIs. Avoid the slow URI parser from network-uri on large data URIs (Large inline images use a lot of memory #10075).Text.Pandoc.Class:
downloadOrRead
(Large inline images use a lot of memory #10075). This avoids calling the slow URI parser from network-uri on data URIs, instead calling our own parser.Text.Pandoc.MIME:
extensionFromMimeType
. We had a few special cases encoded, but as previously written they wouldn’t work properly with modifiers like;charset=utf-8
.Text.Pandoc.URI:
pBase64DataURI
. ModifyisURI
to use this and avoid calling network-uri’s inefficientparseURI
for data URIs.Text.Pandoc.PDF:
toPdfViaTempFile
(--pdf-engine=wkhtmltopdf always fails in pandoc 3.6 #10468). This fixes a regression in pandoc 3.6, which changed the extension fromhtml
tosource
. Apparentlywkhtmltopdf
needs it to be.html
. So now we have added a parameter totoPdfViaTempFile
that allows the extension to be specified in a way that is appropriate to the PDF engine used.Lua (Albert Krewinkel):
pandoc.utils.stringify
(pandoc.utils.stringify() behaviour change in pandoc 3.6 #10450). Elements of type Caption, Cell, TableHead, and TableFoot can now be stringified.Caption
constructor topandoc
module.Miscellaneous code quality improvements (Joseph C. Sible).
Depend on citeproc 0.8.1.2, skylighting and skylighting-core 0.14.5.
`doc/lua-filters.md: Fix links to constructors (Albert Krewinkel).
This discussion was created from the release pandoc 3.6.1.
Beta Was this translation helpful? Give feedback.
All reactions