pandoc 3.4 #10167
jgm
announced in
Announcements
pandoc 3.4
#10167
Replies: 2 comments 1 reply
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
I think there is a mistake in the description. It seems to me that the item:
should be like in a "Docx Reader" title. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Click to expand changelog
New output format:
ansi
(for formatted console output) (Evan Silberman). Most Pandoc elements are supported and printed in a reasonable way, if not always ideally. This version does no detection of terminal capabilities, nor does it fall back to different output styles for less-capable terminals.Add command line options
--table-caption-position
and--figure-caption-position
. These allow the user to specify whether to put captions above or below tables and figures, respectively. The following output formats are supported: HTML (and related such as EPUB), LaTeX (and Beamer), Docx, ODT/OpenDocument, Typst.Change default
--pdf-engine
via HTML to WeasyPrint (Change default pdf-engine for HTML from wkhtmltopdf to weasyprint #10142).wkhtmltopdf
is deprecated.weasyprint
is the easiest-to-install, maintained alternative. For better results, one might preferpagedjs-cli
.Org reader:
-i
flag (Leading tabs in code block are not retained in org reader with-p
#10071, Albert Krewinkel). Tabs are now preserved in the contents of src blocks if the the block has the-i
flag.RTF reader:
shp
contexts (RTF reader doesn't include image inside \shp #10145).RST reader:
Improve simple table support (Incorrent simple table parsing for RST->Markdown #10093). Multiline rows occur only when the first cell is empty; we were previously treating lines with any empty cell as row continuations. In addition, we no longer wrap multiline cells in Para if they can be represented as Plain. This is consistent with docutils behavior.
LaTeX reader:
Typst reader:
HTML reader:
katex-html
.New module: Text.Pandoc.Writers.ANSI [API change] (Evan Silberman).
Docx writer:
+citations
is used (thomjur).custom-style
attribute for docx table (Sebbones).--number-offsets
.OpenDocument writer:
Typst writer/template:
@
style citations with suffixes (Unnecessary semicolon added to detailed citations when converting to Typst #10148).header-includes
earlier in Typst template? #9996, Gordon Woodhull).LaTeX writer:
--natbib
(Pandoc with--natbib
swallows locators in its output #10057).HTML writer/template:
<figcaption>
placement sensitive to caption position settings. For tables,<caption>
must be the first element, and positioning is determined by CSS, for here we set a variable which the default template is sensitive to.makeSectionsWithOffsets
forwriterNumberOffsets
, instead of the old, inefficient code.doc-biblioref
#10156).data-
when renderinglabel
attribute (label in epub from tex: issue with validation #10048).Markdown writer:
Avoid emitting markdown caption if table has fallen back to raw HTML, which will then contain a
<caption>
tag (Parsing a table RST->MD(HTML table) results in double captions #10094).Make math sensitive to
tex_math_gfm
extension (gfm reader/writer?: support new inline and display math formats #9121). This means that in GFM output, the “new style” math will be used by default, e.g.To defeat this and get the older behavior, namely
one could use
-t gfm-tex_math_gfm
.AsciiDoc writer:
link:
prefix when needed (Missing link: macro in AsciiDoc for uncommon URL protocols #10105). AsciiDoc requires it except forhttp
,https
,irc
,mailto
,ftp
schemes (Missing link: macro in AsciiDoc for uncommon URL protocols #10105).ODT writer:
LaTeX template:
Text.Pandoc.Options:
CaptionPosition
and newWriterOptions
fieldswriterFigureCaptionPosition
andwriterTableCaptionPosition
[API change].Text.Pandoc.Opt:
[]
. This behaves the same as[0,0,0,0,0]
.Opt
fieldsoptFigureCaptionPosition
andoptTableCaptionPosition
[API change].Text.Pandoc.Format: change
formatFromFilePaths
so that it is smarter about URLs. URLs are parsed, and we take the format from the path component, if present (If you specify a URL ending in.org
, pandoc treats it as org-mode rather than HTML content #10141). This means thathttps://emacs.org/
will be treated as HTML, whilehttps://emacs.org/sample.org
will be treated as Org.Text.Pandoc.URI:
gemini:
to list of URI schemes (Pau RE).Text.Pandoc.Shared:
makeSectionsWithOffsets
[API change].Text.Pandoc.Highlighting: Expose
formatANSI
[API change] (Evan Silberman).Text.Pandoc.Writers.Shared: export
to{Sub,Super}scriptInline
[API change] (Evan Silberman).Remove use of partial functions (e.g.
head
) in code.Use latest skylighting-core, skylighting, doclayout, texmath, typst.
pandoc-lua-engine: Add accessors for several writer options, including some that were added in previous releases.
pandoc-server: Initialize some missing fields in WriterOptions:
writerEpubTitlePage
,writerChunkTemplate
,writerListTables
,writerFigureCaptionPosition
,writerTableCaptionPosition
.CONTRIBUTING.md: Summarize steps for adding a new cli option.
MANUAL.txt:
--number-offset
option should only directly affect numbering of the first section heading in a document; subsequent headings will increment normally.luatexja
when CJKmainfont is used with lualatex (Allow setting Japanese fonts when using LuaLaTeX #3873, Kolen Cheung).citations
(typst) section to the manual (Document typst-citations to enable citeproc for typst output #9127).citations
affects both input and output fororg
.--citeproc
that you may need to disablecitations
extension on the output format (e.g.,-t markdown-citations
) to see the rendered citation (Document typst-citations to enable citeproc for typst output #9127, Missing bibliography in markdown output? #10012).INSTALL.md — reorganise info on static binaries and add conda-forge install options (INSTALL.md — reorganise info on static binaries and add conda-forge install options #10098, pandoc-lua can't require binary packages when installed with Conda #10069, Ian Max Andolina).
This discussion was created from the release pandoc 3.4.
Beta Was this translation helpful? Give feedback.
All reactions