pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/converters/hs-pandoc



Module Name:    pkgsrc
Committed By:   wiz
Date:           Sat Jul 19 20:49:03 UTC 2025

Modified Files:
        pkgsrc/converters/hs-pandoc: Makefile buildlink3.mk distinfo version.mk

Log Message:
converters/hs-pandoc: update to pandoc-3.7.0.2

## pandoc 3.7.0.2 (2025-05-28)

  * RST writer:

    + Don't emit alignment markers in grid tables (#10857).

  * Asciidoc writer:

    + Add support for sidebars (GHyman83).

  * LaTeX writer:

    + Include alt option in `\includegraphics` (#6095).

  * Markdown writer:

    + Preserve figure attributes (Nikolay Yakimov, #10867).
      Fixes a regression introduced by 0d2114e, which caused the
      Markdown writer to ignore attributes on the figure if it
      has class or key-value attributes set.

  * HTML writer:

    + Use the ID prefix in the ID for the footnotes section (Benjamin Esham).

  * Text.Pandoc.Writers.Shared:

    + `gridTable`: fix (3.7) regression with missing cell alignments (#10853).
    + `gridTable`: fix headings with colspans (#10855). If the heading
      contains a colspan, we still need to include information in the header
      line about the colspecs.
    + `gridTable`: fix headerless tables. The top line should encode
      colspan information.

  * Text.Pandoc.SelfContained:

    + Fix handling of empty script element (#10862). Previously in this
      case the closing tag was dropped.
    + Do not drop `data-` attributes in script tags (#10861).

  * Lua subsystem (Albert Krewinkel):

    + Add function `pandoc.mediabag.make_data_uri` (#10876).
      The function takes a MIME type and raw data from which it creates an
      RFC 2397 data URI.

  * `tools/update-lua-module-docs`: fix handling of wikilinks
    (Albert Krewinkel).

  * `doc/lua-filters.md`: add missing docs for `pandoc.Caption`
    (Albert Krewinkel).

  * Require texmath 0.12.10.3, typst 0.8.0.1

## pandoc 3.7.0.1 (2025-05-17)

  * Text.Pandoc.Shared.Writer:  Fix numerous problems with `gridTable` and add
    tests (#10848).  These fixes affect the Markdown, RST, and Muse writers.

  * Fix context writer/template to produce tagged PDFs (#10846).
    As before, the `tagging` extension must be enabled.
    We now add the command that tells ConTeXt to start tagging.

## pandoc 3.7 (2025-05-14)

  * Add new command-line option `--variable-json` (#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 take `groff` as a value.

  * Markdown writer:

    + Avoid spaces after/before open/close delimiters (#10696).
      E.g. instead of rendering `x<em> space </em>y` as `x* space *y` we render
      it as `x *space* y`.
    + Handle row/colspans in grid tables, and expand cells when it isn't
      possible to lay them out without breaking string of non-whitespace.
    + Render a figure with Para caption as implicit figure (#10755).
    + When falling back to a Div with class `figure` for a figure that
      can't be represented any other way, include a Div with class
      `caption` containing the caption.
    + Improve use of implicit figures when possible (#10758).
      When the alt differs from the caption, but only as regards formatting, we
      still use an implicit figure.
    + Omit initial newlines in gfm `math` blocks to avoid an ugly blank line.
    * Support the `four_space_rule` extension for `plain` output (#10813,
      Manolis Stamatogiannakis).

  * RST writer:

    + Handle row/colspans in grid tables, and expand cells when it isn't
      possible to lay them out without breaking string of non-whitespace.

  * Muse writer:

    + Handle row/colspans in grid tables, and expand cells when it isn't
      possible to lay them out without breaking string of non-whitespace.

  * JATS writer:

    + Fix escaping for writing-review-editing role (#10744).

  * HTML writer:

    + Remove trailing slash from default revealjs URL (#8749). This
      avoids a double slash in the URL's path component.

  * LaTeX writer:

    + Make alignment work within `multirow` in tables (#10772).

  * Typst writer:

    + Support `mark` class on spans (#10747).
    + Add equation label if math contains `\label{..}` (#10805).

  * Roff format writers (man, ms):

    + Use the most compatible form for roff escapes (#10716).
      For example, `\(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 emit `e` 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:

    + Ensure that figures and tables with custom styles are not dropped
      (#10705).
    + Preserve Relationships for images from reference docx (#10759).
      This should allow one to include an image in a reference.docx and
      reference it in an openxml template.
    + Don't renumber rels (#10769). We used to renumber the
      Relationships so they didn't conflict with the set of fixed
      Relationships we imposed. We are now preserving the ids
      from the reference doc's document.xml.refs, so we shouldn't
      renumber them or references introduced by the user (e.g. in
      a template) will fail.

  * Ms writer:

    + Improve PDF TOC labels. We now use the plain writer to render these,
      so that Greek characters etc. will show up properly.
    + When no `pdf-engine` variable is specified, do not use the
      `.pdfhref` macros at all (#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:

    + Fix character styles in footnotes (#10791). Character
      styles governing the position of the footnote reference
      should not be imposed on the footnote text.

  * Powerpoint writer:

    + Use reference-doc font for captions (#9896, R. N. West).

  * DocBook writer:

    + Use literallayout element for LineBlock (#10825).

  * MediaWiki reader/writer:

    + Allow definition on same line as term (#10708).

  * LaTeX reader:

    + Skip at most one argument to LaTeX tabular newline (#7512,
      Evan Silberman).
    + Disable ligatures inside `\texttt` (#10781).
    + Support more symbol commands (#10782).

  * Commonmark Reader:

    + Handle GFM math irregularity with braces (#10631). In GFM, you need
      to use `\\{` rather than `\{` for a literal brace.

  * DocBook reader:

    + Improve handling of literallayout (#10825). This is now only made
      a CodeBlock when there is a `monospaced` class. Otherwise it is made
      a LineBlock.

  * Org reader:

    + Add AVIF to Org Reader image extensions (#10736, Christian Christiansen).
    + Don't include newlines in inine code/verbatim (#10730).
      Convert newlines to spaces as we do in other formats.
    + Change handling of inline TeX (#10836). Previously inline
      TeX was handled in a way that was different from org's own export,
      and that could lead to information loss. This was particularly noticeable
      for inline math environments such as `equation`.  Previously, an
      `equation` environment starting at the beginning of a line would create
      a raw block, splitting up the paragraph containing it (see
      #10836). On the other hand, an `equation` 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 the `date` variable.
    In markdown you can even use `date` in metadata and put some
    raw LaTeX there.

  * Ms template:

    + Use T rather than P as default font family (#10738).
    + Put PDF-specific things under a conditional.
      Don't include them if `pdf-engine` isn't set.

  * Upgrade reveal.js URL to v5 (#10740, Kolen Cheung).
    v4 is no longer available on unpkg.com.

  * Text.Pandoc.PDF: Allow `groff` to be used as `--pdf-engine` with `ms`
    (#10738). When `groff` is used as a PDF engine, the `groff`
    extension to `ms` is automatically enabled. Limitations:

    - `groff` currently produces larger PDFs than `pdfroff`.
    - With `groff`, a table of contents produced with
      `--table-of-contents/--toc` will always be placed at the end of
      the document.
    - Certain characters (e.g. Greek characters) may be dropped in
      the PDF outline.

  * Text.Pandoc.Writers.Shared:

    + Export `delimited` [API change].
    + New version of `gridTable` (#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 (#9001, #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 the
    `pdf-engine` variable. This allows writers and templates to behave
    differently depending on the PDF engine.

  * Text.Pandoc.Class and Text.Pandoc.URI:

    + Fix parsing of base64 data URIs to allow URI escapes and
      whitespace (which will be ignored) (#10704).
    + Handle percent encoding in `pBase64URI` instead of
      unescaping later, for efficiency (#10704).

  * Text.Pandoc.Citeproc.BibTeX:

    + Recognize `en` as a `langid` in biblatex bibliographies (#10764).

  * Text.Pandoc.MIME:

    + Add mime type and extension for `avif` (#10704).
    + Handle `apng`, `avif`, `jxl` (#10704).

  * Text.Pandoc.Readers.LaTeX.Math: export `inlineEnvironmentNames`.
    Internal module, not a change to the public API.

  * `reference.docx` (Andrew Dunning):

    + Remove extra spaces around text placeholders.
    + Add footnote block text sample.

  * Text.Pandoc.Class.Sandbox:

    + Add `sandboxWithFileTree` function [API change] (Albert Krewinkel).

  * Lua subsystem (Albert Krewinkel):

    + pandoc-lua-engine: add all test files to the cabal file.
    + Allow `pandoc.read` to be called in "sandbox" mode for added
      security (#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:

    + Add target `release-checkist`.
    + Install @daisy/ace from npm if not present.
    + Use pandoc lua instead of lua.
    + Fix typo in `latex-package-dependencies` target.
    + Use `jq` instead of `json_reformat` in `validate-docx-golden-tests2`.

  * NiX infrastructure: new working `flake.nix` and simpler `shell.nix`.
    Removed old `default.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:

    + Fix default URL for revealjs.
    + Add note that `alerts` extension only works with commonmark (#9716).
    + Remove "Body Text Char" from list of Word styles that can be customized
      using a reference.docx (#10646). This doesn't seem to be present in
      pandoc-generated docx files, nor is it a Word default.
    + For pandoc lua, add note about the environment.
    + Improve documentation of `--variable` option.

  * `doc/typst-property-output.md`: Mention that `typst:no-figure` is a
    class, not an attribute (#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 (#10719, Mohamed Akram).

  * COPYRIGHT: fix link to source code.

  * CONTRIBUTING.md: Fix link to discussion forum. (#10834, R. N. West).

## pandoc 3.6.4 (2025-03-16)

  * Disable `citations` extension in writers if `--citeproc` is used (#10662).
    Otherwise we get undesirable results, as the format's native
    citation mechanism is used instead of (or in addition to) the
    citeproc-generated citations.

  * Markdown reader:

    + Allow line break between URL and title of link (#10621).
    + Give better position information when YAML metadata parsing fails
      with a YAML exception (#10231).
    + Fixed `escapedChar'` parser (#10672). It should not accept
      escaped newlines.
    + Remove some misguided list fanciness (#9865, #7778, cf. #5628).
      Previously we tried to handle things like commented out list items:
      ```
      - one
      <!--
      - two
      -->
      - three
      ```
      and also things like:
      ```
      - one `and
      - two` and
      ```
      But the code we added to handle these cases caused problems with
      other, more straightforward things, like:
      ````
      - one
      - ```
        code
        ```
      - three
      ````
      So we are rolling back all the fanciness, so that the markdown
      parser now behaves more like the commonmark parser, in which
      indicators of block-level structure always take priority over
      indicators of inline structure.

  * HTML reader:

    + Skip MathJaX-introduced cruft (#10673).
    + Ignore style tags in the body (#10643).

  * LaTeX reader:

    + Better handle comments/whitespace in option lists and includes (#10659).
    + Support `\newline`, `\linebreak`.

  * Docx reader/writer:

    + Revert commit adding row heads
      (cbe67b9602a736976ef6921aefbbc60d51c6755a) (#10627).
      Word sets `w:firstColumn="1"` by default for tables.  You have to find
      the Table Design tab and explicitly uncheck "First Column" to make this
      go away.  In most cases, I don't think writers intend to designate
      the first column as a row head, so this commit is going to produce
      unexpected results.  In addition, because of the table normalization
      done by pandoc-type's `tableWith`, any table containing a colspanned
      cell in the left-hand column will get broken if the first column is
      designated a row head.  For these reasons it seems best to revert this
      change, which was made in response to #9495.

  * LaTeX writer and template:

    + Remove `selnolig-langs` (#9863). We now specify the language as
      a global option again, so we no longer need to specify it when
      invoking selnolig.
    + Use babel options `shorthands=off` (#6817).
    + Use `*` for multirow width when no colwidth specified (#10685).
      Otherwise the multirow will be excessively wide.
    + Protect `\phantomsection` (#10688, etclub).

  * Markdown writer:

    + Omit extra space after bullets (#7172). Those who want the old
      behavior can obtain it by using `-t markdown+four_space_rule`.
    + Treat `Emph [Emph ils]]` as `ils` (#10642). Otherwise we get
      `**content**` which means strong emphasis.

  * EPUB writer:

    + Use a nonbreaking space after section number in nav.xhtml.
      This seems to be required for iOS books app to display the space.

  * Typst writer:

    + Better heuristics for escaping potential list markers (#10650).
    + Ensure that `citation-style` works as well as `csl` (#10661).

  * Powerpoint writer:

    + Avoid extra blank lines before author when there is no
      subtitle (#10619).

  * JATS template:

    + Fix typo in author prefix in article.jats_publishing template
      (#10622, Tiago-Manzato).

  * Text.Pandoc.Parsing:

    + Smart quote parsing: ignore curly quotes (#10610). Previously we
      tried to match curly quotes as well as straight quotes,
      producing Quoted inlines. But it seems better just to assume
      that those who use curly quotes want them passed through
      verbatim. This also fixes an (unintended) bug whereby curly
      single left quotes would sometimes be changed to single right quotes.

  * Text.Pandoc.Shared:

    + `makeSections`: put some attributes on section element only.
      Certain `role` and `epub:type` attributes should only be on the section
      (and indeed, many `role`s give a validation error if left on the
      heading element).

  * Text.Pandoc.Logging:

    + Change NoTitleElement from WARNING to INFO (#10671). Users
      commonly complain about the warning when producing HTML
      documents without an explicit title. It seems that an info
      message is more appropriate, since pandoc's default here (using
      the input's base name) ensures compliance with the standard and
      many users are happy with that default. Those who want to make
      sure the message is seen can use `--verbose`.

  * Beamer template: only emit `\date` if set (#10687, josch).

  * Fix invalid OOXML in definition_list.docx test (#10394).

  * MANUAL.txt:

    + Correct typo: 'date' for doubled 'title' (#10654, Olivier Dossmann).
    + Add note about `template` variable for typst.
    + Change maxwidth default in MANUAL.txt (#10683).
    + Improve EPUB metadata documentation.
    + In Security section, alert readers to a threat relating to iframe in
      HTML, and add LaTeX, Typst to the list of formats that have an
      `include` (#10682).

  * `doc/lua-filters.md`: Add missing html_math_method 'katex' (R. N. West).

  * Use texmath 0.12.9.

  * Use typst 0.7. Fixes an issue with package loading, a regression
    in pandoc 3.6.3.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 pkgsrc/converters/hs-pandoc/Makefile \
    pkgsrc/converters/hs-pandoc/buildlink3.mk
cvs rdiff -u -r1.4 -r1.5 pkgsrc/converters/hs-pandoc/distinfo \
    pkgsrc/converters/hs-pandoc/version.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/converters/hs-pandoc/Makefile
diff -u pkgsrc/converters/hs-pandoc/Makefile:1.11 pkgsrc/converters/hs-pandoc/Makefile:1.12
--- pkgsrc/converters/hs-pandoc/Makefile:1.11   Sat Mar  8 05:13:50 2025
+++ pkgsrc/converters/hs-pandoc/Makefile        Sat Jul 19 20:49:03 2025
@@ -1,6 +1,5 @@
-# $NetBSD: Makefile,v 1.11 2025/03/08 05:13:50 pho Exp $
+# $NetBSD: Makefile,v 1.12 2025/07/19 20:49:03 wiz Exp $
 
-PKGREVISION= 2
 .include "../../converters/hs-pandoc/version.mk"
 DISTNAME=      pandoc-${PANDOC_VERSION}
 CATEGORIES=    converters
Index: pkgsrc/converters/hs-pandoc/buildlink3.mk
diff -u pkgsrc/converters/hs-pandoc/buildlink3.mk:1.11 pkgsrc/converters/hs-pandoc/buildlink3.mk:1.12
--- pkgsrc/converters/hs-pandoc/buildlink3.mk:1.11      Sat Mar  8 05:13:50 2025
+++ pkgsrc/converters/hs-pandoc/buildlink3.mk   Sat Jul 19 20:49:03 2025
@@ -1,12 +1,12 @@
-# $NetBSD: buildlink3.mk,v 1.11 2025/03/08 05:13:50 pho Exp $
+# $NetBSD: buildlink3.mk,v 1.12 2025/07/19 20:49:03 wiz Exp $
 
 BUILDLINK_TREE+=       hs-pandoc
 
 .if !defined(HS_PANDOC_BUILDLINK3_MK)
 HS_PANDOC_BUILDLINK3_MK:=
 
-BUILDLINK_API_DEPENDS.hs-pandoc+=      hs-pandoc>=3.6.3
-BUILDLINK_ABI_DEPENDS.hs-pandoc+=      hs-pandoc>=3.6.3nb2
+BUILDLINK_API_DEPENDS.hs-pandoc+=      hs-pandoc>=3.7.0
+BUILDLINK_ABI_DEPENDS.hs-pandoc+=      hs-pandoc>=3.7.0.2
 BUILDLINK_PKGSRCDIR.hs-pandoc?=                ../../converters/hs-pandoc
 
 # lib:pandoc

Index: pkgsrc/converters/hs-pandoc/distinfo
diff -u pkgsrc/converters/hs-pandoc/distinfo:1.4 pkgsrc/converters/hs-pandoc/distinfo:1.5
--- pkgsrc/converters/hs-pandoc/distinfo:1.4    Sun Feb 23 22:28:54 2025
+++ pkgsrc/converters/hs-pandoc/distinfo        Sat Jul 19 20:49:03 2025
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.4 2025/02/23 22:28:54 wiz Exp $
+$NetBSD: distinfo,v 1.5 2025/07/19 20:49:03 wiz Exp $
 
-BLAKE2s (pandoc-3.6.3.tar.gz) = 4cb1bc5ce74f3fd21f079c341e950cc519e15384e94499dfb700e206f10c6b5d
-SHA512 (pandoc-3.6.3.tar.gz) = 5f4d257a71bfe8b7a67074cb320df407928c682318a64b0104a243d3b4b3f73c102b0c4425b2d19afae58137912b060f73c46e2127cb3ff033bb4ecace8fc328
-Size (pandoc-3.6.3.tar.gz) = 7544061 bytes
+BLAKE2s (pandoc-3.7.0.2.tar.gz) = 9034f4de786a7fd5c3296093888e05fef974cdee57cedf9518a8fc2295582012
+SHA512 (pandoc-3.7.0.2.tar.gz) = 85dd769272239b9283fbd5da3e55935c4350c7e064a86e544de9fdbd5ed432456c694d0a4761e1753773a40111388a61c00de7e334042e71ed97b7fc2acc51b8
+Size (pandoc-3.7.0.2.tar.gz) = 7561146 bytes
Index: pkgsrc/converters/hs-pandoc/version.mk
diff -u pkgsrc/converters/hs-pandoc/version.mk:1.4 pkgsrc/converters/hs-pandoc/version.mk:1.5
--- pkgsrc/converters/hs-pandoc/version.mk:1.4  Sun Feb 23 22:28:54 2025
+++ pkgsrc/converters/hs-pandoc/version.mk      Sat Jul 19 20:49:03 2025
@@ -1,6 +1,6 @@
-# $NetBSD: version.mk,v 1.4 2025/02/23 22:28:54 wiz Exp $
+# $NetBSD: version.mk,v 1.5 2025/07/19 20:49:03 wiz Exp $
 #
 # Included by ../../converters/hs-pandoc/Makefile
 # Included by ../../converters/pandoc/Makefile
 
-PANDOC_VERSION=        3.6.3
+PANDOC_VERSION=        3.7.0.2



Home | Main Index | Thread Index | Old Index