pandoc 3.5 #10262
jgm
announced in
Announcements
pandoc 3.5
#10262
Replies: 2 comments
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Unofficial and untested Linux/RISC-V 64-bit ( |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Click to expand changelog
Add command-line options
--list-of-figures/--lof
and--list-of-tables/--lot
(implement lof and lot for docx #10029, Akash Patel). Only docx, latex, and context are affected by these options currently. Setting thelof
andlot
variables will also work for the formats that are currently supported.Defaults files: interpolation of environment variables now works for
to
andfrom
fields ([bug]:defaults
in default YAML does not interpolate${.}
#8024). This is needed because these files can contain paths of custom readers/writers.Docx reader:
numId
(Convert DOCX to Markdown: Ordered List in Markdown keeps increasing across headings #10258). To accomplish this, we add a Heading constructor to BodyPart and include on it all the information list items have.DocBook reader:
Dokuwiki reader:
--
and---
as dashes.EPUB reader:
#foo
, but not to handle links likech0001.html#foo
.LaTeX reader:
ANSI writer:
DokuWiki writer:
<HTML>
tags (Dokuwiki output: List elements with double line breaks fall back to HTML #7413). The use of these tags is now strongly discouraged for security reasons, and will be removed. We previously used them as a fallback for lists that could not be represented using DokuWiki syntax, e.g. ordered lists with fancy numbers or lists with multiple blocks in their items. We also used them for block quotes with multiple blocks as their contents. We now use the<WRAP>
syntax (from the optional WRAP plugin) to handle lists with multiple blocks as their contents. A new method of handling block quotes with complex contents has the side benefit of also handling nested block quotes, which weren’t supported before.<HTML>
and<html>
tags are only for raw HTML blocks and inlines, and only if theraw_html
extension is enabled. (It is now a valid extension fordokuwiki
, though off by default.)Docx writer:
--list-of-figures
and--list-of-tables
(orlof
andlot
variables) (Akash Patel).HTML writer:
pagetitle
orlang
variables respectively (pandoc does not set<title>
despite emittingDefaulting to '<basename>' as the title.
#9370).LaTeX writer:
\item[]
to the beginning of a list that occurs first in a definition list, to avoid having one item on the line with the label. This gave bad results in some cases (Fix for "spacing issue with list in definition list" is confused if the list item starts with a Div #10241) and there is a more idiomatic solution anyway: using\hfill
.refs
div with empty citations (Document without citation doesn't get compiled #10185). If there are no citations, don’t emit an empty CSLReferences environment.RST writer:
.. table::
; this leads to doubled captions (rst writer with --list-tables=true: table with caption as input is getting two captions in the rst output #10226).JATS template:
floats-group
(Albert Krewinkel, see generate JATS xml with "floating" figures and tables #10196). The content of thefloats-group
variable is now rendered in a<floats-group>
element when using the publishing or archiving tag sets.LaTeX and Beamer templates:
default.latex
anddefault.beamer
, factoring common parts into partials:fonts.latex
,common.latex
,passoptions.latex
,hypersetup.latex
,after-header-includes.latex
.default.beamer
the default template for beamer.shorttitle
,shortsubtitle
,shortauthor
,shortinstitute
,shortdate
variables to beamer template (Short title and short author for beamer slides #10248, Thomas Hodgson).--number-sections
work with beamer (#12045, Thomas Hodgson).titlegraphic
in beamer template (Support a list of images for titlegraphic #10246, Thomas Hodgson). Title graphic options will be applied to each title graphic. Images will be separated by\enspace
.colorthemeoptions
,fontthemeoptions
,innerthemeoptions
,outerthemeoptions
(Beamer theme options #10243, Thomas Hodgson).Text.Pandoc.SelfContained:
Text.Pandoc.Class:
data:
URIs even in PandocPure (--sandbox
) (Pandoc Sandbox and Embedded Data URIs for Images #10249).extractURIData
[API change].Text.Pandoc.PDF:
.toc
and.log
files from output directory (Markdown to PDF: the output-directory option of pdf-engine breaks the pandoc re-run it #10186). When this is different from the input directory, this is where.toc
and.log
files are written.Text.Pandoc.Shared:
addPandocAttributes
for changes in commonmark-pandoc. The new commonmark-pandoc version automatically adds the attributewrapper="1"
on all Divs and Spans that are introduced just as containers for attributes that belong properly to their contents. So we don’t need to add the attribute here. This gives much better results in some cases. Previously the wrapper attribute was being added even for explicit Divs and Spans in djot, but it is not needed in these cases.Text.Pandoc.Options:
writerListOfFigures
andwriterListOfTables
fields toWriterOptions
(Add a lof and lot options to docx output #8245, Akash Patel). [API change]Text.Pandoc.App:
optListOfFigures
andoptListOfTables
toOpt
(Add a lof and lot options to docx output #8245) [API change].Lua subsystem (Albert Krewinkel):
Update List module (Lua: let List constructor split string argument on whitespace #9835). The module now comes with a method
:at(index[, def])
that allows to access indices, accepts negative indices to count from the end, and will return thedef
value as a default if the list has no item at the given position. Furthermore, the list constructorpandoc.List
now accepts iterators. E.g.,pandoc.List(text:gmatch '%S+')
returns the list of words intext
.Support character styling via
pandoc.layout
. TheDoc
values produced and handled by thepandoc.layout
module can now be styled usingbold
,italic
,underlined
, orstrikeout
. The style is ignored in normal rendering, but becomes visible when rendering to ANSI output. Thepandoc.layout.render
function now takes a third parameter that defines the output style, either plain or ansi.It is now possible to return a single filter from a filter file, e.g.
The filter must not contain numerical indexes, or it might be treated as a list of filters.
Add
list_of_figures
andlist_of_tables
to writer options (Akash Patel).Use latest releases of commonmark, commonmark-pandoc, texmath, djot.
Stop depending on package SHA (Albert Krewinkel). Use
crypton
instead.linux/make_artifacts.sh
: add riscv64 support (Olivier Benz).Fix invalid XML in
test/docx/normalize.docx
(test/docx/normalize.docx
contains invalid xml #10242).doc/lua-filters.md
: list functions inpandoc.utils
alphabetically (Albert Krewinkel).MANUAL.txt:
beamerarticle
variable (Makebeamerarticle
easier to use #10250).This discussion was created from the release pandoc 3.5.
Beta Was this translation helpful? Give feedback.
All reactions