Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
3.5
->3.6
Release Notes
jgm/pandoc (pandoc)
v3.6
Compare Source
Add
mdoc
as input format (Evan Silberman). This changeintroduces a reader for mdoc, a roff-derived semantic markup
language for manual pages. This reader has been developed almost
exclusively against mandoc's documentation and implementation of
mdoc as a reference, and the real-world manual pages tested
against are those from the OpenBSD base system. Of ~3500 manuals
in mdoc format shipped with a fresh OpenBSD install, 17 cause the
mdoc reader to exit with a parse error. Any further chasing of
edge cases is deferred to future work.
New module: Text.Pandoc.Readers.Mdoc, exporting
readMdoc
[API change].Issue warnings for duplicate YAML metadata keys (#10312).
Ensure that
--sandbox
affects--embed-resources
. Previously itdid not (contrary to what was implied by the manual), which means
that an image with URL
/etc/passwd
would leak an encoded versionof that file to HTML output with
--self-contained
or--embed-resources
, even if--sandbox
was used. Thanks toSamuel Mortenson for pointing out the issue.
Text.Pandoc.App.OutputSettings: add
sandbox'
function.This computes the sandboxed files from Opt and avoids code repetition.
Docx reader:
Attributes included are
entry
, and optionallybold
,italic
,yomi
,see
.If there are multiple paragraphs with Title or Subtitle style,
use only the first for metadata.
itemData
has different id from thecitationItem
id. In this case we use thecitationItemId
in the bibliography as well, overriding the
referenceId
in the itemData (#10366).
LaTeX reader:
HTML reader:
MediaWiki reader:
Typst reader:
underparen
,overparen
.#quote
attribution. If attribution is not present, don't printthe
--
(#10320).Commonmark reader:
implicit_figures
should check for empty captionand not produce an implicit figure in this case (#10429).
RST reader:
where we collect reference definitions, we create links with target
##SUBST##something
or##REF##something
or##NOTE##something
,and resolve these in a pass over the parsed AST. This allows us to handle
link references that are not at the top level (#10281).
:file:
on raw directive (#8584).just as with markdown input. MetaBlocks is still used when there are
multiple paragraphs or non-paragraph content.
This change also affects field lists.
|Python|_
.Go to `g`_ `g <www.example.com>`_.
should produce two links towww.example.com.
EPUB writer:
(#10404). This avoids problems with e.g. filenames containing spaces.
Markdown writer:
raw_html
isdisabled and the table can't be fit into a supported markdown table
format (#10407).
plain
output (Evan Silberman).The plain writer behaved as a markdown variant with
Ext_line_blocks
turned off, and so empty lines in a line block would get eliminated.
LaTeX writer:
Ensure that beamer footnotes go on frame, not column (#5769).
HTML writer:
Divs are unwrapped if the only purpose of the div seems to be to control
whether lists are presented incrementally on slides.
Typst writer:
page-numbering
variable (#10370).This can be set to an empty string (or, in metadata, to false) for
no page numbers.
smart
extension work (#10271). Ifsmart
is not enabled, a commandin the default template will disable smartquote substitutions.
When
smart
is enabled, render curly apostrophes as straightand escape straight apostrophes. When
smart
is disabled,render curly apostrophes as curly and don't escape straight
apostrophes. Similarly for quotes, em and en dashes. This should
give more idiomatic typst output, with fewer unnecessary
escapes.
ANSI writer:
JATS writer:
Typst template:
definitions.typst
partial.endnote
.default.typst
.earlier version of typst, an error will be raised.
LaTeX/Beamer template:
fonts.latex
partial into two parts:fonts.latex
andfont-settings.latex
.fonts.latex
andfont-settings.latex
. This allows a theme (such as metropolis)to set its own default font, while still allowing the user to
override it. This fixes a regression in pandoc 3.5 (#10297).
need to add
font-settings.latex()
afterfonts.latex()
in thelatex template. In a beamer template, the beamer theme-setting
code needs to be moved between these two partials.
ConTeXt template: Ensure that font names don't wrap (#10305).
epub.css
: remove background-color (#10264, Suraj Patil).With this greyish background color, epubs look bad on a Kindle (#10263).
Text.Pandoc.ImageSize: add WebP support (Evan Silberman, #10397).
Add
Webp
constructor on ImageType [API change].Text.Pandoc.Readers.Roff and a new unexported module
Text.Pandoc.Readers.Roff.Escape: parameterize Roff
escaping (Evan Silberman) [API change]. This allows code to
be reused between the mdoc and man readers, despite the
differing Token types.
Text.Pandoc.PDF:
toc
is present (#10308).The old method (checking to see if toc hash had changed) is not
completely reliable.
.source
extension, not.html
, intoPdfViaTempFile
(#10314).Text.Pandoc.Logging: add
YamlWarning
constructor toLogMessage
[API change] (#10312).
Text.Pandoc.Format: remove duplicate typst entry (#10388, Caleb Mclennan).
Fix a typo in the
ua.yaml
localization for 'See' (Jens).Lua subsystem (Albert Krewinkel):
inconsistent with regard to the use of prefixes; all prefixes
are removed now, and Lua types now have the same name as the
Haskell types. The use of app-specific prefixes is suggested by
the Lua manual to avoid collisions. However, this shouldn't be a
problem with pandoc, as it cannot be used as a Lua package.
doc/libraries.md: Add newly developed Haskell packages.
Sort list alphabetically (Albert Krewinkel).
doc/lua-filters.md: document
pandoc.List:iter
method (Albert Krewinkel).List objects have a new function
iter
that returns an iteratorfunction that returns the next list item on each call.
MANUAL.txt:
--variable
can only assign string values (#10298).Fix comments in TEI writer referring to DocBook (#10430, Evan Silberman).
Fix several typos in documentation (#10349, Andreas Deininger).
Allow Diff 1.0.
Add font-settings.latex partial to pandoc.cabal (#10379).
Bump upper bound for data-default.
Use latest typst, texmath, pandoc-lua-marshal, commonmark-pandoc,
commonmark-extensions, skylighting, skylighting-format-blaze-html.
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.