Repository navigation
pandoc 3.13 #12000
jgm
announced in
Announcements
pandoc 3.13
#12000
Replies: 1 comment
|
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.13,
available in the usual places:
Binary packages & changelog:
https://github.com/jgm/pandoc/releases/tag/3.13
Source & API documentation:
http://hackage.haskell.org/package/pandoc-3.13
This release fixes some regressions and makes many minor
improvements. See the changelog for full details.
Behavior changes:
Locations of errors in default files are now reported.
YAML is now parsed with the yamlet library, which implements
YAML 1.2. As a result, we'll get better error messages, and:
yes,no,on,off,yandnare strings, not booleans..5,.infand.nanare numbers.The most likely way this change will bite you is if you use
noin a boolean field. This will be interpreted as a nonemptyvalue, which will be treated as truthy in a template.
API changes:
plainToParaandparaToPlain.wrapColumnsandrendereWithTemplate.readTranslationsnow takes the pathof the file as argument.
Thanks to all who contributed, especially new contributors
Andrzej Rybczak, Patrick Creighton, Wleeaf, and enieuwy.
Click to expand changelog
Report the location of errors in defaults files (Could Aeson exceptions provide more context? #8759, Andrzej Rybczak). An invalid value in a defaults file gave an error at the start of the file, with no indication of the field. The error now names the option and points at its value.
Use yamlet for YAML parsing. Pandoc parsed YAML with the yaml package, which depends on the C library libyaml. It now uses yamlet, a pure Haskell YAML 1.2 parser. Values still go through the existing aeson instances. Note these behavior changes:
yes,no,on,off,yandnare strings, not booleans, as in YAML 1.2..5,.infand.nanare numbers.Docx reader:
w:fldSimplefields (Docx reader: w:fldSimple fields are dropped with their result text #11944, Aslak Hellesøy).w:gridColhas now:wattribute #11989, Patrick Creighton).w:wis optional onw:gridCol, butelemToTblGridskipped the grid columns that had none. The table then had fewer columns than its rows had cells, and the extra cells were dropped. Every grid column is now kept. If any of them has no (readable) width, all columns get the default width.fldCharstate machine, producing empty<li>tags #11943, enieuwy). This fixes a bug that could lead to content being omitted.RST reader:
:,/,',",<(Wleeaf). Fixes a regression since 3.2.1; these characters could no longer precede an inline markup start-string or a bare URI or email address, although the reStructuredText spec allows them. Also implement the rule that a start-character between an opening character and its closing counterpart, as in(*)or"*", does not trigger inline markup.RTF reader:
\uNNNNduring tokenization. This led to an extra character being consumed as the “fallback,” so letters went missing after encoded unicode characters.LaTeX reader:
doMacroscalls (Hangs, unbounded memory consumption when \def\@setfontsize present in LaTeX input #11088).ODT reader:
text:continue-numbering(text:continue-numberingseems to have very weird start numbers. #9595).Markdown writer:
RST writer:
Haddock writer:
Docx writer:
LaTeX writer:
=(LaTeX writer: definition term containing=breaks the build whenpdfstandardis set #11954). This is needed for the new LaTeX list code, which is triggered by usingpdfstandard.PowerPoint writer:
clrMapOvrto notes slides (pptx: Keynote rejects files with speaker notes (notes slide has noclrMapOvr) #11935, Gaurav Vijay Jadhav). This makes them importable by Keynote.langin core document properties.DocBook, JATS, TEI writers:
writerIdentifierPrefixprefix consistently.Typst writer:
...and-?ligatures (Typst writer: a literal-?or...is written unescaped and Typst renders a soft hyphen / an ellipsis #11979).getLangto determine lang and region. Previously only thelangmetadata field was consulted, solangcould not be set properly using a variable.Text.Pandoc.Translations:
readTranslationsnow takes the path of the file, for error messages [API change].Text.Pandoc.Writers.Shared:
wrapColumns,renderWithTemplate[API change]. These factor out code that was repeated in about 20 writers: computing the line length from writerWrapText/writerColumns, and rendering the body with or without the template.Text.Pandoc.Shared:
plainToParaandparaToPlain. [API change]Text.Pandoc.PDF:
--presentational-hintsdefault for weasyprint. This is necessary to get list attributes (start, ordered list type, etc.) working properly (make--pdf-engine-opt=--presentational-hintsdefault for weasyprint #11976).cabal.project:
+httpon GHC >= 9.14 (previously done only in CI), so local builds behave the same;-f-httpstill overrides it.pandoc-cliasghc-options. cabal only passes ld-options along when it finds anldprogram on the PATH. In an environment without one (e.g.nix shellwith just the ghc-wasm-meta toolchain), the flags were silently dropped and linking pandoc.wasm failed with undefinedsetjmpand clock symbols. Use-optl- ghc-optionsinstead, which GHC passes to its linker regardless.Makefile:
releasetarget.make pandoc-templatesso it does the whole job.SHELL(check-cabalusespushd,check-version-syncuses==).$(id -u)indebpkg, which make expanded to empty.echoinvalidate-docx-golden-tests{,2}.git ls-filesforSOURCEFILES, not the main branch’s tree.embed_data_filesflag inquick-stack.Use released citeproc 0.14.1.1, texmath 0.13.3.3, gridtables 0.1.1.1 (Centering cell content in a grid table #9085).
MANUAL.txt:
raw_htmlin commonmark formats (Support raw_html extension in commonmark reader #8305).Bump bounds on crypton, crypton-x509-system, tasty-bench.
Add
tools/circleci-build-release.sh,tools/github-build-release.sh.This discussion was created from the release pandoc 3.13.
All reactions