Update dependency jgm/pandoc to v3.1.11
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
jgm/pandoc | ironbank-github | patch |
3.1.7 -> 3.1.11
|
Release Notes
jgm/pandoc (jgm/pandoc)
v3.1.11
-
Typst writer:
- Emit
;
after typst code, unless followed by space (#9252). Otherwise there's the potential that the typst code will swallow up a following character.
-
Text.Pandoc.Logging:
- Add
MakePDFWarning
constructor to LogMessage [API change]. - Add
MakePDFInfo
constructor to LogMessage [API change].
- Add
-
Text.Pandoc.PDF:
- LaTeX warnings are passed on to the user as warnings.
- Use
report
withMakePDFWarning
andMakePDFInfo
to relay verbose information and warnings, instead of writing directly to stderr. - Parse logs to determine whether additional runs needed, instead of running a fixed number of times (#9255). (The number of times that was appropriate given pandoc's default templates didn't always work for custom templates, and thus pandoc 3.1.10's change in the number of runs led to some regressions in PDF production.)
-
Makefile: in
make prelease
, add checks that pandoc-cli and pandoc have the same version, that pandoc-cli depends on this exact version of pandoc, that there is an entry for this version in the changelog, and that the version numbers in the generated man pages are correct. -
Regenerate man pages with pandoc 3.1.10. This properly escapes hyphens and fixes version numbers in man pages for
pandoc-server
andpandoc-lua
. -
Depend on texmath 0.12.8.6. This omits unneeded
lr
s in typst math output. -
Depend on typst 0.5. This allows the typst reader to support multiline strings, the version type, and the
as
keyword withimport
.
- Emit
v3.1.10
-
Link pandoc-cli version to pandoc version. Henceforth pandoc-cli's version will be synchronized with pandoc's, and pandoc-cli will depend on an exact pandoc version. This will avoid confusion by ensuring that
cabal install pandoc-cli-X.Y.Z
installs pandoc version X.Y.Z. It will make things more straightforward for upstream packagers (see #9232). This scheme does not follow the Haskell PVP, but that should cause no harm, because this package does not expose a library.-
Add
alerts
markdown extension. This enables GitHub style markdown alerts as a commonmark extension. This extension is now default forgfm
. It can't be used withmarkdown
, only withcommonmark
and variants. -
Markdown reader:
-
HTML reader:
-
MediaWiki reader:
- Allow attribute keys with hyphens (#9178).
-
ODT reader:
- Support attr
text:continue-numbering
(#8979, Stephan Meijer).
- Support attr
-
Typst reader:
- Allow references (e.g.
@foo
) to become citations if there is no corresponding label in the document. - Collapse adjacent
cite
elements. - Handle supplements in
cite
. - Change
cite
(only one key allowed, a label) (typst 0.9 breaking change). - Support
quote
element (typst 0.9).
- Allow references (e.g.
-
LaTeX reader:
-
Docx reader:
- Unwrap content of shaped textboxes (Stephan Meijer, #9214).
- Improve handling of
w:sym
(#9220). We now look up symbols in symbol fonts using the table defined at Text.Pandoc.Readers.Docx.Symbols. - Add unexported module Text.Pandoc.Readers.Docx.Symbols. This gives us a
table to use to resolve characters included in docx via
w:sym
element.
-
Man reader:
- Properly handle
.sp
macro inside lists and block quotes (#9201).
- Properly handle
-
LaTeX writer:
-
LaTeX template:
- Include
bookmark
package unconditionally. This package produces better PDF bookmarks thanhyperref
and does it on the first pass.
- Include
-
Typst writer:
- Use
quote
for block quotes. - Support
--toc-depth
as in other writers (#9242). - Put inline image dimensions on enclosing box, not image (#9104).
- Better handling of tables with captions (#9194). We now put these in a figure with a caption argument.
- Update typst writer to typst 0.9 citation format (#9188).
- Use
-
Typst template:
- Remove custom definition of
blockquote
in default template. (We now use built-inquote
.) - Support table of contents.
- Support csl (#9186, Ian Max Andolina). Typst now supports CSL for its
native citation engine, so pandoc should use a specified
csl
style in the template, falling back tobibliographystyle
ifcsl
is not specified.
- Remove custom definition of
-
Docx writer:
-
HTML5 writer:
- To conform to validator's expectations,
doc-footnote
role is used withaside
anddoc-endnotes
withsection
. -
aside
is used only for notes at ends of sections or blocks; if all the notes come at the end of the document,section
is used so we can have thedoc-endnotes
role.
- To conform to validator's expectations,
-
JATS writer:
- Handle case where there is material after refs div (#9166). Previously in such cases the references were not being moved to back matter.
-
Ms writer:
- Don't do normal escapes in filename arguments for PSPIC etc.
-
T.P.RoffChar: escape
-
as\-
. Thegroff_man (7)
man page indicates that-
characters will be treated as typographic hyphens and are not appropriate for cases where the output should be copy-pasteable as an ASCII hyphen-minus character. (E.g. in command line options.) However, until a recent update groff man did not actually do this; it treated-
and\-
the same. With the new update (1.23.0) the two are distinguished (see https://lwn.net/Articles/947941/ for background), so now it is important that pandoc escape-
. -
Text.Pandoc.Extension: add
Ext_alerts
constructor [API change]. -
Text.Pandoc.PDF: We now default to running LaTeX only once in producing a PDF (instead of twice). This is made possible by the shift to the
bookmark
package, which does not require a second pass for PDF bookmarks. If a table of contents is present, we still have to run three times to get the page numbers, and if beamer is used we still do a minimum of two runs. -
Text.Pandoc.Shared:
-
renderTags'
: use minimized tag forrect
. - Allow svg
path
element to be minimized. - Export
combineAttr
[API change]. - Improve
isTightList
so that it recognizes an item containing only a list which is itself tight as potentially an item in a tight list (#9161).
-
-
Text.Pandoc.MIME: Ensure we use
.svg
not.svgz
as extension forimage/svg+xml
mime type. This fixes issues with embedded SVG images in docx output, among other things (#9195). -
Text.Pandoc.Class:
openURL
improvements for data uris. Only treat data URI asbase64
if ';base64' is specified. Otherwise treat as UTF-8 (not 100% reliable but should cover most other cases). Strip off;base64
(or;charset=...
or whatever) from mime type (#9195). -
Text.Pandoc.SelfContained: Improve treatment of embedded SVGs (#9206, #8948).
- Ensure unique ids for elements by prefixing SVG id.
- Ensure SVG
id
attribute except whenuse
element is used. - Remove
width
,height
attributes from svg element whenuse
element is used. Instead, addwidth
andheight
100% to theuse
element. This seems to get the sizing right.
-
Text.Pandoc.Citeproc: Don't link citations if
suppress-bibliography
specified, for there will be nothing to link to (#9163). -
epub.css: add styling for sup and sub (#9160).
-
Switch from
base64
tobase64-bytestring
(#9233). -
Use newest versions of commonmark, commonmark-extensions, commonmark-pandoc, texmath, typst, skylighting, skylighting-core.
-
Benchmark: use standalone documents for reader tests. Otherwise typst reader benchmark fails. Note: this means that we are now parsing longer documents, so bench results on readers won't be comparable to before.
-
MANUAL.txt: update defaults file docs for bibliography fields (#9173). Recommend using top-level
bibliography
csl
, etc. instead of a nestedmetadata
field. Reason:${USERDATA}
and${HOME}
are only expanded in these contexts, not inmetadata
. -
Move man pages to pandoc-cli package (#9245).
-
v3.1.9
-
Make
reference-section-title
work withjats+element_citations
(#9021).-
Add
bits
as synonym ofjats
as input format. -
JATS reader:
- Modify JATS reader to handle BITS too (#9138, Julia Diaz). Add provision for title-group, book, book-part-wrapper, book-meta, book-part-meta, book-title, book-title-group, index, toc, legend, title, collection-meta
- Fix handling of alt-text (#9130, Julia Diaz). Previously we were looking for an attribute that doesn't exist in JATS; alt-text is provided by a child element.
-
CommonMark reader:
- Handle
Ext_tex_math_gfm
(#9121). Parse GFM-specific math constructions whentex_math_gfm
enabled.
- Handle
-
DokuWiki reader:
-
LaTeX reader:
-
Markdown reader:
- Fix blindspot with superscript in links (#8981).
Previously
[^super^](#ref)
wasn't parsed as a link, due to code that was meant to prevent footnote markers from being recognized as reference links. This commit tightens up that code to avoid this bad effect. We have also added a new restriction on footnote labels: they cannot contain the characters^
,[
, or]
. Though this is technically a breaking change, we suspect that the impact will be minimal, as it's very unlikely people would be using these characters in their note labels. - Don't apply
--default-image-extension
to data URIs (#9118). - More accurate check that a normalCite is not a link, bracketed span, or reference (#9080).
- Fix blindspot with superscript in links (#8981).
Previously
-
HTML reader:
-
Creole reader:
- Handle empty cells correctly (#9141, Sascha Wilde).
-
Org writer:
- Escape literal
*
,|
,#
at beginning of line with ZWS (#9159).
- Escape literal
-
ICML writer:
- Prevent doubled attributes (#9158).
-
Powerpoint writer:
- Fix a corruption error caused when the document used both a
regular png and a png in a data URI (#9113). (Similarly for any
other image format.) The problem was that duplicate entries in
[Content Types].xml
were being created, one for the mime typeimage/png
, one forimage/png;base64
.
- Fix a corruption error caused when the document used both a
regular png and a png in a data URI (#9113). (Similarly for any
other image format.) The problem was that duplicate entries in
-
LaTeX writer:
-
JATS writer: fix 3.1.4 regression in handling block-level metadata (#9092).
-
Ms writer: improvements in image handling (#4475).
- PDFPIC is now used for PDF images in figures.
- Inline images that are postscript or PDF are rendered using PSPIC or PDFPIC. This isn't ideal, because they will still be rendered as if in a separate paragraph, but it's probably better than just printing the image name.
- Units are included in height.
-
HTML writer:
- If raw format is an HTML side deck format, emit it (James J Balamuta).
-
Typst writer:
- Add
#box
around image to make it inline. (#9104) An#image
by itself in typst is a block-level element. To force images to be inline (as they are in pandoc), we need to add a box with an explicit width. When a width is not given in image attributes, we compute one from the image itself, when possible. - Don't allow long heading to wrap (#9132).
- Escape
(
(#9137). If unescaped(
occurs in certain contexts, it can be parsed as function application.
- Add
-
Man writer:
-
Text.Pandoc.Extensions:
- Add
Ext_tex_math_gfm
constructor to Extension (#9121). [API change]. This handles two GitHub-specific syntaxes for math. This is now default forgfm
, in addition totex_math_dollars
. - Remove duplicates for
Ext_raw_html
andExt_pipe_tables
in some of the lists (Tim Stewart).
- Add
-
Text.Pandoc.Metadata: Add helpful message on some metadata YAML errors (#9155).
-
Text.Pandoc.Shared:
-
splitSentences
: don't split after initials. This improves the man and ms writer output, preventing sentence breaks after initials. - Add
addPandocAttributes
function [API change]. This is meant to simplify addition of attributes to Pandoc elements: for elements that don't have a slot for attributes, an enclosing Div or Span is added to hold the attributes.
-
-
MANUAL.txt:
-
Update
et
translations (priiduonu). -
Updated
no
translations (Stephan Daus). Renamed no.yaml (macrolanguage Norwegian) to nb.yaml (Norwegian Bokmål). Created soft symbolic link from no.yaml pointing to nb.yaml. -
Lua subsystem: Use the newest LPeg version (lpeg-1.1.*) (#9107, Albert Krewinkel).
-
Default
epub.css
: Apply style to h6, format styles, and combine identical styles under shared selectors (samuel-weinhardt). -
Update nix flake with dependencies (piq9117).
-
LaTeX template: fix
\CSLBlock
vertical space (John Purnell). -
Allow tasty 1.5 and Diff 0.5.
-
Require commonmark-extensions 0.2.4, commonmark 0.2.4.
-
Require texmath 0.12.8.4. This should improve math in powerpoint, fixing empty boxes around roots in some cases.
-
Require typst 0.3.2.1
-
v3.1.8
-
JATS reader:
- Ignore
<processing-meta>
element (#9057, Julia Diaz). - Fix conversion of date to ISO 8601 format (#8865).
-
LaTeX template:
- Add code allow
\cite
to break across lines (#9050). - Fix regression with CSL
display="block"
(#7363). This restores the line break before the block. - Rewrite
CSLReferences
environment to avoid depending onenumitem
, which plays badly with beamer. Instead we use a regular list environment. Thanks to @jpcirrus for the concept (#9053). - Restore the pre-3.1.7 format of the
CSLReferences
environment, which again has two parameters. The first determines whether a hanging indent is used (1 = yes, 0 = no), and the second is the entry line spacing (0 = none). - Add a strut to avoid inconsistencies in spacing (#9058).
- Remove a break at the end of
CSLRightInline
to avoid inconsistencies in spacing. It shouldn't be necessary because the paragraph should extend to the right margin (#9058).
- Add code allow
-
LaTeX writer:
-
HTML writer:
-
Text.Pandoc.Citeproc: always include an
entry-spacing
attribute in the Div if the bibliography element contains an entry-spacing attribute (previously we omitted it when it was 0) (#9058). -
Clean up pandoc's own man pages by regenerating with pandoc 3.1.7.
-
pandoc-lua-engine: bump lower bound for pandoc (#9046).
-
Depend on texmath 0.12.8.2, fixing binom in typst writer (#9063).
- Ignore
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.