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
Uh oh!
There was an error while loading. Please reload this page.
-
Click to expand changelog
Add command-line options
--list-of-figures/--lofand--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 thelofandlotvariables will also work for the formats that are currently supported.Defaults files: interpolation of environment variables now works for
toandfromfields ([bug]:defaultsin 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_htmlextension is enabled. (It is now a valid extension fordokuwiki, though off by default.)Docx writer:
--list-of-figuresand--list-of-tables(orlofandlotvariables) (Akash Patel).HTML writer:
pagetitleorlangvariables 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.refsdiv 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-groupvariable is now rendered in a<floats-group>element when using the publishing or archiving tag sets.LaTeX and Beamer templates:
default.latexanddefault.beamer, factoring common parts into partials:fonts.latex,common.latex,passoptions.latex,hypersetup.latex,after-header-includes.latex.default.beamerthe default template for beamer.shorttitle,shortsubtitle,shortauthor,shortinstitute,shortdatevariables to beamer template (Short title and short author for beamer slides #10248, Thomas Hodgson).--number-sectionswork with beamer (#12045, Thomas Hodgson).titlegraphicin 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:
.tocand.logfiles 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.tocand.logfiles are written.Text.Pandoc.Shared:
addPandocAttributesfor 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:
writerListOfFiguresandwriterListOfTablesfields toWriterOptions(Add a lof and lot options to docx output #8245, Akash Patel). [API change]Text.Pandoc.App:
optListOfFiguresandoptListOfTablestoOpt(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 thedefvalue as a default if the list has no item at the given position. Furthermore, the list constructorpandoc.Listnow accepts iterators. E.g.,pandoc.List(text:gmatch '%S+')returns the list of words intext.Support character styling via
pandoc.layout. TheDocvalues produced and handled by thepandoc.layoutmodule 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.renderfunction 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_figuresandlist_of_tablesto writer options (Akash Patel).Use latest releases of commonmark, commonmark-pandoc, texmath, djot.
Stop depending on package SHA (Albert Krewinkel). Use
cryptoninstead.linux/make_artifacts.sh: add riscv64 support (Olivier Benz).Fix invalid XML in
test/docx/normalize.docx(test/docx/normalize.docxcontains invalid xml #10242).doc/lua-filters.md: list functions inpandoc.utilsalphabetically (Albert Krewinkel).MANUAL.txt:
beamerarticlevariable (Makebeamerarticleeasier to use #10250).This discussion was created from the release pandoc 3.5.
Beta Was this translation helpful? Give feedback.
All reactions