pandoc 3.7 #10847
Replies: 3 comments
-
Unofficial Linux/RISC-V 64-bit ( |
Beta Was this translation helpful? Give feedback.
-
Thank you very much for the new version. Unfortunately, I am not very happy with the new implementation of gridTable -- although I made an upgrade from 3.1.11.1 to 3.7 and, thus, cannot be quite sure, in which version this error crept in. Now, all gridTables seem to get a width directly in the element and I don't know how to get rid of it. This is very annoying, in particular, when it amounts to 98%, as in this case: The width of 98% does not even change, if I make the table much wider. This should be an error, or shouldn't it? |
Beta Was this translation helpful? Give feedback.
-
Indeed, grid tables were very broken in this release: see #10848. I think I've fixed all the problems now and I'll be putting out a new release this weekend. However, I don't think the issue you're pointing to is actually one of the things that was broken. Grid tables have always produced relative widths in pandoc. Relative widths are a necessity for tables that can contain content that might wrap, because formats like LaTeX need to have the widths specified. The 98% refers to the width of the source table relative to the setting of |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm pleased to announce the release of pandoc 3.7,
available in the usual places:
Binary packages & changelog:
https://github.com/jgm/pandoc/releases/tag/3.7
Source & API documentation:
http://hackage.haskell.org/package/pandoc-3.7
--variable-json
. This allows non-stringvalues (such as booleans or maps) to be given to template variables
on the command line.
--pdf-engine
will now acceptgroff
as a value.In addition, table column widths will expand if needed to
contain text that can't be wrapped, avoiding the introduction
of unwanted whitespace.
four_space_rule
extension now works forplain
output.pandoc.read
can now be used in "sandboxed"mode, restricting file or network access, by passing in a
list of accessible files as a fourth parameter.
API changes:
delimited
.gridTable
withchanged parameters.
sandboxWithFileTree
.Thanks to all who contributed, especially new contributors
Manolis Stamatogiannakis, Mohamed Akram, and Niklas Eicker.
Click to expand changelog
Add new command-line option
--variable-json
(Convert boolean-like command-line variables to booleans like for metadata #10341). This allows non-string values (booleans, lists, maps) to be given to template variables on the command line.The
--pdf-engine
option can now takegroff
as a value.Markdown writer:
.odt
files to Markdown #10696). E.g. instead of renderingx<em> space </em>y
asx* space *y
we render it asx *space* y
.figure
for a figure that can’t be represented any other way, include a Div with classcaption
containing the caption.math
blocks to avoid an ugly blank line.four_space_rule
extension forplain
output (Plain writer: Support the four_space_rule extension. #10813, Manolis Stamatogiannakis).RST writer:
Muse writer:
JATS writer:
HTML writer:
LaTeX writer:
multirow
in tables (Multirow cell does not get centered #10772).Typst writer:
mark
class on spans (Support highlighting via.mark
for Typst #10747).\label{..}
(Equation labels missing after conversion from latex #10805).Roff format writers (man, ms):
\(xy
instead of\[xy]
. This was the original AT&T troff form and is the most widely supported. The bracketed form causes problem for some tools, e.g.makewhatis
on macOS. And emite
followed by an escape for a unicode combining accent rather than the form\[e aa]
, which works for groff but not e.g. on macOS’s man. This change affects Text.Pandoc.RoffChar, Text.Pandoc.Writers.Roff, and the Man and Ms writers.Docx writer:
docx+styles
#10705).reference-doc
's existingRelationship
s defined in/word/_rels/document.xml.rels
to allow inclusion of images in template #10759). This should allow one to include an image in a reference.docx and reference it in an openxml template.Ms writer:
pdf-engine
variable is specified, do not use the.pdfhref
macros at all (Add groff as a pdf-engine #10738). This gives better results for links in formats other than PDF, since the link text would simply disappear if it exists only in a.pdfhref
macro. When a PDF engine is specified, escape the argument of.pdfhref O
in a way that is appropriate.OpenDocument writer:
Powerpoint writer:
DocBook writer:
MediaWiki reader/writer:
LaTeX reader:
\texttt
(LaTeX Reader converts -- within a \texttt{} to a single en dash / endash / en-dash. #10781).Commonmark Reader:
\\{
rather than\{
for a literal brace.DocBook reader:
monospaced
class. Otherwise it is made a LineBlock.Org reader:
equation
. Previously, anequation
environment starting at the beginning of a line would create a raw block, splitting up the paragraph containing it (see Converting a paragraph containing an equation from org to latex results in 3 paragraphs #10836). On the other hand, anequation
environment not at the beginning of a line would be turned into regular inline elements representing the math. (This would cause the equation number to go missing and in some cases degrade the math formatting.) Now, we parse all of these as raw “latex” inlines, which will be omitted when converting to formats other than LaTeX (and other formats like pandoc’s Markdown that allow raw LaTex).Beamer template: fix regression in 3.6.4, reverting the omission of
\date
when the document does not have a date. By default, beamer will display a date when no\date
is present in the title block, so this was an unintended behavior change. The reverted change was motivated by the desire to include a custom\date
in the frontmatter via header-includes. This can be achieved more simply by simply setting thedate
variable. In markdown you can even usedate
in metadata and put some raw LaTeX there.Ms template:
pdf-engine
isn’t set.Upgrade reveal.js URL to v5 (fix(revealjs)!: upgrade reveal.js to v5 #10740, Kolen Cheung). v4 is no longer available on unpkg.com.
Text.Pandoc.PDF: Allow
groff
to be used as--pdf-engine
withms
(Add groff as a pdf-engine #10738). Whengroff
is used as a PDF engine, thegroff
extension toms
is automatically enabled. Limitations:groff
currently produces larger PDFs thanpdfroff
.groff
, a table of contents produced with--table-of-contents/--toc
will always be placed at the end of the document.Text.Pandoc.Writers.Shared:
delimited
[API change].gridTable
(Markdown writer - support new table features #6344) [API change]. This handles row and colspans. It also ensures that cells won’t wrap text in places where it wouldn’t normally wrap, even if this means making the cells wider than requested by the colspec (Default text wrap breaks long words in table cell into two words #9001, Grid_tables insert whitespace into inline elements #7641). Because the parameters are different, this is a breaking API change.Text.Pandoc.App: set
pdf-engine
variable. If--pdf-engine
is specified or if a PDF is being produced, we set thepdf-engine
variable. This allows writers and templates to behave differently depending on the PDF engine.Text.Pandoc.Class and Text.Pandoc.URI:
pBase64URI
instead of unescaping later, for efficiency (avif not supported by --extract-media #10704).Text.Pandoc.Citeproc.BibTeX:
en
as alangid
in biblatex bibliographies (Coulden
be recognised as alangid
for English? #10764).Text.Pandoc.MIME:
avif
(avif not supported by --extract-media #10704).apng
,avif
,jxl
(avif not supported by --extract-media #10704).Text.Pandoc.Readers.LaTeX.Math: export
inlineEnvironmentNames
. Internal module, not a change to the public API.reference.docx
(Andrew Dunning):Text.Pandoc.Class.Sandbox:
sandboxWithFileTree
function [API change] (Albert Krewinkel).Lua subsystem (Albert Krewinkel):
pandoc.read
to be called in “sandbox” mode for added security (Sandboxing for pandoc.read in lua for custom readers #10831). Readers running in a sandbox will not be able to access the network or file system. The sandbox is enabled if the fourth parameter is a list of files or filename/content pairs. The files are read and then made available in the sandbox via en ersatz file system.Makefile:
release-checkist
.latex-package-dependencies
target.jq
instead ofjson_reformat
invalidate-docx-golden-tests2
.NiX infrastructure: new working
flake.nix
and simplershell.nix
. Removed olddefault.nix
.Require random >= 1.3 and use
splitGen
.split
has been deprecated.Use citeproc-0.9. Bump citeproc bounds for pandoc, pandoc-lua-engine.
Use texmath-0.12.10.1.
Use released typst 0.8 (partially supporting typst 0.13).
Use citeproc 0.9.0.1.
MANUAL.txt:
alerts
extension only works with commonmark (Add the 'alert' extension to Pandoc standard markdown #9716).--variable
option.doc/typst-property-output.md
: Mention thattypst:no-figure
is a class, not an attribute (Fix docs for typst:no-figure class #10826, Niklas Eicker).Change RELEASE-CHECKLIST to RELEASE-CHECKLIST-TEMPLATE.org. Use org-babel to automate many of the steps of the release.
INSTALL.md: update MacPorts information (INSTALL.md: update MacPorts information #10719, Mohamed Akram).
COPYRIGHT: fix link to source code.
CONTRIBUTING.md: Fix link to discussion forum. (CONTRIBUTING: fix link to discussion forum. #10834, R. N. West).
This discussion was created from the release pandoc 3.7.
Beta Was this translation helpful? Give feedback.
All reactions