pandoc 3.2.1 #9912
jgm
announced in
Announcements
pandoc 3.2.1
#9912
Replies: 2 comments 4 replies
-
Wow, DOCX writer supporting template files is awesome stuff!!! |
Beta Was this translation helpful? Give feedback.
0 replies
-
I also agree that the improvements in this version of pandoc are really important. Why is it not numbered as a (at least) "minor" change in the version (i.e. 3.3)? I understand that there is a criteria for changes but it is not clear to me what it is. Congratulations to the team for all the progress! |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Click to expand changelog
Fix
gfm_auto_identifiers
to replace emojis with their aliases, as documented (Commonmark_x: Issue with generating `gfm_auto_identifiers` #9876).CSV reader:
Docx reader:
"left"
value onjc
attribute.HTML reader:
li
elements inul
andol
(Leak in HTML parsing #9809). For example, ap
after a closedli
will be incorporated into the previousli
. This mirrors what browsers do with this invalid HTML.LaTeX reader:
.
, e.g.\kern.1pt
(Behavior of \kern in conversion from LaTeX #9902).Markdown reader:
-@reese2002
outside of brackets.RST reader:
:cite:
role with citeproc (Support--citeproc
in reStructuredText #9904). A subset of the functionality of the sphinxcontrib-bibtex extension to Sphinx is supported.Textile reader:
Texinfo writer:
@ref
.Texinfo template: add variables for filename and version.
Typst reader:
Fix an incomplete pattern match (Typst: Strong emphasis function cannot take multiline variable #9807).
Handle inline bodies ending in a parbreak. E.g.
ConTeXt template: remove
\setupbackend[export=yes]
(ConTeXt backend crashes unnecessarily #9820).Docx writer:
jc
attribute on table cells with AlignDefault (Docx writer: Don't force table cells to be left-aligned #5662).id
in a bookmark (Add support for implicit_header_references to chunkedhtml #8662).w:r
(Feature Request: Support for East Asian Language Tags in DOCX Output #9817). We do this when the text in the run contains any CJK characters. This ensures that ambiguous code points (e.g. quotation marks) will be represented as “wide” characters when together with CJK characters.docx
(Support --include-before-body and --include-after-body with DOCX writer #8338, Introduce skiptitlepage for docx output #9069, Support more advanced customization via template syntax for docx #7256, Front Page before TOC in docx #2928). The--reference-doc
option allows customization of styles in docx output, but it does not allow one to adjust the content of the output (e.g., changing the order in which metadata, the table of contents, and the body of the document are displayed), or adding boilerplate text before or after the document body. For these changes, one can now use--template
with an OpenXML template. (See the defaultopenxml
template for a sample.)--include-before-body
and--include-after-body
can also now be used withdocx
output. The included files must be OpenXML fragments suitable for inclusion in the document body.HTML writer:
Ensure URI escaping needed for
html4
(URL & Unicode characters #9905). Unicode characters need not be escaped for html5, and still won’t be.Don’t emit unnecessary classes in HTML tables (Don't emit unnecessary classes in HTML tables #9325, Thomas Soeiro). Pandoc used to emit a
header
class on thetr
element that forms the table header. This is no longer needed, becausehead > tr
will do the same thing. Similarly, pandoc used to emiteven
andodd
classes ontr
s, allowing striped styling. This is no longer needed, because one can use e.g.tbody tr:nth-child(2n)
.Compatibility warning: users who relied on these classes to style tables may need to adjust their CSS.
JATS writer:
supplementary-material
in metadata forjats_articlepublishing
(Pandoc Full Support For JATSXML Specification? #9818).LaTeX writer:
\includesvg
(see Large SVGs are rendered incorrectly in latex output #9660). The new approach uses a new macro\pandocbounded
that is now defined in the LaTeX template. (Thanks here to Falk Hanisch in includesvg incompatible with setkeys{Gin} mrpiggi/svg#60.) The LaTeX writer has been changed to enclose\includegraphics
and\includesvg
commands in this macro when they don’t explicitly specify a width or height. In addition, the writer now addskeepaspectratio
to the\includegraphics
or\includesvg
options ifheight
is specified without width, or vice versa. Previously, this was set in the preamble as a global option. Users should attend to the following compatibility issues:\pandocbounded
macro, or an error will be raised because of the undefined macro.keepaspectratio
, even when width and height were both specified, so images with width and height specified that do not conform to their intrinsic aspect ratio will appear differently.selnolig
and only include it ifenglish
orgerman
is used (Regression for LuaLaTeX: ligatures not suppressed anymore #9863). (This includes changes to the LaTeX template.) This should restore proper ligature suppression when lualatex is used.--toc-depth
with beamer output (The command --toc-depth doesn't change the depth (md->pdf) #9861). Previously only top-level sections were ever included in the TOC, regardless of the setting of--toc-depth
.\linewidth
instead of\columnwidth
or\textwidth
for resizing figures, table cells, etc. in LaTeX (Using\linewidth
instead when converting img/table to latex #9775).\linewidth
, unlike the others, is sensitive to indented environments like lists.LaTeX template: put
babel-lang
in options to beamer (Beamer language #9868). This is required to make beamer use proper localized terms for things like “Section.”Markdown writer:
implicit_figures
.Typst writer:
typst:no-figure
class is present on a Table, the table will not be placed in a figure. If thetypst:figure:kind
attribute is present, its value will be used for the figure’skind
(Typst - do not hardcode#figure()
in Table writer? #9777). These features are documented indoc/typst-property-output.md
.Typst template:
Textile writer:
tr
(Don't emit unnecessary classes in HTML tables (#9325) #9376).Text.Pandoc.Class:
fillMediaBag
: Convert IOErrors to warnings when fetching absolute paths (PandocMonad: convert IOErrors to warnings when fetching absolute paths #9859, Albert Krewinkel). This will allow many conversions that would have failed with an error to succeed (albeit without images or other needed resources).Text.Pandoc.ImageSize:
Text.Pandoc.SelfContained:
<svg>
elements for SVG images when the image has the classinline-svg
. Otherwise just use adata
URI as we do with other images (Optionally embed SVG as data URI instead of inlining? #9787).Lua subsystem (Albert Krewinkel):
Init
,Module
, andRun
.pandoc.utils.run_lua_filter
(Lua: add functionpandoc.utils.run_lua_filter
#9803).pandoc.template.get
(Lua support for resolving files in the data directory #9854, co-authored by Carsten Gips). The function allows to specify a template with the same argument value that would be used with the--template
command line parameter.PANDOC_STATE
global is merely a copy; unsetting the global no longer breaks the Lua engine.run_lua_filter
. The default is now to use a copy of the global environment when running a filter; this ensures better separation whenrun_lua_filter
is used multiple times. A custom environment can be specified via the optional third parameter.pandoc.List
as default metatable for JSON lists (Pandoc.List type in Lua filter causes incorrect JSON encoding #9834). Lists created bypandoc.json.decode
now behave like lists generated viapandoc.List
. This also ensures thatpandoc.List
tables are encoded as JSON arrays when passed topandoc.json.encode
.Text.Pandoc.Writers.Shared: export
toTaskListItem
[API change].Add unexported module Text.Pandoc.Char. This exports
isCJK
. Use this instead of locally definedisCJK
in T.P.Readers.MediaWiki.MANUAL.txt:
-i
(Update MANUAL.txt to remove false info on Lua mode not supporting -i #9757, Ian Max Andolina).option--reference-doc
.columns
(Is setting "width" in two-columns layout in PowerPoint really supported? #9890).babelfonts
example code (Albert Krewinkel).doc/custom-writers.md
:Writer.Blocks
(Albert Krewinkel).doc/lua-filters.md
(Albert Krewinkel):pandoc.template
andpandoc.layout
.pandoc-lua-engine: depend on pandoc >= 3.2 (see pandoc-lua-engine-0.2.1.5 failed to build in stackage nightly #9755).
Allow crypton-connection 0.4, time 1.14.
Allow tasty-quickcheck 0.11.
Use latest emojis, skylighting, skylighting-core, citeproc, djot, commonmark-extensions, typst-hs
This discussion was created from the release pandoc 3.2.1.
Beta Was this translation helpful? Give feedback.
All reactions