pandoc 3.6 #10442
Replies: 3 comments 2 replies
-
|
Beta Was this translation helpful? Give feedback.
-
Unofficial and untested Linux/RISC-V 64-bit ( |
Beta Was this translation helpful? Give feedback.
-
Hi there. Upon installing this version of pandoc for Windows x64 MSI installer via the release channel, my antivirus software flagged an octet stream as a "known Trojan" and removed the installer. After reinstalling, the pandoc executable itself was flagged as "ML/Augur trojan" and removed. I know there have been false positives in the past. Has anyone else had an issue with this? |
Beta Was this translation helpful? Give feedback.
-
Click to expand changelog
Add
mdoc
as input format (Evan Silberman). This change introduces 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 (Warn on duplicate or conflicting YAML metadata key-values within a metadata block #10312).
Ensure that
--sandbox
affects--embed-resources
. Previously it did not (contrary to what was implied by the manual), which means that an image with URL/etc/passwd
would leak an encoded version of that file to HTML output with--self-contained
or--embed-resources
, even if--sandbox
was used. Thanks to Samuel 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:
entry
, and optionallybold
,italic
,yomi
,see
.itemData
has different id from thecitationItem
id. In this case we use thecitationItemId
in the bibliography as well, overriding thereferenceId
in the itemData (docx+citations from zotero: different ids used for in-text and CSL-YAML #10366).LaTeX reader:
HTML reader:
MediaWiki reader:
Typst reader:
underparen
,overparen
.#quote
attribution. If attribution is not present, don’t print the--
(Typst: different typst output when writing to.typ
file or to pdf with the typst engine #10320)..typ
file or to pdf with the typst engine #10320).Commonmark reader:
implicit_figures
should check for empty caption and not produce an implicit figure in this case (commonmark_x reader with implicit_figures isn't checking whether the caption is empty? #10429).RST reader:
##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 (Error parsing reStructuredText hyperlink inside directive #10281).:file:
on raw directive (Fix RST raw directive to allow file includes? #8584).|Python|_
.g <www>
_ not remembered #5081). For example,Go to `g`_ `g <www.example.com>`_.
should produce two links to www.example.com.EPUB writer:
Markdown writer:
raw_html
is disabled and the table can’t be fit into a supported markdown table format (commonmark/gfm:-raw_html
turns tables with<h3>
tag into[TABLE]
. #10407).plain
output (Evan Silberman). The plain writer behaved as a markdown variant withExt_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 (Beamer+columns+footnotes can be improved #5769).
HTML writer:
<div>
in HTML slides #10328, Albert Krewinkel). 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 (Add page numbering (to remove it) to typst template #10370). This can be set to an empty string (or, in metadata, to false) for no page numbers.smart
extension work (Typst Writer should not escape single and double quotes #10271). Ifsmart
is not enabled, a command in the default template will disable smartquote substitutions. Whensmart
is enabled, render curly apostrophes as straight and escape straight apostrophes. Whensmart
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
.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 (Font change on beamer slides when building with pandoc 3.5 #10297).font-settings.latex()
afterfonts.latex()
in the latex 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 (unwanted newline #10305).
epub.css
: remove background-color (Update epub.css #10264, Suraj Patil). With this greyish background color, epubs look bad on a Kindle (The background of a epub book on kindle is a grey color that makes it annoying to read the book #10263).Text.Pandoc.ImageSize: add WebP support (Evan Silberman, Add WebP support to ImageSize #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 (Regression: Wrong page numbering of multi-page TOC #10308). The old method (checking to see if toc hash had changed) is not completely reliable..source
extension, not.html
, intoPdfViaTempFile
(Windows: infinite loop creating empty temp files when file deletion prohibited by ACL #10314).Text.Pandoc.Logging: add
YamlWarning
constructor toLogMessage
[API change] (Warn on duplicate or conflicting YAML metadata key-values within a metadata block #10312).Text.Pandoc.Format: remove duplicate typst entry (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):
pandoc.utils.types
are inconsistent #8574). Lua type names were 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 functioniter
that returns an iterator function that returns the next list item on each call.MANUAL.txt:
--variable
can only assign string values (Issue setting a variable of type Dictionary from the command line #10298).Fix comments in TEI writer referring to DocBook (Fix comments in TEI writer referring to DocBook #10430, Evan Silberman).
Fix several typos in documentation (Fix typos #10349, Andreas Deininger).
Allow Diff 1.0.
Add font-settings.latex partial to pandoc.cabal (Pandoc nightly build is missing
font-settings.latex
#10379).Bump upper bound for data-default.
Use latest typst, texmath, pandoc-lua-marshal, commonmark-pandoc, commonmark-extensions, skylighting, skylighting-format-blaze-html.
This discussion was created from the release pandoc 3.6.
Beta Was this translation helpful? Give feedback.
All reactions