Repository navigation
pandoc 3.12.1 #11948
jgm
announced in
Announcements
pandoc 3.12.1
#11948
Replies: 2 comments
|
Unofficial Linux/RISC-V (64-bit, |
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.
I'm pleased to announce the release of pandoc 3.12.1,
available in the usual places:
Binary packages & changelog:
https://github.com/jgm/pandoc/releases/tag/3.12.1
Source & API documentation:
http://hackage.haskell.org/package/pandoc-3.12.1
Notable changes:
New input and output format:
fodt(a flattened representationof an ODT in a single XML file).
With
--citeproc, we no longer extract particles from given and familynames in structured CSL JSON or CSL YAML references. Thus, for
example,
family: de Gaulleshould not create a non-droppingparticle "de"; "de Gaulle" should be considered the integral
family name. This is a behavior change that could affect some
bibliography processing.
Fixed a regression in keyword resolution with
--syntax-definition.Fixed a serious regression in escaping of data URIs (Pandoc 3.12 failed to render slidy, when Pandox 3.11 works #11942), which
broke
--embed-resources.Fixed reveal.js version to align with plugin changes from 3.12.
Fixed a Markdown reader regression that led to "alerts" not working
properly.
Fixed a regression in rendering of abstracts in ODT.
Big performance improvements for XML-based writers and the org,
man, Textile, MediaWiki, and docx readers.
API changes:
Add
readFODTto Text.Pandoc.Readers.ODT.Add
writeFODTto Text.Pandoc.Writers.ODT.Thanks to all who contributed, especially new contributors
Aslak Hellesøy, Erik Demaine, Raffaele Mancuso, Kyohei Takahashi,
and rca-umb.
Click to expand changelog
New input and output format:
fodt(Flat ODT (OpenDocument) reader #4010). This is ODF’s “flat” representation of a text document: a single XML file instead of a zip package (ODT). It supports the same options asodt, including--reference-doc(which should be a zippedodt) and--link-images.Resolve keywords after loading a syntax definition (Keywords not resolved in syntaxes provided via --syntax-definition #11921, Behaviour of <include> in <list> for syntaxes provided using --syntax-definition depends on the order of the arguments #11923). This fixes a 3.12 regression in
--syntax-definitionthat was due to a change in skylighting. As the skylighting changelog indicates, users must now applyresolveKeywordsafter parsing a syntax definition.With
--citeproc, we no longer extract particles from given and family names in structured CSL JSON or CSL YAML references (Particles in family names are not kept in place #11911). Thus, for example,family: de Gaulleshould not create a non-dropping particle “de”; “de Gaulle” should be considered the integral family name. This is a behavior change that could affect some bibliography processing.Commonmark reader:
commonmark_x. Previouslytask_listswould not work iffancy_listswas enabled, for anycommonmarkvariant.Markdown reader:
alertaftertip, etc. in classes (Markdown reader:alertclass added in 3.12 breaks alert output in gfm, DocBook, AsciiDoc and RST writers #11919). Some of the writers (gfm, docbook, asciidoc, rst) check for the admonition name as the first class, so the change puttingalertfirst broke the output. (Regression from 3.12.)[ test ]{.class}. This behavior has no good rationale, and it made it impossible to represent insertions and deletions properly.Docx reader:
w:dstrikewas not parsed at all, so text marked with Word’s double strikethrough was read as plain text, with no indication that it had been struck out. Treat it as Strikeout.ODT reader:
getStyleFamilylinear in the inheritance depth. A style whose family had to be inherited took time exponential in the chain length.text:s.text:cis unbounded in ODF, so<text:s text:c="200000000"/>let an 832-byte document allocate until the OOM killer stepped in.uniqueIdentFrom.post_process'matched a table followed by a caption only at the very head of the block list and then stopped, so a caption was picked up only if its table was the first block of the document; anywhere else the caption was dropped and the internal marker Div leaked into the output. Walk the whole document instead, so captions nested in sections, cells and list items are found too. Accept the caption before its table as well as after it.fo:font-weightfrom 100 to 900 was mapped to bold, so text in a hairline or light weight was read as Strong.text:page-number,text:author-nameortext:chapter, the RDFa wrappertext:meta, the bibliographic wrappertext:meta-field, and ruby annotations. Add matchers for those; for ruby, keep the base text and drop the gloss, which pandoc cannot represent.table:number-{columns,rows}-repeated. ODF abbreviates a run of identical cells or rows with a repeat count. The reader ignored both counts, so a row of five cells written as three elements came out three cells wide. Also count a cell spanning several columns as occupying all of them when working out the number of columns, rather than as one.table:table-row-group. Rows need not be immediate children of the table.office:binary-data.draw:object. A flat OpenDocument file cannot refer to a separate formula document, so the MathML is a descendant of the draw:object instead.readFODTfor flat OpenDocument input [API change].draw:imageelement instead of guessing from magic bytes.RTF reader:
Typst reader:
autoif any column is default width.Org reader:
inline.Creole reader:
takeWhile1Pinstr.RST reader:
takeWhile1Pfor raw field list items.Textile, Vimwiki, MediaWiki, Txt2Tags readers:
Roff readers:
takeWhile1PforregularText.Mdoc reader:
takeWhile1Pin lexer.Docx writer:
idin thetblStyleelement (DOCX writer: resolve table custom-style names to style IDs consistently with paragraph styles #11932). Previously we used the table stylename. This happened to work for the default table style, but only because its name and id matched. It failed for custom styles whose names did not match their ids.markedspans containing math (Docx writer: highlight math runs in marked content #11885, Samuel Huang).OpenDocument writer:
literalinstead oftext . T.unpack.AA,AB, etc.).Plainblocks.withParagraphStyleonly wrappedParain a paragraph with the requested style; aPlainfell through toblockToOpenDocumentand came out with the default style.custom-styleset toAbstract, but then handed tometaToContext, which renders metadata fields with the inline writer. The style was lost, as well as any block-level formatting. Regression from 013351f.Pnautomatic style, even when an identical one already existed.xrefs_nameorxrefs_numberis enabled, since nothing reads the result otherwise and neither is on by default. Elements with an empty identifier are no longer collected, so a link to “#” can no longer resolve to a reference with an empty ref-name.T9,T10, …).ODT writer:
content.xmlwith a template.writeOpenDocumentreturns a bare body fragment when writerTemplate is Nothing. This is needed mainly for thefodtwriter.pandocToODTreturn an Archive instead of a ByteString. This lets an alternative entry point post-process the archive.writeFODTfor flat OpenDocument output [API change].LaTeX writer:
--wrap=auto#11924).Commonmark writer:
Typst writer:
block. The blank line actually is semantically significant; without it, styling ofparwill have no effect.hanging-indentandentry-spacingin CSL bibliography entries (Typst writer ignores CSL hanging-indent #11926). Instead of hard-coding the formatting in the block, we use a show rule on<refs>, included conditionally by the default template. Values will be set forcsl-hanging-indentandcsl-entry-spacingbased on the CSL style, but these variables can be overridden on the command line using--variable. It is also possible to include a new show rule in header-includes, which will take priority over the other.Markdown writer:
<..>around link or image destinations containing spaces (rca-umb).Text.Pandoc.XML:
escapeStringForXMLandescapeNlsmore efficient.Text.Pandoc.SelfContained:
--embed-resourcesno longer worked properly.Text.Pandoc.Parsing:
mathDisplay,mathInline: respect TeX groups and comments (Math: respect TeX groups and comments. #11887, Erik Demaine). Prevent math delimiters inside TeX brace groups and percent comments from prematurely closing an equation.Text.Pandoc.XML.Light:
parseXMLContentsWithEntities, which folds the event stream directly into our types. This speeds up every XML-based reader. Behavior change: Attributes now preserve document order instead of being sorted alphabetically, as was already the case forparseXMLContentsWithEntities.Bump version of reveal.js to 6. Version 6 is required for the changes in plugin locations incorporated in pandoc 3.12.
reference.docx: don’t make Table stylesemiHidden(DOCX reference document: make the default Table style visible in Word #11931). This allows it to appear in the table styles gallery.Benchmark improvements:
Use latest citeproc, texmath.
This discussion was created from the release pandoc 3.12.1.
All reactions