Index | index by Group | index by Distribution | index by Vendor | index by creation date | index by Name | Mirrors | Help | Search |
Name: ghc-pandoc | Distribution: openSUSE Tumbleweed |
Version: 3.5 | Vendor: openSUSE |
Release: 1.3 | Build date: Sat Oct 5 23:05:20 2024 |
Group: Unspecified | Build host: reproducible |
Size: 55892202 | Source RPM: ghc-pandoc-3.5-1.3.src.rpm |
Packager: https://bugs.opensuse.org | |
Url: https://hackage.haskell.org/package/pandoc | |
Summary: Conversion between markup formats |
Pandoc is a Haskell library for converting from one markup format to another. The formats it can handle include - light markup formats (many variants of Markdown, reStructuredText, AsciiDoc, Org-mode, Muse, Textile, txt2tags, djot) - HTML formats (HTML 4 and 5) - Ebook formats (EPUB v2 and v3, FB2) - Documentation formats (GNU TexInfo, Haddock) - Roff formats (man, ms) - TeX formats (LaTeX, ConTeXt) - Typst - XML formats (DocBook 4 and 5, JATS, TEI Simple, OpenDocument) - Outline formats (OPML) - Bibliography formats (BibTeX, BibLaTeX, CSL JSON, CSL YAML, RIS) - Word processor formats (Docx, RTF, ODT) - Interactive notebook formats (Jupyter notebook ipynb) - Page layout formats (InDesign ICML) - Wiki markup formats (MediaWiki, DokuWiki, TikiWiki, TWiki, Vimwiki, XWiki, ZimWiki, Jira wiki, Creole) - Slide show formats (LaTeX Beamer, PowerPoint, Slidy, reveal.js, Slideous, S5, DZSlides) - Data formats (CSV and TSV tables) - PDF (via external programs such as pdflatex or wkhtmltopdf) Pandoc can convert mathematical content in documents between TeX, MathML, Word equations, roff eqn, typst, and plain text. It includes a powerful system for automatic citations and bibliographies, and it can be customized extensively using templates, filters, and custom readers and writers written in Lua. For the pandoc command-line program, see the 'pandoc-cli' package.
GPL-2.0-or-later
* Sat Oct 05 2024 Peter Simons <psimons@suse.com> - Update pandoc to version 3.5. Upstream has edited the change log file since the last release in a non-trivial way, i.e. they did more than just add a new entry at the top. You can review the file at: http://hackage.haskell.org/package/pandoc-3.5/src/changelog.md * Tue Sep 10 2024 Peter Simons <psimons@suse.com> - Update pandoc to version 3.4. [#]# pandoc 3.4 (2024-09-09) * 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 (#10142). `wkhtmltopdf` is deprecated. `weasyprint` is the easiest-to-install, maintained alternative. For better results, one might prefer `pagedjs-cli`. * Org reader: + Fix parsing of src blocks with an `-i` flag (#10071, Albert Krewinkel). Tabs are now preserved in the contents of *src* blocks if the the block has the `-i` flag. * RTF reader: + Handle images inside `shp` contexts (#10145). * RST reader: + Improve simple table support (#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: + Math environments don't have bracketed options (#10160). + Parse nested tabular environments (#4746). * Typst reader: + Change how "block" elements are handled. Previously they were always parsed as divs. But actually they can occur in some "inline" contexts. Now we first try to parse them as inlines, and only as blocks if that fails. A surrounding Div or Span element is added only if there is an identifier. * HTML reader: + Only parse main element's contents (if present) (#10140). If main has an id or class, we include a div with that id or class; otherwise just the contents. + Read TeX annotation in MathML content if present (#9971). + Better handle KaTeX-generated math (#9971). KaTeX emits the mathml followed by a span with an HTML fallback. Previously pandoc was converting both. We now ignore the HTML fallback span, marked with class `katex-html`. * New module: Text.Pandoc.Writers.ANSI [API change] (Evan Silberman). * Docx writer: + Add "SuppressAuthor" and "AuthorOnly" to citationMode when `+citations` is used (thomjur). + Support `custom-style` attribute for docx table (Sebbones). + Support `--number-offsets`. + Make table/figure rendering sensitive to caption position settings. * OpenDocument writer: + Make table/figure rendering sensitive to caption position settings. * Typst writer/template: + Implement figure caption positions by triggering a show rule in the default template, which determines caption positions for figures and tables globally. + Don't include trailing semicolon after `@` style citations with suffixes (#10148). + Template: move header-includes before show doc (#9996, Gordon Woodhull). * LaTeX writer: + Make table/figure rendering sensitive to caption position settings (#5116). + Preserve locator labels with `--natbib` (#10057). * HTML writer/template: + Make `<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. + Use `makeSectionsWithOffsets` for `writerNumberOffsets`, instead of the old, inefficient code. + Don't add doc-biblioref role to every link in a citation; only to links to the bibliography (#10156). + Add `data-` when rendering `label` attribute (#10048). * Markdown writer: + Avoid emitting markdown caption if table has fallen back to raw HTML, which will then contain a `<caption>` tag (#10094). + Make math sensitive to `tex_math_gfm` extension (#9121). This means that in GFM output, the "new style" math will be used by default, e.g. $`x=y`$ ```math x = y ``` To defeat this and get the older behavior, namely $x=y$ $$x=y$$ one could use `-t gfm-tex_math_gfm`. * AsciiDoc writer: + Add `link:` prefix when needed (#10105). AsciiDoc requires it except for `http`, `https`, `irc`, `mailto`, `ftp` schemes (#10105). + Preserve original base level (#10062). We used to normalize so that the base level is always 1, but asciidoc no longer seems to care about that, and the behavior creates difficulties when we are converting fragments. + Don't emit empty figure caption (#10047). * ODT writer: + Add TableCaption to styles.xml (#10058, Ian Max Andolina). * LaTeX template: + Fix wrong beamer color in (sub)section page (Jonathan). * Text.Pandoc.Options: + Add `CaptionPosition` and new `WriterOptions` fields `writerFigureCaptionPosition` and `writerTableCaptionPosition` [API change]. * Text.Pandoc.Opt: + Change default for optNumberOffset to `[]`. This behaves the same as `[0,0,0,0,0]`. + Add `Opt` fields `optFigureCaptionPosition` and `optTableCaptionPosition` [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 (#10141). This means that `https://emacs.org/` will be treated as HTML, while `https://emacs.org/sample.org` will be treated as Org. * Text.Pandoc.URI: + Add unofficial `gemini:` to list of URI schemes (Pau RE). * Text.Pandoc.Shared: + Add `makeSectionsWithOffsets` [API change]. + Remove `stripEmptyParagraphs [API change] (Albert Krewinkel). This function is no longer used. * 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: + Clarify that the `--number-offset` option should only directly affect numbering of the first section heading in a document; subsequent headings will increment normally. + Fix asciidoc link (#10039). + Fix CSL Docs broken link (#10100, Tristano Ajmone). + Document the use of `luatexja` when CJKmainfont is used with lualatex (#3873, Kolen Cheung). + Add a `citations` (typst) section to the manual (#9127). + Clarify that `citations` affects both input and output for `org`. + Add note on `--citeproc` that you may need to disable `citations` extension on the output format (e.g., `-t markdown-citations`) to see the rendered citation (#9127, #10012). * INSTALL.md — reorganise info on static binaries and add conda-forge install options (#10098, #10069, Ian Max Andolina). * Mon Jul 29 2024 Peter Simons <psimons@suse.com> - Update pandoc to version 3.3. Upstream has edited the change log file since the last release in a non-trivial way, i.e. they did more than just add a new entry at the top. You can review the file at: http://hackage.haskell.org/package/pandoc-3.3/src/changelog.md * Mon Jun 24 2024 Peter Simons <psimons@suse.com> - Update pandoc to version 3.2.1. [#]# pandoc 3.2.1 (2024-06-24) * Fix `gfm_auto_identifiers` to replace emojis with their aliases, as documented (#9876). * CSV reader: + Turn line breaks into LineBreaks not SoftBreaks (#9797). * Docx reader: + Support task lists (#8211). + Fix a small bug in parsing delimiters in numbered lists, which led to the default delimiter being used wrongly in some cases. + Improve handling of captions. - Turn captioned images into Figure elements. Closes #9391. - Improve the logic for associating elements with captions (#9358). - Ensure that captions that can't be associated with an element aren't just silently dropped (#9610). + Support HorizontalRule. We support both pandoc-style and the style described on a Microsoft support page, an empty paragraph with a bottom border (#6285). + React to `"left"` value on `jc` attribute. + Handle column and cell alignments (#8551). We take the column alignments from the first body row. + Fix a bug that caused comments inside insertions or deletions to be ignored (#9833). * HTML reader: + Better handle non-`li` elements in `ul` and `ol` (#9809). For example, a `p` after a closed `li` will be incorporated into the previous `li`. This mirrors what browsers do with this invalid HTML. * LaTeX reader: + Fix parsing of dimensions beginning with `.`, e.g. `\kern.1pt` (#9902). * Markdown reader: + Allow author-only textual citations (#7219). E.g. `-@reese2002` outside of brackets. * RST reader: + Tighten up rules for when emphasis can start (#9805). + Support `:cite:` role with citeproc (#9904). A subset of the functionality of the sphinxcontrib-bibtex extension to Sphinx is supported. * Textile reader: + Don't let spans begin right after a symbol (#9878). * Texinfo writer: + Ensure proper escaping in all node/link contexts. + Target node rather than anchor when possible in internal links. + Remove illegal characters from internal link anchors (#6177). + Use two commas not one in `@ref`. + Don't add anchors to headings. We don't need them, now that we make internal links use the node. + Avoid duplicate node names. + Improve menus. Properly handle the case where the node name is different from the descriptive title. * Texinfo template: add variables for filename and version. * Typst reader: + Fix an incomplete pattern match (#9807). + Handle inline bodies ending in a parbreak. E.g. ``` `#strong[ test ] ``` * ConTeXt template: remove `\setupbackend[export=yes]` (#9820). * Docx writer: + Omit `jc` attribute on table cells with AlignDefault (#5662). + Better formatting for task lists. Task lists are now properly formatted, with no bullet (#5198). + Replace an expensive generic traverse to remove Space elements, for better performance. + The new OpenXML template had spaces for metadata that need to be filled with OpenXML fragments with the proper shape. This patch ensures that everything is the right shape. + Wrap figures with `id` in a bookmark (#8662). + Add eastAsia font hints to `w:r` (#9817). We do this when the text in the run contains any CJK characters. This ensures that ambiguous code points (e.g. quotation marks) will be represented as "wide" characters when together with CJK characters. + Clean up Abstract Title and Subtitle in default reference docx. Center Subtitle, remove color. + Allow OpenXML templates to be used with `docx` (#8338, #9069, #7256, [#2928]). The `--reference-doc` option allows customization of styles in docx output, but it does not allow one to adjust the content of the output (e.g., changing the order in which metadata, the table of contents, and the body of the document are displayed), or adding boilerplate text before or after the document body. For these changes, one can now use `--template` with an OpenXML template. (See the default `openxml` template for a sample.) `--include-before-body` and `--include-after-body` can also now be used with `docx` output. The included files must be OpenXML fragments suitable for inclusion in the document body. + New unexported module Text.Pandoc.Writers.Docx.OpenXML. * HTML writer: + Ensure URI escaping needed for `html4` (#9905). Unicode characters need not be escaped for html5, and still won't be. + Don't emit unnecessary classes in HTML tables (#9325, Thomas Soeiro). Pandoc used to emit a `header` class on the `tr` element that forms the table header. This is no longer needed, because `head > tr` will do the same thing. Similarly, pandoc used to emit `even` and `odd` classes on `tr`s, allowing striped styling. This is no longer needed, because one can use e.g. `tbody tr:nth-child(2n)`. Compatibility warning: users who relied on these classes to style tables may need to adjust their CSS. * JATS writer: + Support `supplementary-material` in metadata for `jats_articlepublishing` (#9818). * LaTeX writer: + New method for ensuring images don't overflow (#9660). Previously we relied on graphicx internals and made global changes to Gin to force images to be resized if they exceed textwidth. This approach is brittle and caused problems with `\includesvg` (see #9660). The new approach uses a new macro `\pandocbounded` that is now defined in the LaTeX template. (Thanks here to Falk Hanisch in https://github.com/mrpiggi/svg/issues/60.) The LaTeX writer has been changed to enclose `\includegraphics` and `\includesvg` commands in this macro when they don't explicitly specify a width or height. In addition, the writer now adds `keepaspectratio` to the `\includegraphics` or `\includesvg` options if `height` is specified without width, or vice versa. Previously, this was set in the preamble as a global option. Users should attend to the following compatibility issues: - If custom templates are used with the new LaTeX writer, they will have to be updated to include the new `\pandocbounded` macro, or an error will be raised because of the undefined macro. - Documents that specify explicit dimensions for an image may render differently, if the dimensions are greater than the line width or page height. Previously pandoc would shrink these images to fit, but the new behavior takes the specified dimensions literally. In addition, pandoc previously always enforced `keepaspectratio`, even when width and height were both specified, so images with width and height specified that do not conform to their intrinsic aspect ratio will appear differently. + Task lists must be unordered (#9185). + Specify language option for `selnolig` and only include it if `english` or `german` is used (#9863). (This includes changes to the LaTeX template.) This should restore proper ligature suppression when lualatex is used. + Fix `--toc-depth` with beamer output (#9861). Previously only top-level sections were ever included in the TOC, regardless of the setting of `--toc-depth`. + Use `\linewidth` instead of `\columnwidth` or `\textwidth` for resizing figures, table cells, etc. in LaTeX (#9775). `\linewidth`, unlike the others, is sensitive to indented environments like lists. * LaTeX template: put `babel-lang` in options to beamer (#9868). This is required to make beamer use proper localized terms for things like "Section." * Markdown writer: + Don't print extra caption when using `implicit_figures`. + Ensure blank line after HTML blocks in commonmark-based formats (#9792). + Fix bug rendering block quotes in lists (#9908). * Typst writer: + Support '.typst:no-figure' and 'typst:figure:kind=kind' attributes (#9778, Carlos Scheidegger). This extends support for fine-grained properties in Typst. If the `typst:no-figure` class is present on a Table, the table will not be placed in a figure. If the `typst:figure:kind` attribute is present, its value will be used for the figure's `kind` (#9777). These features are documented in `doc/typst-property-output.md`. * Typst template: + Add subtitle (#9747, Mickaël Canouil). + Use content rather than string for title, author, date, email (#9823). This allows formatting in title, author, date, and email fields. Since the PDF metadata requires a string, and typst only converts the title to a string (not the authors), we use * Textile writer: + Get rid of header, odd, even classes on `tr` (#9376). * Text.Pandoc.Class: + `fillMediaBag`: Convert IOErrors to warnings when fetching absolute paths (#9859, Albert Krewinkel). This will allow many conversions that would have failed with an error to succeed (albeit without images or other needed resources). * Text.Pandoc.ImageSize: + Don't prefer exif width/height when they conflict with image width/height (#9871). That was a mistaken call in #6936. Usually when these values disagree, it is because the image has been resized by a tool that leaves the original exif values the same, so the width/height metadata are more likely to be correct that exif width/height. * Text.Pandoc.SelfContained: + Strip CRs from XML before base64 encoding for data URI (so tests can work on Windows). + Only create `<svg>` elements for SVG images when the image has the class `inline-svg`. Otherwise just use a `data` URI as we do with other images (#9787). * Lua subsystem (Albert Krewinkel): + Split Init module into more modules. The module has grown unwieldy and is therefore split into three internal Haskell modules, `Init`, `Module`, and `Run`. + Add function `pandoc.utils.run_lua_filter` (#9803). + Add function `pandoc.template.get` (#9854, co-authored by Carsten Gips). The function allows to specify a template with the same argument value that would be used with the `--template` command line parameter. + Keep CommonState object in the registry. The state is an internal value and should be treated as such. The `PANDOC_STATE` global is merely a copy; unsetting the global no longer breaks the Lua engine. + Allow passing an environment to `run_lua_filter`. The default is now to use a *copy* of the global environment when running a filter; this ensures better separation when `run_lua_filter` is used multiple times. A custom environment can be specified via the optional third parameter. + Set `pandoc.List` as default metatable for JSON lists (#9834). Lists created by `pandoc.json.decode` now behave like lists generated via `pandoc.List`. This also ensures that `pandoc.List` tables are encoded as JSON arrays when passed to `pandoc.json.encode`. * Text.Pandoc.Writers.Shared: export `toTaskListItem` [API change]. * Add unexported module Text.Pandoc.Char. This exports `isCJK`. Use this instead of locally defined `isCJK` in T.P.Readers.MediaWiki. * MANUAL.txt: + Remove false claim that Lua mode does not support `-i` (#9757, Ian Max Andolina). + Use level-3 headings for extensions (to avoid gaps). + Add anchor for tagging extension. + Remove explicit referencess to generate anchors. These will be linkified automatically. + Fixed links to `option--reference-doc`. + Add a note that column widths aren't supported in pptx for Divs with class `columns` (#9890). + Fix alerts example (#9826, Ian Max Andolina). + Fix markup of `babelfonts` example code (Albert Krewinkel). * `doc/custom-writers.md`: + Fix usage of Template in example (Albert Krewinkel). + Document the separator arg of `Writer.Blocks` (Albert Krewinkel). * `doc/lua-filters.md` (Albert Krewinkel): + Fix outdated documentation for math and quoting functions and fields. + Autogenerate docs for module `pandoc.template` and `pandoc.layout`. + Document operators of the "Doc" type. * pandoc-lua-engine: depend on pandoc >= 3.2 (see #9755). * Allow crypton-connection 0.4, time 1.14. * Allow tasty-quickcheck 0.11. * Use latest emojis, skylighting, skylighting-core, citeproc, djot, commonmark-extensions, typst-hs * Sat May 11 2024 Peter Simons <psimons@suse.com> - Update pandoc to version 3.2. Upstream has edited the change log file since the last release in a non-trivial way, i.e. they did more than just add a new entry at the top. You can review the file at: http://hackage.haskell.org/package/pandoc-3.2/src/changelog.md * Sun Apr 07 2024 Peter Simons <psimons@suse.com> - Update pandoc to version 3.1.13. Upstream has edited the change log file since the last release in a non-trivial way, i.e. they did more than just add a new entry at the top. You can review the file at: http://hackage.haskell.org/package/pandoc-3.1.13/src/changelog.md * Mon Mar 18 2024 Peter Simons <psimons@suse.com> - Update pandoc to version 3.1.12.3. [#]# pandoc 3.1.12.3 (2024-03-17) * Markdown reader: Fix bug with footnotes at end of fenced div (#9576). * LaTeX reader: + Improve tokenization of `@` (#9555). Make tokenization sensitive to `\makeatletter`/`\makeatother`. Previously we just always treated `@` as a letter. This led to bad results, e.g. with the sequence `\@`. E.g., `a\@ b` would parse as "ab" and `a\@b` as "a". + Make `withRaw` work inside `parseFromToks` (#9517). This is needed for raw environments to work inside table cells. + Better handling of table colwidths (#9579). Previously the parser just failed if the column width specified in `p{}` wasn't a multiple of `\linewidth`. This led to cases where content was skipped. * Typst writer: + Add 'kind' parameter to figures with tables (#9574). + Avoid unnecessary box around image in figure (#9236). + Omit width/height in images unless explicitly specified (#9236). Previously we computed width/heigth for images that didn't have size information, because otherwise typst would expand the image to fit page width. This typst behavior has changed in 0.11. This change fixes a bug in which images would sometimes overflow page margins, depending on their intrinsic size. + Don't add hard-coded `inset` to tables (#9580). Instead, set this globally in the default template, allowing it to be customized. * LaTeX template: Fix block headings support for unnumbered paragraphs (#9542, #6018, Oliver Fabel). * HTML templates: Replace polyfill provider (#2384, @SukkaW). Replace polyfill.io with cdnjs.cloudflare.com/polyfill. polyfill.io has been acquired by Funnull, and the service has become unstable. * Korean translations: delete colon in translation for 'to'. This was invalid YAML, and not desired anyway, since a colon is added. * Use latest commonmark, commonmark-extensions. This fixes a 3.12 regression in parsing of commonmark/gfm autolinks (jgm/commonmark-hs#151). * Depend on djot 0.1.1.3, which fixes a serious parsing bug affecting regular paragraphs after lists. * Depend on latest skylighting, skylighting-core, typst-hs, texmath. * MANUAL.txt: Change broken link to IDML cookbook (#9563). * Fri Mar 01 2024 Peter Simons <psimons@suse.com> - Update pandoc to version 3.1.12.2. [#]# pandoc 3.1.12.2 (2024-02-29) * Docx reader: + Ensure that table captions are counted (#9518). + Detect caption by style name not id (#9518). The styleId can change depending on the localization. + Avoid emitting empty paragraph where caption was. * Markdown reader: fix regression in link parsing with wikilinks extensions (#9481). This fixes a regression introduced in 3.1.12. * Org reader/writer: support admonitions (#9475). * Org writer: omit extra blank line at end of quote block. * Typst writer: ensure that `-`, `+`, etc. are escaped at beginning of block (#9478). Our recent relaxing of escaping (#9386) caused problems for things like emphasized `-` characters that were rendered using `#strong[-]#`. This now gets rendered as `#strong[\-]`. * LaTeX writer: fix bug when a language is specified in two different ways (#9472). If you used `lang: de-DE` but then had a span or div with `lang=de`, the preamble would try to load `ngerman` twice, leading to an error. This fix ensures that a language is only loaded once. * Docx writer: Don't copy over `footnotePr` in `settings.xml` from reference.docx (#9522). * EPUB writer: omit EPUB2-specific meta tag on EPUB3 (#9493). This caused a validation failure in epubs with cover images. * Lua: avoid crashing when an error message is not valid UTF-8 (Albert Krewinkel). * Text.Pandoc.SelfContained: + Add `role="img"` to svgs. + Add `aria-label` to svg elements with `alt` text if present. Screen readers ignore `alt` attributes on svg elements but do pay attention to `aria-label` (#9525). * Text.Pandoc.Shared: Fix regression in section numbering in `makeSections` (#9516). Starting with pandoc 3.1.12, unnumbered sections incremented the section number. * Text.Pandoc.Class: fix `openUrl` TLS negotiation (#9483). With the release of TLS 2.0.0, the TLS library started requiring Extended Main Secret for the TLS handshake. This caused problems connecting to zotero's server and others that do not support TLS 1.3. This commit relaxes this requirement. * Depend on djot 0.1.1.0 (fixes rendering on multiline block attributes). * Use new releases of skylighting-format-blaze-html (#9520). Fixes auto-wrapping of long source lines in HTML print media. * Use new commonmark-extensions (fixes issue with the `rebase_relative_paths` extension when used with commonmark/gfm. * Makefile: improve epub-validation target (#9493). Use `--epub-cover-image` to catch issues that only arise with that. * Fri Feb 23 2024 Andreas Schwab <schwab@suse.de> - Reduce memory constraints * Sun Feb 18 2024 Peter Simons <psimons@suse.com> - Update pandoc to version 3.1.12.1. Upstream has edited the change log file since the last release in a non-trivial way, i.e. they did more than just add a new entry at the top. You can review the file at: http://hackage.haskell.org/package/pandoc-3.1.12.1/src/changelog.md * Sat Jan 06 2024 Peter Simons <psimons@suse.com> - Update pandoc to version 3.1.11.1. [#]# pandoc 3.1.11.1 (2023-01-05) * Docx reader: + Fix HYPERLINK with only switch and no argument (#9246). * Org reader: + Parse caption and label for grid tables (#9279). * MediaWiki reader: + Handle multiline math in list items (#9293). * OPML writer: + Respect `--wrap` options & `--columns` in contents of notes (#9297). * ODT/OpenDocument writers: + Properly handle highlighting styles (#9287). These styles were going into an `office:styles` element in `content.xml`, but this is invalid. Instead they must go in `styles.xml`. The variable `highlighting-styles` no longer has any effect on the default opendocument template, and highlighting styles are not included in `opendocument` output. * Markdown writer: + Add table identifier at end of caption if present (#9279). * Text.Pandoc.PDF: + Expand list of environment variables to display in verbose output (#9303). + Ensure that we find all the LaTeX warnings requiring a rerun (#9284). This should fix a regression from 3.1.9 that led to incorrect alignments in tables (and possibly other issues). * Docx writer: + Ensure that pandoc's output validates (Edwin Török, #9273, #9269, John MacFarlane, #9265, #9266, #9264). + Don't emit empty table rows, which seem to cause problems for Word (#9224). * LaTeX writer: + Omit superfluous page locator label when used with `--natbib` or `--biblatex` (#9275). These will treat a bare number as a page locator, and they will be able to localize it. Note that the recognition of the locator label is locale-sensitive; if `lang` is `de`, then `S. 33` is a page reference, and `p. 33` is not! * Text.Pandoc.Chunks: Fine tune `makeChunks` (#9281). + Ensure that chunks not based on sections (those with the "preamble" class) get unique identifiers, by appending chunk number. + This will also ensure that they get unique path names when the path is generated from the identifier. * Default HTML5 template: remove html5shiv (and support for IE < 9). * Makefile: + Fix `make quick-stack`: `j` was expecting a number (Edwin Török). + Run built pandoc (instead of pandoc in path). + Add `validate-epub` target, using `epubcheck` to test the golden files. + Add `validate-docx-golden-tests` target. * Sat Dec 16 2023 Peter Simons <psimons@suse.com> - Update pandoc to version 3.1.11. [#]# pandoc 3.1.11 (2023-12-15) * Typst writer: + Emit `;` after typst code, unless followed by space (#9252). Otherwise there's the potential that the typst code will swallow up a following character. * Text.Pandoc.Logging: + Add `MakePDFWarning` constructor to LogMessage [API change]. + Add `MakePDFInfo` constructor to LogMessage [API change]. * Text.Pandoc.PDF: + LaTeX warnings are passed on to the user as warnings. + Use `report` with `MakePDFWarning` and `MakePDFInfo` to relay verbose information and warnings, instead of writing directly to stderr. + Parse logs to determine whether additional runs needed, instead of running a fixed number of times (#9255). (The number of times that was appropriate given pandoc's default templates didn't always work for custom templates, and thus pandoc 3.1.10's change in the number of runs led to some regressions in PDF production.) * Makefile: in `make prelease`, add checks that pandoc-cli and pandoc have the same version, that pandoc-cli depends on this exact version of pandoc, that there is an entry for this version in the changelog, and that the version numbers in the generated man pages are correct. * Regenerate man pages with pandoc 3.1.10. This properly escapes hyphens and fixes version numbers in man pages for `pandoc-server` and `pandoc-lua`. * Depend on texmath 0.12.8.6. This omits unneeded `lr`s in typst math output. * Depend on typst 0.5. This allows the typst reader to support multiline strings, the version type, and the `as` keyword with `import`. * Tue Dec 12 2023 Peter Simons <psimons@suse.com> - Update pandoc to version 3.1.10. [#]# pandoc 3.1.10 (2023-12-12) * Link pandoc-cli version to pandoc version. Henceforth pandoc-cli's version will be synchronized with pandoc's, and pandoc-cli will depend on an exact pandoc version. This will avoid confusion by ensuring that `cabal install pandoc-cli-X.Y.Z` installs pandoc version X.Y.Z. It will make things more straightforward for upstream packagers (see #9232). This scheme does not follow the Haskell PVP, but that should cause no harm, because this package does not expose a library. * Add `alerts` markdown extension. This enables GitHub style markdown alerts as a commonmark extension. This extension is now default for `gfm`. It can't be used with `markdown`, only with `commonmark` and variants. * Markdown reader: + Preserve newlines in math instead of changing to spaces. Otherwise we can get unwanted results if there's a `%` comment (#9193). + Make attributes work with reference links (#9171). * HTML reader: + Improve handling of invalidly nested sublists (#9187, cf. #8150). * MediaWiki reader: + Allow attribute keys with hyphens (#9178). * ODT reader: + Support attr `text:continue-numbering` (#8979, Stephan Meijer). * Typst reader: + Allow references (e.g. `@foo`) to become citations if there is no corresponding label in the document. + Collapse adjacent `cite` elements. + Handle supplements in `cite`. + Change `cite` (only one key allowed, a label) (typst 0.9 breaking change). + Support `quote` element (typst 0.9). * LaTeX reader: + Handle otherlanguage environment and language-name environments like `\begin{french}...\end{french}` (#9202). + Fix theorem label parsing (#8872, Hikaru Ibayashi). * Docx reader: + Unwrap content of shaped textboxes (Stephan Meijer, #9214). + Improve handling of `w:sym` (#9220). We now look up symbols in symbol fonts using the table defined at Text.Pandoc.Readers.Docx.Symbols. + Add unexported module Text.Pandoc.Readers.Docx.Symbols. This gives us a table to use to resolve characters included in docx via `w:sym` element. * Man reader: + Properly handle `.sp` macro inside lists and block quotes (#9201). * LaTeX writer: + Fix bug with big footnotes inside emphasis (#8982, Hikaru Ibayashi). + Handle identifiers inside heading contents. `\phantomsection` can't be used in this case, so we need `\hypertarget` (#9209). * LaTeX template: + Include `bookmark` package unconditionally. This package produces better PDF bookmarks than `hyperref` and does it on the first pass. * Typst writer: + Use `quote` for block quotes. + Support `--toc-depth` as in other writers (#9242). + Put inline image dimensions on enclosing box, not image (#9104). + Better handling of tables with captions (#9194). We now put these in a figure with a caption argument. + Update typst writer to typst 0.9 citation format (#9188). * Typst template: + Remove custom definition of `blockquote` in default template. (We now use built-in `quote`.) + Support table of contents. + Support csl (#9186, Ian Max Andolina). Typst now supports CSL for its native citation engine, so pandoc should use a specified `csl` style in the template, falling back to `bibliographystyle` if `csl` is not specified. * Docx writer: + Use different style for block quotes in notes (#9243). Using "Footnote Block Text" for the style name, so it can be given a different font size if footnotes are. + Allow embedded fonts to be used in reference.docx (#6728). * HTML5 writer: + To conform to validator's expectations, `doc-footnote` role is used with `aside` and `doc-endnotes` with `section`. + `aside` is used only for notes at ends of sections or blocks; if all the notes come at the end of the document, `section` is used so we can have the `doc-endnotes` role. * JATS writer: + Handle case where there is material after refs div (#9166). Previously in such cases the references were not being moved to back matter. * Ms writer: + Don't do normal escapes in filename arguments for PSPIC etc. * T.P.RoffChar: escape `-` as `\-`. The `groff_man (7)` man page indicates that `-` characters will be treated as typographic hyphens and are not appropriate for cases where the output should be copy-pasteable as an ASCII hyphen-minus character. (E.g. in command line options.) However, until a recent update groff man did not actually do this; it treated `-` and `\-` the same. With the new update (1.23.0) the two are distinguished (see https://lwn.net/Articles/947941/ for background), so now it is important that pandoc escape `-`. * Text.Pandoc.Extension: add `Ext_alerts` constructor [API change]. * Text.Pandoc.PDF: We now default to running LaTeX only once in producing a PDF (instead of twice). This is made possible by the shift to the `bookmark` package, which does not require a second pass for PDF bookmarks. If a table of contents is present, we still have to run three times to get the page numbers, and if beamer is used we still do a minimum of two runs. * Text.Pandoc.Shared: + `renderTags'`: use minimized tag for `rect`. + Allow svg `path` element to be minimized. + Export `combineAttr` [API change]. + Improve `isTightList` so that it recognizes an item containing only a list which is itself tight as potentially an item in a tight list (#9161). * Text.Pandoc.MIME: Ensure we use `.svg` not `.svgz` as extension for `image/svg+xml` mime type. This fixes issues with embedded SVG images in docx output, among other things (#9195). * Text.Pandoc.Class: `openURL` improvements for data uris. Only treat data URI as `base64` if ';base64' is specified. Otherwise treat as UTF-8 (not 100% reliable but should cover most other cases). Strip off `;base64` (or `;charset=...` or whatever) from mime type (#9195). * Text.Pandoc.SelfContained: Improve treatment of embedded SVGs (#9206, #8948). + Ensure unique ids for elements by prefixing SVG id. + Ensure SVG `id` attribute except when `use` element is used. + Remove `width`, `height` attributes from svg element when `use` element is used. Instead, add `width` and `height` 100% to the `use` element. This seems to get the sizing right. * Text.Pandoc.Citeproc: Don't link citations if `suppress-bibliography` specified, for there will be nothing to link to (#9163). * epub.css: add styling for sup and sub (#9160). * Switch from `base64` to `base64-bytestring` (#9233). * Use newest versions of commonmark, commonmark-extensions, commonmark-pandoc, texmath, typst, skylighting, skylighting-core. * Benchmark: use standalone documents for reader tests. Otherwise typst reader benchmark fails. Note: this means that we are now parsing longer documents, so bench results on readers won't be comparable to before. * MANUAL.txt: update defaults file docs for bibliography fields (#9173). Recommend using top-level `bibliography` `csl`, etc. instead of a nested `metadata` field. Reason: `${USERDATA}` and `${HOME}` are only expanded in these contexts, not in `metadata`. * Move man pages to pandoc-cli package (#9245). * Sat Oct 28 2023 Peter Simons <psimons@suse.com> - Drop obsolete "CVE-2023-38745.patch" and "CVE-2023-35936.patch". - Update pandoc to version 3.1.9. [#]# pandoc 3.1.9 (2023-10-27) * Make `reference-section-title` work with `jats+element_citations` (#9021). * Add `bits` as synonym of `jats` as input format. * JATS reader: + Modify JATS reader to handle BITS too (#9138, Julia Diaz). Add provision for title-group, book, book-part-wrapper, book-meta, book-part-meta, book-title, book-title-group, index, toc, legend, title, collection-meta + Fix handling of alt-text (#9130, Julia Diaz). Previously we were looking for an attribute that doesn't exist in JATS; alt-text is provided by a child element. * CommonMark reader: + Handle `Ext_tex_math_gfm` (#9121). Parse GFM-specific math constructions when `tex_math_gfm` enabled. * DokuWiki reader: + Allow autolinks to be avoided using e.g. `https:%%//%%...` (#9153). + Parse `<code>` and `<file>` as block-level code (#9154). Previously we treated them as inline code in some contexts, but that is not how DokuWiki works. * LaTeX reader: + Better handle spacing commands `\hfill`, `\vfill`, `\hskip`, `\vskip`, etc. (#9150). + Fix incorrect abbreviation for astronomical unit (#9125, Michael McClurg). * Markdown reader: + Fix blindspot with superscript in links (#8981). Previously `[^super^](#ref)` wasn't parsed as a link, due to code that was meant to prevent footnote markers from being recognized as reference links. This commit tightens up that code to avoid this bad effect. We have also added a new restriction on footnote labels: they cannot contain the characters `^`, `[`, or `]`. Though this is technically a breaking change, we suspect that the impact will be minimal, as it's very unlikely people would be using these characters in their note labels. + Don't apply `--default-image-extension` to data URIs (#9118). + More accurate check that a normalCite is not a link, bracketed span, or reference (#9080). * HTML reader: + Allow th to close td and vice versa (#9090). + Parse task lists using input elements (#9047, Seth Speaks). * Creole reader: + Handle empty cells correctly (#9141, Sascha Wilde). * Org writer: + Escape literal `*`, `|`, `#` at beginning of line with ZWS (#9159). * ICML writer: + Prevent doubled attributes (#9158). * Powerpoint writer: + Fix a corruption error caused when the document used both a regular png and a png in a data URI (#9113). (Similarly for any other image format.) The problem was that duplicate entries in `[Content Types].xml` were being created, one for the mime type `image/png`, one for `image/png;base64`. * LaTeX writer: + Fix rowspans in tables so they use the width of the column (`=` as the width parameter) (#9140). + Don't treat table as "simple" if they have col widths. This should help fix a problem wherein some grid tables with colspans were overly wide (#9140). + Fix uneven indents in line block output (#9088). * JATS writer: fix 3.1.4 regression in handling block-level metadata (#9092). * Ms writer: improvements in image handling (#4475). + PDFPIC is now used for PDF images in figures. + Inline images that are postscript or PDF are rendered using PSPIC or PDFPIC. This isn't ideal, because they will still be rendered as if in a separate paragraph, but it's probably better than just printing the image name. + Units are included in height. * HTML writer: + If raw format is an HTML side deck format, emit it (James J Balamuta). * Typst writer: + Add `#box` around image to make it inline. (#9104) An `#image` by itself in typst is a block-level element. To force images to be inline (as they are in pandoc), we need to add a box with an explicit width. When a width is not given in image attributes, we compute one from the image itself, when possible. + Don't allow long heading to wrap (#9132). + Escape `(` (#9137). If unescaped `(` occurs in certain contexts, it can be parsed as function application. * Man writer: + Fix some spacing issues around links (#9120). We need to use `\c` before a `.UR` or `.MT`, to avoid an extra space, and also after. To ensure that a space at the beginning of the following line doesn't get swallowed up, we escape it with `\`. + Use UR, MT macros for URLs, emails (#9120). * Text.Pandoc.Extensions: + Add `Ext_tex_math_gfm` constructor to Extension (#9121). [API change]. This handles two GitHub-specific syntaxes for math. This is now default for `gfm`, in addition to `tex_math_dollars`. + Remove duplicates for `Ext_raw_html` and `Ext_pipe_tables` in some of the lists (Tim Stewart). * Text.Pandoc.Metadata: Add helpful message on some metadata YAML errors (#9155). * Text.Pandoc.Shared: + `splitSentences`: don't split after initials. This improves the man and ms writer output, preventing sentence breaks after initials. + Add `addPandocAttributes` function [API change]. This is meant to simplify addition of attributes to Pandoc elements: for elements that don't have a slot for attributes, an enclosing Div or Span is added to hold the attributes. * MANUAL.txt: + Clarify that formatting can't cross line boundaries in line blocks (#9119). + Fix legacy option for citation (#8737, 3w36zj6) * Update `et` translations (priiduonu). * Updated `no` translations (Stephan Daus). Renamed no.yaml (macrolanguage Norwegian) to nb.yaml (Norwegian Bokmål). Created soft symbolic link from no.yaml pointing to nb.yaml. * Lua subsystem: Use the newest LPeg version (lpeg-1.1.*) (#9107, Albert Krewinkel). * Default `epub.css`: Apply style to h6, format styles, and combine identical styles under shared selectors (samuel-weinhardt). * Update nix flake with dependencies (piq9117). * LaTeX template: fix `\CSLBlock` vertical space (John Purnell). * Allow tasty 1.5 and Diff 0.5. * Require commonmark-extensions 0.2.4, commonmark 0.2.4. * Require texmath 0.12.8.4. This should improve math in powerpoint, fixing empty boxes around roots in some cases. * Require typst 0.3.2.1 [#]# pandoc 3.1.8 (2023-09-08) * JATS reader: + Ignore `<processing-meta>` element (#9057, Julia Diaz). + Fix conversion of date to ISO 8601 format (#8865). * LaTeX template: + Add code allow `\cite` to break across lines (#9050). + Fix regression with CSL `display="block"` (#7363). This restores the line break before the block. + Rewrite `CSLReferences` environment to avoid depending on `enumitem`, which plays badly with beamer. Instead we use a regular list environment. Thanks to @jpcirrus for the concept (#9053). + Restore the pre-3.1.7 format of the `CSLReferences` environment, which again has two parameters. The first determines whether a hanging indent is used (1 = yes, 0 = no), and the second is the entry line spacing (0 = none). + Add a strut to avoid inconsistencies in spacing (#9058). - Remove a break at the end of `CSLRightInline` to avoid inconsistencies in spacing. It shouldn't be necessary because the paragraph should extend to the right margin (#9058). * LaTeX writer: + Fix regression with figure labels (#9045). In 3.1.7, pandoc added two labels to LaTeX figure environments, one with a phantomsection. + Fix default citeproc entry-spacing. According to the CSL manual, the default entry spacing is 1. We were treating it as 0 (#9058). * HTML writer: + Use the ID prefix in the ID for the footnotes section (#9044, Benjamin Esham). + Fix CSL entry-spacing default (#9058). * Text.Pandoc.Citeproc: always include an `entry-spacing` attribute in the Div if the bibliography element contains an entry-spacing attribute (previously we omitted it when it was 0) (#9058). * Clean up pandoc's own man pages by regenerating with pandoc 3.1.7. * pandoc-lua-engine: bump lower bound for pandoc (#9046). * Depend on texmath 0.12.8.2, fixing binom in typst writer (#9063). [#]# pandoc 3.1.7 (2023-08-31) * Org reader: + Don't parse alphabetical lists unless the `fancy_lists` extension is enabled (#9042). + Allow escaping commas in macro arguments (Amneesh Singh). * JATS reader: + Support for `<permissions>` metadata (#9037, Julia Diaz). metadata objects with multiple fields are created, matching the structure in JATS. + Correct name of JATS element `attrib`. * Markdown reader: + Support images with wikilink syntax, e.g. `![[foo|bar]]`, when one of the `wikilinks` extension is enabled (#8853). + Allow a citation or reference link to be parsed after a `!` (#8254). + Fix dropped `!` before nonexistent reference (#9038). * LaTeX writer: + Fix regression in escaping URLs (#9043). + Use `\cite` and `\bibitem` to link up citations, even with citeproc. (#9031). This will give us better accessibility; when tagging is enabled, the citation can be linked to the bibliography entry. This changes some of the details of the layout and the default template. We now make `CSLReferences` a special enumitem list that will contain `\bibitem`s. Internal links inside citations to ids beginning in `ref-` are creating using `\cite` instead of `\hyperref`. + Use `\phantomsection` and `\label` instead of `\hypertarget` (#9022). + Use `\hyperref` for LaTeX internal links, `\hyperlink` for beamer (since `\hyperref` doesn't seem to work) (#9022). + Backslash-escape `%` and `#` in URLs (#9014). * JATS writer: + Fix placement of ref-list when no title is specified for the reference section (#9017). (In this case we place it in `back` with an empty title.) * Man writer: + Avoid a `.PP` right after a section heading (#9020). This is at best a no-op (in groff man and mandoc) and at worst (in some formatters) may create extra whitespace. + We revert the fanciness introduced in #7506, which employs a custom font name `V` and a macro that makes this act like boldface in a terminal and monospace in other formats. Unfortunately, this code uses a mechanism that is not portable (and does not work in mandoc) (#9020). + Instead of using `V` for inline code, we simply use `CR`. Note that `\f[CR]` is emitted instead of plain `\f[C]`, because there is no `C` font in man. (This produces warnings in recent versions of groff, #9020.) + For code blocks, we now use the `.EX` and `.EE` macros, together with `.IP` for spacing and indentation. This gives more standard code that can be better interpreted e.g. by mandoc (#9020). * Man template: don't emit `.hy`, regardless of setting of `hyphenate` variable (#9020). * LaTeX template: special redefinition of `\st` for CJK (#9019). soul's version raises on error on CJK text. * Use latest skylighting-format-blaze-html (#7248). This works around a longstanding iOS Safari bug that caused long lines to be displayed in a different font size in highlighted code. * Allow skylighting 0.14 (and require it in pandoc core). * Allow text 2.1. [#]# pandoc 3.1.6.2 (2023-08-22) * Org reader: allow example lines to end immediately after the colon (Brian Leung). * Docx reader: + Omit "Table NN" from caption (#9002). + Avoid spurious block quotes in list items (#8836). * JATS reader: Fix display of block elements (#8889, Julia Diaz). A number of block elements, like disp-quote, list, and disp-formula, were always treated as inlines if appearing inside paragraphs, even if their usage granted a separate block. * HTML reader: avoid duplicate id on header and div (#8991). * Typst writer: + Use `~` for nonbreaking space, and escape literal `~` (#9010). + Put the label in right place for Div, use `#block` (#8991). Previously we were putting the label at the beginning of the Div's contents, but according to the documentation such a label gets attached to the *preceding* element. We now use an explicit `#block` and add the label at the end. * LaTeX writer: + Improve escaping of URIs in href, url (#8992). + Improve internal links and targets (#8744). We no longer wrap section headings in a `\hypertarget`. This is unnecessary (hyperref creates an anchor based on the label) and it interferes with tagging. In addition, we now use `\hyperref` rather than `\hyperlink` for internal links. Currently `\hypertarget` is still being used for link anchors not on headings. Thanks to @u-fischer. * HTML format templates (style.html): Fix typo in clause for svg (Jackson Schuster). * Use lastest texmath, typst-symbols, typst. Targets typst 0.7. [#]# pandoc 3.1.6.1 (2023-08-11) * HTML reader: properly calculate RowHeadColumns (#8984). This fixes a bug in the calculation of the number of header columns in table row. It also changes the algorithm for determining the table body's RowHeadColumns based on the numbers of head columns in each row. Previously we used the max, and #8634 switched to the min, which led to bad results. Now we only set RowHeadColumns to a non-zero value if *all* rows have the same number of head columns. * OpenDocument writer: + Implement syntax highlighting for inline and block code (#6710). + Support highlighted text in ODT/OpenDocument writers for Span with class `mark` (#8960). The color can be adjusted by modifying the Highlighted style. * Typst writer: escape `//` so it doesn't get interpreted as a comment (#8966). * ChunkedHTML writer: Fix regression including MathJax script (#8967). The fix for #8620 caused the script to be included when the table of contents but not the body text of a page contains math. But it broke the case where the table of contents doesn't contain math but the page does. This patch fixes the issue. * Text.Pandoc.SelfContained: + Retain attributes in SVG tag when referring to another SVG's content using `<use>` (#8969). + Allow units in width and height for SVG. Units are optional but allowed. + Don't coerce calculated SVG dimensions to Int. + fix calculation of SVG width and height. We were computing width and height from viewBox incorrectly (#8969). + Add clause for SVG to default CSS for HTML (#8969). + Ensure that width and height attributes don't get specified twice is both the img tag and the svg include them (#8965). + Omit unnecessary attributes xmlns, xmlns:xlink, and version on SVG element (#8965). + Use 20 character rather than 40 character hashes for generated IDs (#8965). * Use pandoc-types 1.23.1. This fixes a regression with toJSONFilter (#8976), which in 1.23.0.1 no longer worked on pure values of type `a -> [a]`. * Use ghc 9.6 for release builds (#8947). * Fix some links in FAQs (Diogo Almiro). [#]# pandoc 3.1.6 (2023-07-20) * Fix CVE-2023-38745, a variant of the vulnerability in CVE-2023-35936. Guilhem Moulin noticed that the fix to CVE-2023-35936 was incomplete. An attacker could get around it by double-encoding the malicious extension to create or override arbitrary files. * `--embed-resources`: Use inline SVG instead of data uris for SVG images in HTML5 (#8948). Note that SelfContained does not have access to the writer name, so we check for HTML5 by determining whether the document starts with `<DOCTYPE! html>`. This means that inline SVG won't be used when generating document fragments. * Fix regression on short boolean arguments (#8956). In 3.1.5 boolean arguments were allowed an optional argument (`true|false`). This created a regression for uses of fused short arguments, e.g. `-somyfile.html`, which was equivalent to `-s -omyfile.html`, but now raised an error because pandoc attempted to parse `o` as a boolean `true` or `false`. This change allows the fused short arguments to be used again. Note that `-strue` will be interpreted as `-s` with an argument `true`, not as `-s -t -rue`. It is best to use long option names with the optional boolean values, to avoid confusion. * Make `--epub-title-page`'s argument optional. It takes a boolean argument, and now that all of our boolean flags take such an argument, we can make this one optional for consistency. * Improve errors for illegal output formats. Previously if you did `pandoc -s -t bbb`, it would give you an error about the missing `bbb` template instead of saying that `bbb` is not a supported output format. * Improve errors for incorrect command-line option values (#8879). Always give the name of the relevant argument. * Fix typo on error message for incorrect `--preserve-tabs` argument. Thanks @fsoedjede * Docx reader: use SVG version of image if present (#7244). Previously the backup PNG was exported even if an SVG was present, but the SVG should be preferred. * Typst reader: fix regression in recognition of display math (#8949). The last release caused all math to be parsed as inline math. * JATS writer: don't use `<code>` for inline code (#8889). It is intended for block-level code. * HTML writer: don't make line blocks sensitive to `--wrap` (#8952). * RST writer: fix figure handling (#8930, #8871). This fixes a number of regressions from pandoc 2.x. Properly handle caption, alt attribute in figures. No longer treat a paragraph with a single image in it as a figure (we have a dedicated Figure element now). * Docx writer: Copy "mirror margins" property from reference.docx (#8946). * Text.Pandoc.UTF8: Deprecate `decodeArg` which is now a no-op. This was needed for old base versions which we no longer support. * Use released skylighting, typst. * Allow latest commonmark-extensions. This allows entities in wikilinks. * Switch back to using ghc 9.2 for linux and Windows binary releases (#8947, #8955). With ghc 9.4+, we were getting AVX instructions in the amd64 binary, which aren't supported on older hardware. For maximum compatibility we switch back to ghc 9.2, which doesn't cause the problem. (As documented, ghc should not be emitting these instructions, so we aren't clear on the diagnosis, but the cure has been tested.) * Change Windows release build to use cabal instead of stack. [#]# pandoc 3.1.5 (2023-07-07) * Allow all boolean flags to take an optional `true` or `false` value (#8788, Sam S. Almahri). The default is true if no value is specified, so this is fully backwards-compatible. * Support `--id-prefix` for markdown output (#8878) * Markdown reader: + Add strictness annotations to fix a memory leak (#8762). * Typst reader: + Use typst-hs 0.3.0.0, which is more robust, fixes many bugs, and targets typst 0.6. + Package loading is now supported, as long as the package has been cached or is local. + Rewrite Typst reader in a way that makes it easier to extend. + Filter out CR in raw. + Handle block content for link element. + Handle block-level content in text element. + Handle style, align, place in inline contexts too. + Improve info message for skipped elements. * Add typst reader tests (#8942). * MediaWiki reader: + Revise treatment of "link trail." Previously we only included ASCII letters. That is correct for English but not for, e.g., Spanish (see comment in #8525). A safer approach is to include all letters except those in the CJK unified ideograph ranges. * AsciiDoc writer: + Make modern AsciiDoc the target for `asciidoc` (#8936). The AsciiDoc community now regards the dialect parsed by `asciidoctor` as the official AsciiDoc syntax, so it should be the target of our `asciidoc` format. The `asciidoc` output format now behaves like `asciidoctor` used to. `asciidoctor` is a deprecated synonym. For the old `asciidoc` behavior (targeting the Python script), use `asciidoc_legacy`. The templates have been consolidated. Instead of separate `default.asciidoctor` and `default.asciidoc` templates, there is just `default.asciidoc`. + Text.Pandoc.Writers.AsciiDoc API changes: - `writeAsciiDoc` now behaves like `writeAsciiDoctor` used to. - `writeAsciiDoctor` is now a deprecated synonym for `writeAsciiDoc`. - New exported function `writeAsciiDocLegacy` behaves like `writeAsciDoc` used to. + Update line-through for asciidoc writer to custom inline style (#8933, Kevin Broch). * Typst writer: + Support `unlisted` class in headings (#8941). + Consolidate bibliography files into one `#bibliography` command (#8937). + Improve handling of autolinks (#8931). * Docx writer: + Make relative widths work in tables. This didn't work before because we were missing an attribute that tells Word to used fixed widths rather than computing optimal ones. * DokuWiki writer: fix lists with Div elements (#8920). The DokuWiki writer doesn't render Divs specially, so their presence in a list (e.g. because of custom-styles) need not prevent a regular DokuWiki list from being used. (Falling back to raw HTML in this case is pointless because no new information is given.) * LaTeX writer: + Fix babel name for `fa` (should be `persian`). + Prevent babel language from being imported twice (#8925). * Text.Pandoc.Class: + Add `toTextM` [API change]. This is like `Text.Pandoc.UTF8.toText`, except: - it takes a file path as first argument, in addition to bytestring contents - it raises an informative error with source position if the contents are not UTF8-encoded This replaces `utf8ToText` whenever we have the filename and are in a PandocMonad instance. This will lead to more informative error messages for UTF8-encoding, indicating the file path and byte offset where the error occurs (#8884). * Remove invalid term "Subject" from Turkish translations (#8921). * stack.yaml: add pkg-config to nix packages (#8927, pacien). * Allow aeson 2.2. * MANUAL: Add clarification on --section-divs. Closes #8882. [#]# pandoc 3.1.4 (2023-06-24) * Fix a security vulnerability in MediaBag and T.P.Class.IO.writeMedia. This vulnerability, discovered by Entroy C, allows users to write arbitrary files to any location by feeding pandoc a specially crafted URL in an image element. The vulnerability is serious for anyone using pandoc to process untrusted input. The vulnerability does not affect pandoc when run with the `--sandbox` flag. [CVE-2023-35936] * Allow `epub-title-page` to be used in defaults files (#8908). * Issue `Extracting` info message (in `--verbose` mode) when using `--extract-media` or extracting media temporarily in PDF production. * HTML reader: Update TableBody RowHeadColumns caculation (#8634, Ruqi). This change sets RowHeadColumns to the minimum value of each row, which gives better results in cases where rows have different numbers of leading th tags. * Dokuwiki reader: retain image query parameters as attributes (#8887, echo0). * Textile reader: Add support for link references (#8706, Stephen Altamirano). Textile supports what it calls "link alias", which are analogous to Markdown's reference-style links. * LaTeX reader: support alt text on images (#8743, Albert Krewinkel). * Commonmark reader: Make `implicit_figures` work again. Support for this (introduced in #6350) disappeared when we made an architectural change. * JATS reader: + Add footer and multiple body parsing to table reader (#8765, Noah Malmed). + Parse references title from ref-list (#8365). * JATS writer: + Make `--number-sections` work. + Include title in ref-list (#8364). Previously the reference title ended up in a separate section at the back of the body instead of in the ref-list in the back matter. * Mediawiki writer: allow highlighting to work for F# language (Adelar da Silva Queiróz). * LaTeX writer: Fix escaping of `&` in `\href` and `\url` (#8903). * Docx writer: + Fix localization of "Abstract" title (#8702). + Allow `abstract-title` to be specified in docx metadata (#8794). * ChunkedHTML writer: Make math work in top-level page (#8915). * Text.Pandoc.Logging: add new log message type `ScriptingWarning` [API change] (Albert Krewinkel). * Lua: report warnings from Lua scripts (Albert Krewinkel). Lua's warning system is plugged into pandoc's reporting architecture. Warnings that are raised with the Lua `warn` function are now reported together with other messages. * Use crypton-connection instead of connection (#8896, Felix Yan). Follows the change introduced in tls 1.7.0. * Bump versions for skylighting-core, skylighting. * Include lua/module/sample.svg in cabal extra-source-files (Felix Yan). * Add Nynorsk (New Norwegian) translations (Per Christian Gaustad). * Add tests for `fillMediaBag`/`extractMedia`. * INSTALL.md: + Mention alternatives to LaTeX to generate PDF (Norwid Behrnd). + Update Linux install links (harabat). * pandoc-extras.md: add to "Academic publishing workflows" (#8696, Vladimir Alexiev). * Thu Sep 21 2023 Peter Simons <psimons@suse.com> - Apply "CVE-2023-38745.patch" to complete the fix of the arbitrary file write issue discovered earlier. The previous patch did not cover all attack vectors. [bsc#1213622, CVE-2023-38745] * Fri Jul 14 2023 Peter Simons <psimons@suse.com> - Apply "CVE-2023-35936.patch" to fix an arbitrary file write issue that was possible when using PDF output or --extract-media with untrusted input. [bsc#1213066, CVE-2023-35936] * Wed Jun 07 2023 Peter Simons <psimons@suse.com> - Update pandoc to version 3.1.3. [#]# pandoc 3.1.3 (2023-06-07) * New output format: `typst`. * New module: Text.Pandoc.Readers.Typst [API change]. * DocBook reader: + Support more emphasis roles (Albert Krewinkel). The role "bf" is taken to indicate "bold face", i.e., "strongly emphasized" text, while "underline" leads to underlined text. * JATS reader: + Improve title and label parsing in the JATS reader (#8718, Noah Malmed.) + Add rowspan, colspan and alignment to cells in jats table reader (#8408, Noah Malmed) * Org reader (Albert Krewinkel): + Require abstract environment to use lowercase. + Treat `#+NAME` as synonym for `#+LABEL` (#8578). * ODT reader: + Allow lists in table cells (#8892). + Allow frames inside spans (#8886). * RST reader: + Fix sorting on anonymous keys (#8877). This fixes a link resolution bug bug affecting RST documents with anonymous links. * HTML reader: + Fix iframe with data URI of an image (#8856). In this case we don't want to try to parse the data at the URL. Instead, create an image inside a div. * RTF reader: + Fix bug in table parsing (#8767). In certain cases, text before a table was being incorporated into the table itself. * Docx reader: + Introduce support for Intense Quote (Stephan Meijer). * Markdown reader: + Disallow escaping of `~` and `"` in `markdown_strict` (#8777, Albert Krewinkel). This matches the behavior of the legacy `Markdown.pl` as well as what is described in the manual. * LaTeX reader: ignore args to column type in `\multicolumn` (#8789). * HTML writer: + Use first paragraph in task item as checkbox label (#8729, Albert Krewinkel). * Ms writer: + Coerce titles to inlines (#8835). Block-level formatting is not allowed inside `.TL`. * LaTeX writer: + Fix width for multicolumn simple table (#8831). * Jira writer: + Use first code block class as highlighting language (#8814, Albert Krewinkel). The writer no longer searches the list of classes for a known programming language but always uses the first class in that list as the language identifier. * OpenDocument writer: + Handle row header column cells as header cells (#8764, Michael Stahl). + Fix invalid `text:p` inside `text:p` from meta (#8256). * ODT writer: + Don't add settings.xml (Michael Stahl). This will cause defaults to be used, which is what we want. + Don't add unnecessary Configurations2 directory (Michael Stahl). + Don't add thumbnail (Michael Stahl). + Put `manifest.version` on directory file-entry (Michael Stahl). See ODF 1.3 part 2, 4.16.14.1. + Stop validator complaints by producing ODF 1.3 (Michael Stahl). * MediaWiki writer: + Remove links from inside links in mediawiki writer (#8739, Wout Gevaert). * Typst writer: + Omit bibliography if `citations` not enabled (#8763). With this change, the typst writer will omit the `#bibliography` command when `citations` is not enabled. (If you want to use pandoc's own `--citeproc`, you should combine it with `-t typst-citations` to disable native typst citations. + Use `<..>` for labels, create internal links. + Use `#footnote` for notes (#8893). + Fix alignment issue in lists. It's an aesthetic issue only; the first line had an extra space indent after the list marker. * Commonmark writer: + Use shortcut reference links: commonmark supports these. * EPUB template: add `lang` attribute to `<html>` (Gabriel Lewertoski). * Template styles.html: fix task-list styling in reveal.js (#8731, Albert Krewinkel). * LaTeX template: Fix `\babelfont` (#8728). * Text.Pandoc.Parsing: + Remove unnecessary 'spaces' in `parseFromString`. * Text.Pandoc.ImageSize: Drop BOM at start of SVG if present. Otherwise our code can fail to determine image size. * Lua subsystem: + Fix value of PANDOC_SCRIPT_FILE for custom readers & writers (#8781, Albert Krewinkel). The value did not hold the actual file path for scripts in the *custom* folder of the datadir. * Fix YAML in translation files for `cs` and `pl` (#8787). * Fix pdf output via typst (#8754). One must now use `typst compile` rather than `typst`. * MANUAL.txt: + Added note that the user will need to create the user data dir (#8727). + Add `wikilinks` to non-default extensions (Ilona). + Update link to custom djot writer (Albert Krewinkel). + Better link to citation syntax. + Fix typo (sdhoward). + Note that `#` fancy list markers don't work with commonmark (#8772, William Lupton). + Add commonmark `fenced_div` note (#8773, William Lupton). + Move highlighting documentation, with minor adjustments (William Lupton). + Fix inaccurate statement about spaces and tabs in template syntax (Frank Seifferth). * Update documentation for org-mode (Christian Christiansen, #8716). * doc/lua-filter.md: + Fix typos (#8734, perro tuerto). + Fix anchor (Toni Dietze). + Use full field name in example (#8857, Matt Dodson). + Fix copy-paste error (#8798, thron7). * CONTRIBUTING.md: update info on ghc versions. * INSTALL.md: + Fix cabal install instructions (Albert Krewinkel). + Use more relevant link to NetBSD/pkgsrc entry (Charlotte Koch). + Fix Windows install instructions for winget (#8799). * Tests: Rename test/docx/block_quotes_parse_indent.native for consistency (Stephan Meijer). * Add `tls` constraint on cabal.project. This is needed to avoid problems caused by the transition to `crypton`. * Require texmath 0.12.8. * Thu Apr 13 2023 Peter Simons <psimons@suse.com> - Install the pandoc.1 man page. [bsc#1172058] * Wed Apr 12 2023 Peter Simons <psimons@suse.com> - Update pandoc to version 3.1.2. [#]# pandoc 3.1.2 (2023-03-26) * Add a Lua REPL (Albert Krewinkel). This can be started with `pandoc lua -i`. It is also possible to instruct a filter to open the REPL at a certain point, for debugging (see `pandoc.cli.repl`). * Support `typst` as a `--pdf-engine`. * Add typst writer (#8713). New module Text.Pandoc.Writers.Typst, exporting `writeTypst` [API change]. * Org reader: + Allow zero width space as an escape character (#8716, Christian Christiansen). Allow the character U+200B to be used as an escape character as described in the Org-mode documentation (<https://orgmode.org/manual/Escape-Character.html>). * DocBook reader: + Handle "book" for xref references (#8712, Andres Freund) This also adds a test xref to book and part. + Handle `<part>` (#8712). * HTML reader: + Fix behavior with `-native_spans-raw_html` (#8711). Previously with this configuration, `<span>`s were not treated as inline elements at all. * HTML writer: + Avoid duplicate classes (#8705). + Use img element instead of embed for `.svg.gz` and `.png.gz` etc. (#8699). + HTML writer footnotes changes (#8695): when `--reference-location=section` or `=block`, use an `aside` element for the notes rather than a `section`. When `--reference-location=section`, include the `aside` element inside the section element, rather than outside. (In slide shows, this option causes footnotes on a slide to be displayed at the bottom of the slide.) * EPUB writer: + Use different structure for epub footnotes (#8676, see #8672, #5583). Many EPUB readers are thrown off by pandoc's current footnote output. Both the ol and the fact that the footnote backlink is at the end of the note seem to pose problems. With this commit, we now create a list of aside (or div) elements, instead of an ordered list. Each element begins with a note number that is linked back to the note reference. (So, the backlink occurs at the beginning rather than the end.) Thanks to @Porges and @lewer. * Docx writer: + Include abstract title (#8702). Uses localized term for abstract. * Markdown writer: + Use implicit figures if there's a caption but no alt (#8689, Albert Krewinkel). * Jira reader (Albert Krewinkel): + Add panel title as nested div (#8681). + Require jira-wiki-markup 1.5.1 (#8680). This fixes a bug in the parser that caused text between two exclamation marks to be parsed as an image. The first `!` of image markup must now be followed by a non-space character; otherwise, the enclosed text is parsed as normal content. * Ms writer: + Fix handling of Figure (#8660). * ICML writer: + Fix images with data (#8675). The Contents element should be inside Properties. * LaTeX writer: + Add Chinese to Babel languages. + Fix background image in Beamer when there are figure environments (#8671, Martín Pozo). * LaTeX template: + Add `babelfonts` variable to default LaTeX template. This allows specifying certain fonts to be used with certain babel languages. Thanks to Frederik Elwert. + Fix highlight/underline with lualatex (#8707). We need the lua-ul package instead of soul, which doesn't work with lualatex. * Lua (Albert Krewinkel): + Add `pandoc.cli.repl` function + Fix `json.encode` for nested AST elements. Ensures that objects with nested AST elements can be encoded as JSON. + Auto-generate docs for pandoc modules. + Load text module as `pandoc.text`. This only affects the name in the Lua-internal documentation. It is still possible to load the modules via `require 'text'`, although this is deprecated. + Move docs from module `text` to `pandoc.text` The latter is easier to use and more consistent with the other modules. + Keep the Lua stack clean A metatable used during initialization was not properly removed from the stack. Likewise, accessing the CommonState from Lua previously led to the pollution of the Lua stack with a left-over value. * Add function `pandoc.format.from_path`. + Allow to get the JSON encoding of log messages. * Text.Pandoc.Format: Add new function `formatFromFilePaths` [API change] (#8710, Albert Krewinkel). * The old Text.Pandoc.App.FormatHeuristics module has been removed. * In `--version`, use Windows `%APPDATA%` variable to describe user data dir (#8686, Pablo Rodríguez). * Text.Pandoc.App.CommandLineOptions: don't lowercase arg to `--from`/`--read` (Albert Krewinkel). This prevented users to use custom writers with uppercase characters in their filenames. Format-normalization, including lower-casing of format identifiers, happens during format parsing. * Documentation: + Add `doc/nix.md`. + Add `doc/extras.md`. This was formally in the website repo. + `doc/lua-filters.md`: improve docs for `pandoc.zip`. * Factor out `make_macos_release.sh` from the release candidate workflow. Use cabal instead of stack to build the macos binary. * Modify linux/make_artifacts.sh so it will work on cirrus. * Switch to hslua-2.3 * Depend on latest releases of texmath, doclayout. [#]# pandoc 3.1.1 (2023-03-05) * EPUB reader: Give additional information in error if the epub zip container can't be unpacked. * TSV reader: don't gobble tabs as whitespace (#8661). * Org reader: accept empty tables (#8659). * LaTeX reader: fix multiplication syntax for tabular (#8658). We recognized `*{6}{...}` but not `*6{...}` or `*6c`. * Docx reader: parse image alt texts in LibreOffice generated files. LibreOffice tags images slightly differently than Word; this change lets the parses take that difference into account when looking for an image description (alt text). * DocBook reader: + Fix `<xref>` references to tables in DocBook files (#8626, Pavol Otto). + Parse `figure` as a Figure element in the AST (#8668). * JATS reader: avoid generating duplicate figure captions (#8669). * RST reader: align with spec in syntax for role names (#8653). In particular, we now allow colons in row names. * Add note on converting from .doc format to FAQs (#8654). * Trap error in getAppUserDataDirectory (#8648). This can raise an error if pandoc is run in a non-user environment. * LaTeX writer: do not use longtable foot with Beamer (#8638, Albert Krewinkel). The table foot is made part of the table body, as otherwise it won't show up in the output. The root cause for this is that longtable cannot detect page breaks in Beamer. * LaTeX template: Add CJKsansfont and CJKmonofont for XeLaTeX (#8656, Yudong Jin). `CJKsansfont` and `CJKmonofont` will be set for xelatex only if `CJKmainfont` is also provided. * URL style in ConTeXt (#8612, Thomas Hodgson). Previously, a URL like this would be in monospace text: `\useURL[url1][https://example.com]`. Now, it will match the main text unless the `linkstyle` variable is set, which controls the styling of all links. Closes #8602. * Asciidoc writer: Properly escape `|` in table cells (#8665). * asciidoc{,tor} template: fix revision date when author is unset (#8637, arcnmx). Revision line syntax is only valid in combination with an author line, so the date attribute must be set explicitly when the author is missing * HTML writer: allow "track" element to be treated as block-level HTML (#8629). * Include needed polyfill when MathJaX is used (#8625). * JATS writer: include alt-text in `<graphic>`, `<inline-graphic>` elements (#8631, Albert Krewinkel). * Chunked HTML writer: Retain metadata in processing sections for chunked HTML (#8620). Previously we suppressed metadata in all but the top page, in order to prevent the title block from being printed on every page. This prevented use of custom variables set by metadata fields. This commit moves to a better solution: a conditional in the default template restricts the title block to the top page. * Lua API: + Add new function `pandoc.system.cputime` (Albert Krewinkel). The function returns the CPU time consumed by pandoc and can be used to benchmark Lua computations. + Add module `pandoc.json` to handle JSON encoding (#8605, Albert Krewinkel). * Use pandoc-lua-marshal 0.2.1 (Albert Krewinkel). All major AST elements now have `__tojson` metamethods that return the JSON representation of an element. This allows to JSON-encode these elements with libraries that respect the `__tojson` metamethod, including dkjson. * Use latest zip-archive. This allows pandoc to open certain epubs that it could not open before. * Use commonmark-extensions 0.2.3.4. This fixes some bugs involving definition lists and inline formatting. * Use latest skylighting-format-context * MANUAL.txt: + Document chunk-template in defaults file. + Remove obsolete "raw content in a style" section. + Revise documentation for `--mathml` to reflect support in all major browsers (#8667). * docs/custom-readers.md: Update JSON parsing example. The example now uses the built-in `pandoc.json` library to parse the API output. * doc/press.md: Add article on CiTO in J Cheminform by @egonw. * doc/lua-filters.md: fix typo in `run_json_filter` (Morgan Willcock). [#]# pandoc 3.1 (2023-02-09) * Fix regression with `--print-highlight-style` option (#8586). * Add new `--chunk-template` option (#8581), allowing more control over the filenames in chunked HTML output. * Text.Pandoc.App: Add `optChunkTemplate` constructor to Opt [API change]. * Text.Pandoc.Options: add `writerChunkTemplate` constructor to `WriterOptions` [API change]. * Text.Pandoc.Chunks: add Data, Typeable, Generic, ToJSON, FromJSON instances for `PathTemplate` [API change]. * Text.Pandoc.Citeproc: Fix bug in `metaValueToReference` (#8611). This bug caused us to get some repeated content when converting MetaBlock to Inlines. * Textile reader: + Support footnote backlinks (#8585, Stephen Altamirano). + Don't allow brackets in URLs (#8582). * ODT reader: fix blockquote indent detection (#3437, Daniel Kessler). * LaTeX writer: include short figure/table caption if one is given (Albert Krewinkel). Short captions are used by LaTeX when generating the list of figures or list of tables. Adding a short caption will now overwrite the full caption in these lists. * Powerpoint writer: fix handling of simple figures (#8565, Albert Krewinkel). This ensures that simple figures are displayed in the same way as before the introduction of a dedicated `Figure` constructor in the AST. * Improve handling of `%` in bib(la)tex parsing (#8597, #8595). * Use released skylighting 0.13.2.1 * INSTALL.md: direct people to cabal install pandoc-cli. * doc/lua-filters.md: document 'Figure' type and constructor (Albert Krewinkel). Fix typos (Martin Joerg). * Fix link in manual (#8583, Salim B). * Thu Mar 30 2023 Peter Simons <psimons@suse.com> - Updated spec file to conform with ghc-rpm-macros-2.5.2. * Wed Jan 25 2023 Peter Simons <psimons@suse.com> - Update pandoc to version 3.0.1. Upstream has edited the change log file since the last release in a non-trivial way, i.e. they did more than just add a new entry at the top. You can review the file at: http://hackage.haskell.org/package/pandoc-3.0.1/src/changelog.md - Rename "pandoc" to "ghc-pandoc", because starting with version 3.0 this package no longer contains an executable but only a Haskell library. The pandoc executable now lives in "pandoc-cli". * Wed Jan 25 2023 Guillaume GARDET <guillaume.gardet@opensuse.org> - Request workers with at least 8 jobs. This avoid build failures on aarch64. * Mon Aug 22 2022 Peter Simons <psimons@suse.com> - Update pandoc to version 2.19.2. [#]# pandoc 2.19.2 (2022-08-22) * Fix regression with data uris in 2.19.1 (#8239). In 2.19.1 we used the base64URL encoding rather than base64. * pandoc-server: handle `citeproc` parameter as documented (#8235). * Org reader: treat *emacs-jupyter* src blocks as code cells (#8236, Albert Krewinkel). This improves support for notebook-like org files that are intended to be used with emacs-jupyter package. * HTML writer and templates: revert to using `width` property for column widths (Albert Krewinkel). The default `flex` and `overflow-x` properties of a column are set to `auto`. In combination, these changes allow to get good results when using columns with or without explicit widths. * Org writer (Albert Krewinkel): + Add support for jupyter nodebook cells (#6367). + Prefix code language of ipynb code blocks with `jupyter-`. This is the convention used by the *emacs-jupyter* package. + Keep code block attributes as header args. This allows to keep more information in the resulting `src` blocks, making it easier to roundtrip from or through Org. Org babel ignores unknown header arguments. + Add code block identifier as `#+name` to src blocks. * Fix some typos in the codebase (luz paz). * Require hslua-module-path 1.0.3 (#8228, Albert Krewinkel). * Fri Aug 19 2022 Peter Simons <psimons@suse.com> - Update pandoc to version 2.19.1. [#]# pandoc 2.19.1 (2022-08-18) * Add server capabilities. + New exported module Text.Pandoc.Server [API change]. + The pandoc executable now starts up a web server when renamed or symlinked as `pandoc-server`, and functions as a CGI program when renamed or symlinked as `pandoc-server.cgi`. See the man page for `pandoc-server` for full documentation. * Text.Pandoc.App.Opts: Redo `FromJSON` for `Opt` so that optional values can be omitted (in which case the values from `defaultOptions` are used). * Org reader: treat "abstract" block as metadata (Albert Krewinkel, #8204). A block of type "abstract" is assumed to define the document's abstract. It is transferred from the main text to the metadata. * Org template: add abstract from metadata as block of type "abstract" (#8204). * HTML writer: use `flex` property for column widths (Albert Krewinkel, #8232). * LaTeX writer: + Add label to tables that have an identifier (Albert Krewinkel, #8219). Tables with an identifier are marked with a `\label`. A caption is always included in this case, even if the caption is empty. + Use `\textquotesingle` for straight quotes in text. + Fix widths of multicolumn cells (#8218). * LaTeX template: fix behavior of `colorlinks` variable (Albert Krewinkel, #8226). Fixes a regression in 2.19 that required the `boxlinks` variable to be set in addition to the usual link coloring variables. Otherwise links were never colored in LaTeX PDF output. * Text.Pandoc.Highlighting: Export `lookupHighlightingStyle` [API change]. Previously this lived in an unexported module Text.Pandoc.App.CommandLineOptions, under the name `lookupHighlightStyle`. * Text.Pandoc.App: + Remove unneeded MonadIO constraints in readSources. + Factor out `convertWithOpts'` from `convertWithOpts`. This runs in any PandocMonad, MonadIO, MonadMask instance. So far it is not exported, but it might find a use later. * Support `--strip-comments` in commonmark/gfm (#8222). This change makes the commonmark reader sensitive to `readerStripComments`. * Lua: add function `pandoc.utils.citeproc` (Albert Krewinkel). The function runs the *citeproc* processor on a Pandoc document. Exposing this functionality to Lua allows to make citation processing part of a filter or writer, simplifies the creation of multiple bibliographies, and enables the use of varying citation styles in different parts of a document. * Refactor `linux/make_artifacts.sh`. * Update INSTALL.md installation from source instructions. * Use base64 package instead of base64-bytestring. It is supposed to be faster and more standards-compliant. * trypandoc improvements: + Add dropdown with canned examples. + Add citeproc support. + Support csv, bibliographic and binary formats. + Add load from file. + Add permalink. Don't always reload page. + Use vanilla JS and CSS + the new `pandoc-server.cgi`. * Allow haddock-library-1.11.0. * Convert `tool/extract-changes.hs` to a Lua filter. * Thu Aug 04 2022 Peter Simons <psimons@suse.com> - Update pandoc to version 2.19. Upstream has edited the change log file since the last release in a non-trivial way, i.e. they did more than just add a new entry at the top. You can review the file at: http://hackage.haskell.org/package/pandoc-2.19/src/changelog.md * Mon Apr 04 2022 Peter Simons <psimons@suse.com> - Update pandoc to version 2.18. [#]# pandoc 2.18 (2022-04-22) * New input formats: `endnotexml` (EndNote XML bibliography), `ris` (RIS bibliography). * A RIS bibliography file may now be used with `--citeproc`. * Citeproc: Allow a formatted bibliography to be placed in metadata fields via a Div with class `refs` (#7969, #526). Thus, one can include a metadata field, say `refs`, whose content is an empty div with id `refs`, and the formatted bibliography will be put into this metadata field. It may then be interpolated into a template using the variable `refs`. * Ensure that you don't get PDF output to terminal. `-t pdf` now behaves like `-t docx` and gives an error unless the output is redirected. * `--version` now prints hslua version (#7929) and Lua version (#7997, Albert Krewinkel). * Change `--metadata-file` parsing so that, when the input format is not markdown or a markdown variant, pandoc's markdown is used (#6832, #7926). When the input format is a markdown variant, the same format is used. Reason for the change: it doesn't make sense to run the markdown parser with a set of extensions designed for a non-markdown format, and this dramatically limits what people can do in metadata files. * Trim whitespace from math in `--webtex` (#7892). This fixes problems with --webtex and markdown output, when display math starts or ends with a newline. * New exported module Text.Pandoc.Readers.EndNote, exporting `readEndNoteXML`, `readEndNoteXMLCitation`, and `readEndNoteXMLReferences`. [API change] * `--self-contained`: issue warning rather than failing with an error if a resource can't be found (#7904). * New exported module, Text.Pandoc.Readers.RIS, exporting `readRIS` (#7894). * LaTeX reader: + Handle subequations as inline math environment (#7883). + Rudimentary support for `vbox` (#7939). + Support `\today` (#7905). + Handle `\label` and `\ref` for footnotes (#7930). + Allow inline groups starting with `\bgroup` (#7953). + Use custom TokStream that keeps track of whether macros are expanded. This allows us to improve performance a bit by avoiding unnecessary runs of the macro expansion code (e.g. from 24 ms to 20 ms on our standard benchmark). + Further optimizations for inline parsing. + Better handling of `\usepackage`. If the package is local but causes parse errors, parse everything up to the error and skip the rest. Issue a `CouldNotParseIncludeFile` warning indicating that parsing failed at that point. + Text.Pandoc.Readers.LaTeX.Parsing: Monoid and Semigroup instances for TokStream. * HTML reader: + Give warnings and emit empty note when parsing `<a epub:type="noteref">` and the identifier doesn't correspond to anything in the note table (#7884). Previously we just silently skipped these cases. + Fix parsing of epub footnotes (#7884). * DocBook reader: + Handle complete set of entities as specified at <https://www.w3.org/2003/entities/2007doc/byalpha.html> (#7938). + Handle abstract in info section (#7747). + Improve info parsing. + Simplify metadata parsing code (#7747). Handle abstract as block-level content. Report skipped info elements with `--verbose`. + Handle address and coyright in metadata (#7747). * DokuWiki reader: + Add DokuWiki table alignment (#5202, damon-sava-stanley). * RST reader: + Fix treatment of headerless simple tables (#7902). + Wrap math in Span to preserve attributes (#7998, Albert Krewinkel). Math elements with a name, classes, or other fields are wrapped in a `Span` with these attributes. * JATS reader: + Improve handling of fn-group elements (#6348, Albert Krewinkel). Footnotes in `<fn-group>` elements are collected and re-inserted into the document as proper footnotes in the place where they are referenced. + Handle `pub-date` (#8000). + Support PMID, DOI, issue in citations (#7995). + Improve refs parsing. Handle `issn` and `isbn`; use simpler form for issued date. + Strip 'ref-' from ref id in constructing CSL id. This allows better round-tripping, because the JATS writer adds the `ref-` prefix to the citation id to get the ref element's id. * Org reader: + Allow ":" in property drawer keys (Lucas V. R). Any non-space character is allowed as property drawer key, including ":" itself (so it is not really a delimiter). The real delimiter is a space character, so in a drawer like ``` :PROPERTIES: ::k:ey:: value :END: ``` ":k:ey:" is a key with value "value". + Allow comments above property drawer. + More flexible LaTeX environments (Lucas V. R). + Handle `#+bibliography:` as metadata so that it can work with `--citeproc`. + Parse `#+print_bibliography:` as Div with id `refs`. + Allow multiple `#+bibliography:`. * Markdown reader: + Allow one-column pipe tables with pipe on right (#7919). + Remove restriction on identifiers, so they no longer need to begin with a letter (#7920). * Docx reader: + Enable `citations` extension for docx reader (#7840). When enabled, Zotero, Mendeley, and EndNote citations embedded in a docx are parsed as native pandoc citations. (When disabled, the generated citation text and bibliography are passed through as regular text.) The bibliography generated by the plugin is suppressed. Instead, bibliographic data embedded in citation items is added to the `references` metadata field so that it can be used with `--citeproc`. * Docbook writer: + Interpret links without contents as cross-references (#7360, Jan Tojnar). Links without text contents are converted to `<xref>` elements. DocBook processors will generate appropriate cross-reference text when presented with an xref element. * Docx writer: + Single numbering ID for examples (#7895, mjfs). This change ensures that example list items all belong to a single number sequence, so that if items are added or deleted in a word processor, the other items will renumber automatically. + Add bookmark with table id to table (#7989, Nikolai Korobeinikov, #7285). This allows tables with ids to be linked to. * Ipynb writer: + Handle metadata better (#7928). Previously we used the markdown writer to render metadata. This had some undesirable consequences (e.g. en dash expanded to `--` when `smart` enabled), so now we use the plain writer. * LaTeX writer: + Avoid extra space before `\CSLRightInline` (#7932). + Add `scrreport` to `chaptersClasses` (#6168, ivardb). + Support `page`,`trim`,`clip` attributes on images (#7181). + Add `()` after booktabs rules (#8001). These commands take optional arguments with () and [], which can lead to problems if the content of the table cell begins with these characters. * RST writer: + Support all standard metadata ("bibliographic") fields. * HTML writer: performance improvements. * Org writer: + Stop indenting property drawers, quote blocks (#3245, Albert Krewinkel). This follows the current default org-mode behavior. * Markdown writer: + Move table-related code into submodule (Albert Krewinkel). + Don't produce redundant header identifier when the `gfm_auto_identifiers` extension is set (#7941). + Update escaping rules for `\`. We now escape `\` only if `raw_tex` is enabled or it is followed by a non-alphanumeric. * JATS writer: + Encode author "others" as `<etal/>` (Albert Krewinkel). Citeproc adopted the BibTeX convention to use the author name "others" when there are additional authors that are not named. JATS uses the `<etal>` element for this. + Avoid doubled ref-list element (#7990). Previously when generating JATS with the `element_citations` extension enabled, the references were put in a doubly-nested ref-list element (`<ref-list><ref-list>...`). + Keep edition info in element citations (#7993, Albert Krewinkel). + Fix handling of CSL variable 'page' (not 'pages' as we had before). It should go to 'lpage' and 'rpage', not 'page-range'. * EPUB writer: refactor for clarity (#7991, Jonathan Dönszelmann, Ola Wolska, Ivar de Bruin, Jaap de Jong). * Custom writer (Albert Krewinkel): + Support new-style Writer function (Albert Krewinkel). See the documentation for custom writers for details. + Produce stacktrace if Writer function fails * Text.Pandoc.Logging: add `CouldNotParseIncludeFile` constructor for `LogMessage` [API change]. * Text.Pandoc.Shared: + Put id attributes on TOC entries (#7907, damon-sava-stanley). Naming scheme of id is "toc-" + id of linked to header/section. Effects HTML, Markdown, Powerpoint, and RTF. + Define `ordNub` as alias for `nubOrd` from containers package (#7963, Albert Krewinkel). + Export `ensureValidXmlIdentifiers`. This function changes identifiers that don't start with letters, and internal links to these identifiers, making them compatible with XML standards. The change is simple: we add `id_` to the front. There is potential for duplication if there are already `id_...` identifiers defined, but this seems rare enough not to worry too much about. * Ensure that valid XML identifiers are used in Docbook, EPUB, FB2, HTML4, S5, Slidy, Slideous, ICML, ODT, TEI writers. Thus, if you convert `[anchor]{#1} and [link to](#1)`, `id_1` will be used instead of `1` for the identifier. * Lua (Albert Krewinkel). + Add module `pandoc.layout` to format and layout text. + Move custom writer code into Lua hierarchy. + Use pandoc-lua-marshal 0.1.5. + Allow any type of callable object as argument to List functions `filter`, `map`, and `find_if`. These previously required the argument to be of type `function`, which was too restrictive. + Inline: the type of Image captions is now `Inlines` instead of `List`. + Allow passing `Sources` to `pandoc.read` (#8002). * Text.Pandoc.PDF: + Restore `wkhtmltopdf` as default pdf engine for HTML (Albert Krewinkel). + Allow custom writer as format if engine is explicitly specified (#7898, Albert Krewinkel). Note that it may be necessary to explicitly specify a template on the command line. * Text.Pandoc.MediaBag: improve detection of absolute paths (#7881). * Text.Pandoc.Extensions: + Remove `raw_tex` extension from list of commonmark extensions, and from the `commonmark_x` defaults. commonmark doesn't parse raw TeX, and it doesn't make sense to write it if we don't parse it. + Remove `native_divs` from allowed gfm extensions (#7965). This allows `<div>` to be suppressed using `-raw_html`. Previously `native_divs` was enabled but could not be suppressed, because it was not in the list of available extensions for commonmark-based formats. * Text.Pandoc.Parsing: + Partition module into (internal) submodules (#7962, Albert Krewinkel). + Unify grid table parsing (#7971, Albert Krewinkel). Grid table parsing in Markdown and RST are updated use the same functions. Functions are generalized to meet requirements for both formats. This change also lays the ground for further generalizations in table parsers, including support for advanced table features. [API change] in Text.Pandoc.Parsing: - Parse results of functions `tableWith'` and `gridTableWith'` are now a `mf TableComponents` instead of a quadruple of alignments, column widths, header rows and body rows. - Additional exports from Text.Pandoc.Parsing: `tableWith'`, `TableComponents`, `TableNormalization`, `toTableComponents`, `toTableComponents'`. * Text.Pandoc.XML.Light: add versions of the parsers that allow specifying a custom entity map. Exports new functions: `parseXMLElementWithEntities`, `parseXMLContentsWithEntities` [API change]. * Text.Pandoc.Writers.GridTable: improve module documentation (Albert Krewinkel). * Text.Pandoc.Parsing.GridTable: simplify column handling code (Albert Krewinkel). * Text.Pandoc.MIME: Add mime type for mkv extension (#7181). * Text.Pandoc.Asciify: Fix regression with `ascii_identifiers` and Turkish undotted i (#8003). * Relax upper bound for hslua, allow hslua-2.2. (#7929) Lua 5.4 is used by default after this is merged. Packagers may still include Lua 5.3 instead by building pandoc with `--constraint='hslua <2.2'`. Differences between 5.3 and 5.4 should not generally affect pandoc Lua filters. See list of incompatible changes here: <https://www.lua.org/manual/5.4/manual.html#8.1> * JATS template: allow multiple licenses (Albert Krewinkel). * LaTeX template: + Skip `\babelprovide` if `babel-lang` is empty (#7945) to avoid an error. + Move hyperref near end of preamble (#5811). It now comes after header-includes and right before title, author, date, abstract. Note: Users who presuppose hyperref in their header-includes will now have to add `\usepackage{hyperref}` to their header-includes to make it available there. (The redundant `\usepackage` will do no harm in this case.) + Remove special redefinition of `\sout`. This used to be necessary to avoid problems with hyperref, when headings contain strikeout text, but it does not seem to be necessary any more (tested). * Tests: improve location reporting of failing tests (Albert Krewinkel). * Add tests for idempotency of `makeSections` (#7950). * Add armhf support in linux build script (#7944, Tony). * Use latest pandoc-types, so that toJSONFilter will work with Meta and MetaValue. * Use latest doclayout, texmath, commonmark, citeproc. * INSTALL.md: add reference to install via winget (#7951, Guriy Samarin). * MANUAL.txt: - Document way to get list in block quote in slide shows (#7916). - Minor changes to security section. - Note that `smart` works for html input. - Fix typos (#7934, Dimitris Apostolou). - Fix documentation for citations and org mode. - Remove claim that `--self-contained` does not work with `--mathjax` (#682). * doc/org.md: remove obsolete citations section. This mostly described citation formats we no longer support. * doc/lua-filters.md: Fix typo (#7981, Mario Lang). * Makefile: Use cabal for default build * Add `lua53` cabal flag. It is false by default. If set to true, compile with hslua 2.1 and Lua 5.3, otherwise hslua 2.2 and Lua 5.4. * Mon Jan 31 2022 Peter Simons <psimons@suse.com> - Update pandoc to version 2.17.1.1. [#]# pandoc 2.17.1.1 (2022-01-31) * Fix regression in 2.17.1 which caused problems finding default files in the default user data directory. (Reverts the item "logic bug in `fullDefaultsPath`", which was misguided.) * Sample custom writer: use single quotes for strings (#7487, Albert Krewinkel). [#]# pandoc 2.17.1 (2022-01-30) * Support `pagedjs-cli` as pdf engine (#7838, Albert Krewinkel). PagedJS is a polyfill and supports the Paged Media standards by the W3C. <https://www.pagedjs.org/> * CommonMark reader: fix source position after YAML metadata (#7863). * LaTeX reader: + Remove retokenizing in `rawLaTeXParser`. + Ensure that `\raggedright` doesn't gobble an argument (#7757). + Improve `descItem`. For some reason we were skipping arbitrary blocks before `\item`. This is now changed to "skip whitespace and comments." + Improve handling of `\newif`. Adding a pair of braces around the second argument of `\def` prevents LaTeX from an emergency stop on input like the following (#6096). ``` \newif\ifepub \epubtrue \ifepub hi \fi ``` * Docx reader: Parse both Zotero citation and bibliography as `FieldInfo` (#7840). * LaTeX writer: + Allow arbitrary frameoptions to be passed to a beamer frame, using the frameoptions attribute (#7869). + Add s and squeeze to recognized beamer frameoptions (#7869). * Markdown writer: handle explicit column widths with pipe tables (#7847). If a table has explicit column width information *and* the content extends beyond the `--columns` width, we need to adjust the widths of the pipe separators to encode this width information. * Docx writer: Separate tables even with RawBlocks between (#7224, Michael Hoffmann). Adjacent docx tables need to be separated by an empty paragraph. If there's a RawBlock between tables which renders to nothing, be sure to still insert the empty paragraph so that they will not collapse together. * Man writer: use custom font V for inline code (#7506). The V font is defined conditionally, so that it renders like CB in output formats that support that, and like B in those that don't (e.g. the terminal). Aliases also defined for VI, VB, VBI. * Asciidoc writer: Support checklists in asciidoctor writer (#7832, Nikolai Korobeinikov, ricnorr). The checklist syntax (similar to `task_list` in markdown) seems to be an asciidoctor-only addition. * HTML writer: + Avoid duplicate "style" attributes on table cells (#7871). + Don't break lines inside code elements. With the new (default) line wrapping of HTML, in conjunction with the default CSS which includes `code { whitespace: pre-wrap; }`, spurious line breaks could be introduced into inline code (#7858). * Custom writer: preserve order of element attributes (#7489, Albert Krewinkel). Attribute key-value pairs are marshaled as AttributeList, i.e., as a userdata type that behaves both like a list and a map. This allows to preserve the order of key-value pairs. * Switch to hslua-2.1 (Albert Krewinkel). This allows for some code simplification and improves stability. * Don't read files outside of user data directory (Even Brenden). If a file path does not exist relative to the working directory, and it does exist relative to the user data directory, but outside of of the user data directory, do not read it. This applies to `readDataFile` and `readMetadataFile` in PandocMonad and, by extension, any module that uses these by passing them relative paths. * Text.Pandoc.Class.`makeCanonical`: Correctly handle consecutive ".."s at the beginning of a path (Even Brenden). Prior to this commit, `../../file` would evaluate to `file`, when it should be unchanged. * Search for metadata files in `$DATADIR/metadata` (#7851, Even Brenden). If files specified with `--metadata-file` are not found in the working directory, look in `$DATADIR/metadata` (#5876). * Text.Pandoc.Class: export `readMetadataFile` [API change] (#5876). * Text.Pandoc.Error: export new `PandocCouldNotFindMetadataFileError` constructor for `PandocError` [API change] (#5876). * Avoid putting a frame around speaker notes in beamer (#7857). If speaker notes (a Div with class 'notes') occur right after a section heading, but above slide level, the resulting `\note{..}` caommand should not be wrapped in a frame, as that will cause a spurious blank slide. * CSS in HTML template: adjust #TOC and h1 on mobile (#7835, Mauro Bieg). * Text.Pandoc.Readers.LaTeX.Parsing: don't export `totoks`. Make the first param of `tokenize` a SourcePos instead of SourceName, and use it instead of `totoks`. * Text.Pandoc.Shared: Modify `stringify` so it ignores `[Citation]` inside `Cite` (#7855). Otherwise we'll sometimes get two copies of things, one from the `citationPrefix` or `citationSuffix` and another from the embedded fallback text. When there is no fallback text, we'll get no content. However, it really isn't an alternative to just rely on the result of running `query` on the embedded `Citation`s; this will result in a jumble of text rather than anything structured. * Omit `--enable-doc` in the cabal haddock invocation in `tools/build-and-upload-api-docs.sh`. * Text.Pandoc.App.Opt: fix logic bug in `fullDefaultsPath`. Previously we would (also) search the default user data directory for a defaults file, even if a different user data directory was specified using `--data-dir`. This was a mistake; if `--data-dir` is used, the default user data directory should not be searched. * Text.Pandoc.Shared: `defaultUserDataDir` behavior change (#7842). If the XDG data directory is not defined (e.g. because it's not supported in the OS or HOME isn't defined), we return the empty string instead of raising an exception. * Update command tests to distinguish stderr and test exit status. * MANUAL: add that speaker notes can be used with beamer (#7856). * Update `build-and-upload-api-docs.sh`. * Document `--trace` option. Document `no-check-certificate` in defaults files. Document 'sandbox' option for defaults files. (#7873). * Fix pattern syntax in sample readability custom reader. * doc/custom-readers.lua: add example for "readable HTML." * Fix message in man page about where code can be found. * `manfilter.lua`: remove extra indent in table cells with code blocks. * Fix lua-filters documentation for table column widths (#7864). * epub.doc: Update links to KindleGen (#7846, Benson Muite, Mauro Bieg). KindleGen has been deprecated and we need to link to archived versions. * Use tables in defaults files documentation, so each default option is paired with the corresponding command-line option (Carsten Allefeld). * Use skylighting 0.12.2. * Add pandoc-lua-marshal to Nix shell (#7849, Even Brenden). [#]# pandoc 2.17.0.1 (2022-01-14) * Require pandoc-lua-marshal 0.1.3.1 (#7831, Albert Krewinkel). Fixes a problem with `List.includes` and `List.find` that caused a Lua stackoverflow and subsequent program crash. * HTML template: load header-includes before math (#7833, Kolen Cheung). MathJax expect the config comes before loading the MathJax script. This change of order allows one to config MathJax via header-includes, which loads before the MathJax script. Cf. #2750. * When reading defaults file, stop at a line `...`. This line signals the end of a YAML document. This restores the behavior we got with HsYaml. yaml complains about content past this line. See https://github.com/jgm/pandoc/issues/4627#issuecomment-1012438765 * Text.Pandoc.Citeproc: allow `notes-after-punctuation` to work with numerical styles that use superscripts (e.g. american-medical-association.csl), as well as with note styles. The default setting of `notes-after-punctuation` is true for note styles and false otherwise. This restores a behavior of pandoc-citeproc that wasn't properly carried over to Citeproc (#7826, cf. jgm/pandoc-citeproc#384). * Use commonmark-pandoc 0.2.1.2 (#7769). * Add FAQ on images in ipynb containers (#7749, Kolen Cheung). [#]# pandoc 2.17 (2022-01-12) * Support `markua` as an output format (#1871, Tim Wisotzki and Saumel Lemmenmeier). Markua is a markdown variant used by Leanpub. * Add text wrapping for HTML output (#7764). Previously the HTML writer was exceptional in not being sensitive to the `--wrap` option. With this change `--wrap` now works for HTML. The default (as with other formats) is automatic wrapping. Note that the contents of `script`, `textarea`, and `pre` tags are always laid out with the `flush` combinator, so that unwanted spaces won't be introduced if these occur in an indented context in a template. * Don't read sources until in/out format are verified (#7797). * Issue error with `--list-extensions` for invalid formats (#7797). * Make `--citeproc` recognize `.yml` as well as `.yaml` extensions as YAML bibliography files (#7707, Jörn Krenzer). * Use latest version of KaTeX with `--katex`. * Fix parsing of footnotes in `--metadata-file` (#7813). Previously non-inline footnotes were not being parsed. * ODT reader: + Parse list-header as a list item (Tuong Nguyen Manh). * Commonmark reader: + Put sourcepos attribute on header, not enclosing div with `-f commonmark+sourcepos` (#7769). * Markdown reader: + Don't allow `^` at beginning of link or image label (#7723). This is reserved for footnotes. Fixes regression from 0a93acf. + Fix parsing of "bare locators" after author-in-text citations. Previously `@item [p. 12; @item2]` was incorrectly parsed as three citations rather than two. This is now fixed by ensuring that `prefix` doesn't gobble any semicolons. + Revert changes to `inlinesInBalancedBrackets` (commit fa83246), which caused regressions. + Improve detection of pipe table line widths (#7713). Fixed calculation of maximum column widths in pipe tables. It is now based on the length of the markdown line, rather than a "stringified" version of the parsed line. This should be more predictable for users. In addition, we take into account double-wide characters such as emojis. * Custom (Lua) readers: + First argument is now a list of sources instead of the concatenated text (Albert Krewinkel). The list structure can easily be converted to a string by applying `tostring`, but it is also possible to access the elements (each with a `text` and `name`). A small example is added to the custom reader documentation, showcasing its use in a reader that creates a syntax-highlighted code block for each source code file passed as input. Existing readers will still work through a fallback mechanism, issuing a deprecation notice. * Org reader: + Parse official org-cite citations (#7329). We also support the older org-ref style as a fallback. We no longer support the "markdown style" or "Berkeley style" citations. + Support alphabetical (fancy) lists (Lucas Viana). When the `fancy_lists` extension is enabled, alphabetical list markers are allowed, mimicking the behaviour of Org Mode when `org-list-allow-alphabetical` is enabled. + Support counter cookies in lists (Lucas Viana). Such cookies are used to override the item counter in ordered lists. In org it is possible to set the counter at any list item, but since Pandoc AST does not support this, we restrict the usage to setting an offset for the entire ordered list, by using the cookie in the first list item. + Allow trailing spaces after key/value pairs in directives (Albert Krewinkel). Ensures that spaces at the end of attribute directives like `#+ATTR_HTML: :width 100%` (note the trailing spaces) are accepted. * LaTeX reader: + Omit visible content for `\label{...}`. Previously we included the text of the label in square brackets, but this is undesirable in many cases. See discussion in <https://github.com/jgm/pandoc/issues/813#issuecomment-978232426>. + Improve references (#813). Resolve references to theorem environments. Remove the Span caused by "label" in figure, table, and theorem environments; this had an id that duplicated the environments' id. + Fix semantics of `\ref`. We were including the ams environment type in addition to the number. This is proper behavior for `\cref` but not for `\ref`. To support `\cref` we need to store the environment label separately. + Add babel mappings for Guajati (gu) and Oriya (or) (#7815). + Fix typo `panjabi` -> `punjabi` in babel mappings (#7814). * HTML reader: + Parse attributes on links and images (#6970). * Docx reader: + Handle multiple pic elements inside a drawing (#7786). + Change `elemToParPart` to return `[ParPart]` instead of `ParPart`. Also remove `NullParPart `constructor, as it is no longer needed. This will allow us to handle elements that contain multiple ParParts, e.g. `w:drawing` elements with multiple `pic:pic`. * DocBook reader: + Collapse internal spaces in literal and other similar tags (#7821), as the standard docbook toolchain does. + Be sensitive to spacing="compact" in lists (#7799). When `spacing="compact"` is set, Para elements are turned into Plain, so we get a "tight" list. * Markdown writer: + Add new exported function `writeMarkua` from Text.Pandoc.Writers.Markdown [API change] (#1871, Tim Wisotzki and Saumel Lemmenmeier). + Fix indentation issue in footnotes (#7801). + Avoid extra space before citation suffix if it already starts with a space. + Ensure semicolon between the locator and the next citation when an author-in-text citation has a locator and following citations. + Improve escaping for `#` (#7726). * Custom (Lua) writers: + Allow variables to be set via second return value of `Doc` (#6731, Albert Krewinkel). New templates variables can be added by giving variable-value pairs as a second return value of the global function `Doc`. Example: ``` function Doc (body, meta, vars) vars.date = vars.date or os.date '%B %e, %Y' return body, vars end ``` + Provide global `PANDOC_WRITER_OPTIONS` (#6731, Albert Krewinkel). + Assign default Pandoc object to global `PANDOC_DOCUMENT` (Albert Krewinkel). The default Pandoc object is now non-strict, i.e., only the parts of the document that are accessed will be marshaled to Lua. A special type is no longer necessary. This change also makes it possible to use the global variable with library functions such as `pandoc.utils.references`, or to inspect the document contents with `walk()`. * LaTeX writer: + Fix typo `panjabi` -> `punjabi` in babel mappings (#7814). * MediaWiki writer: + Remove redundant display text for wiki links (Jesse Hathaway). * Docx writer: + Handle bullets correctly in lists by not reusing numIds (#7689, Michael Hoffmann). This fixes a bug in which a Div in a list item would receive bullets on its contained paragraphs. * Org writer: + Fix list items starting with a code block or other non-paragraph content (#7810). + Avoid blank lines after tight sublists (#7810). + Fix extra blank line inserted after empty list item (#7810). + Don't add blank line before lists (#7810). + Support starting number cookies (Lucas Viana). This is necessary for lists that start at a number other than 1. + Support the new org-cite syntax (#7329). * Haddock writer: + Avoid blank lines after tight sublists (#7810). * Ipynb writer: + Ensure deterministic order of keys. + Handle cell output with raw block of markdown (#7563, Kolen Cheung). Write RawBlock of markdown in code-cell output. This is designed to fit the behavior of #7561, which makes the ipynb reader parse code-cell output with mime "text/markdown" to a RawBlock of markdown. This commit makes the ipynb writer writes this RawBlock of markdown back inside a code-cell output with the same mime, preserving this information in round-trip. + In choosing between multiple output options, always favor those marked with the output format over images (Kolen Cheung). Previously, both `fmt == f` case and Image have a rank of 1. * Ipynb reader & writer: properly handle cell "id" (#7728). This is passed through if it exists (in Nb4); otherwise the writer will add a random one so that all cells have an "id". * Ms writer: + Properly encode strings for PDF contents (#7731). * JATS writer: + Keep quotes in element-citations (Albert Krewinkel). Fixed a bug that lead to quote characters being lost in element-citations. * RTF writer: + Properly handle images in data URIs (#7771). * Commonmark writer: + Allow ')' delimiters on ordered lists. * RST writer: + Avoid extra blank line after empty list item (#7810). * HTML writer: + Make line breaks more consistent. With `--wrap=none`, we now output line breaks between block-level elements. Previously they were omitted entirely, so the whole document was on one line, unless there were literal line breaks in pre sections. This makes the HTML writer's behavior more consistent with that of other writers. Also, regardless of wrap settings, put newline after `<dd>` and after block-level elements in the footnotes section. And add a line break between an `img` tag and the associated `figcaption`. + reveal.js: Make sure images with `r-stretch` are not in p tags. They must be direct children of the section. There was previously code to make this work with the older class name `stretch`, but the name has changed in reveal.js. + reveal.js: don't add `r-fit-text` class to section. It must go on the header only. * AsciiDoc writer: + Improve detection of intraword emphasis (#7803). * OpenDocument writer: + Fix vertical alignment bug with display math (#7777). Previously some displayed formulas would be floated above a preceding text line. This is fixed by setting `vertical-rel` to `text` rather than `paragraph-content`. * JATS template (Albert Krewinkel): + Fix position of contrib affiliations in authoring set. Any `<aff>` element must come before any `<email>` element. + Fix affiliation tagging in `articleauthoring` output. Affiliations were `xlink`ed even in the articleauthoring tag set, but `<aff>` are not allowed as children of `contrib-group` elements in that tag set. Each affiliation must be listed directly in the contrib element. + Add support for article subtitles. * EPUB template: + Include abstract in default template. + Ensure that the essential styles needed by pandoc (`styles.html` partial) are included in the templates. This is important for correct formatting of CSL bibliographies. Note that much of the styling in `styles.html` will be ignored for EPUB, because of the conditional on `document-css`. Setting the `document-css` variable will cause it not to be ignored. * HTML template: Add abstract (#7588, Jannik Buhr, John MacFarlane). By default, a localized title (the word "Abstract") will be used, unless the variable `abstract-title` is set. * ConTeXt template: Make title appear in PDF title bar. This is recommended for accessibility reasons. Note: doesn't work with macOS Preview.app. * `reference.pptx`: change to use 16:9 aspect ratio, Powerpoint's default. * Text.Pandoc.Writers: + Do not export `writeCustom` [API change]. This ensures that all writers exported in T.P.Writers are parameterized and work with any `PandocMonad` type. This is consistent with T.P.Readers, as `readCustom` is not exported from that module either. * Text.Pandoc.Writers.Shared: + `endsWithPlain` now returns True if the list ends with a list that ends with a Plain, and so on recursively (#7810). * Text.Pandoc.Class.IO: + `writeMedia`: unescape percent-encoding in creating file path. This addresses a problem with spaces in image filenames when creating PDFs (#7819); it also affects `--extract-media`. * New internal module Text.Pandoc.Writers.Blaze, exporting `layoutMarkup`. This converts a blaze Html structure into a doclayout Doc Text. * Text.Pandoc.Extensions: + `parseFormatSpec`: cleaner error message for invalid extensions. * Text.Pandoc.MediaBag: + Fix bug in `extractMedia`, which caused the test for `..` in paths to fail, with the result that images with `..` in the path name could be extracted outside of the directory specified by `extractMedia`. It also led a check for `media` in resource paths to fail in the docx reader. * Text.Pandoc.Citeproc: + Avoid adding comma before an author-in-text citation in a note if it begins with a title (no author) (#7761). + Text.Pandoc.Citeproc.Locator now exports `toLocatorMap`, `LocatorInfo`, and `LocatorMap`. The type of `parseLocator` has changed, so it now takes a `LocatorMap` rather than a `Locale` as parameter, and returns a `LocatorInfo` instead of a tuple. + Fix citation locator detection for German. `toLocatorMap` now stores keys case-folded. We want to do a case-insensitive comparison when parsing locators, so that e.g. both `Chap.` and `chap.` work. Previously we case-folded terms when doing the lookup, but they weren't case-folded in the map itself, which led to locator-detection breaking for German (where the terms have uppercase letters). * Lua (Albert Krewinkel): + Allow single elements as singleton MetaBlocks/MetaInlines. Single elements should always be treated as singleton lists in the Lua subsystem. + Add `pandoc.template` module. The module provides a `compile` function to use strings as templates. + Add `pandoc.WriterOptions` constructor. + Add function `pandoc.write`. + Provide global `PANDOC_WRITER_OPTIONS` (#5221). + The function Text.Pandoc.Filter.applyFilters now takes a filter environment of type `Environment`, instead of a ReaderOptions value [API change]. + The `Environment` type is exported from Text.Pandoc.Filter and allows to combine ReaderOptions and WriterOptions in a single value [API change]. + Global, exported from Text.Pandoc.Lua, has a new type constructor `PANDOC_WRITER_OPTIONS` [API change]. + Add constructors `pandoc.Blocks` and `pandoc.Inlines`. The functions convert their argument into a list of Block and Inline values, respectively. When applied to a string, they split the string into `Str` elements separated by `Space` or `SoftBreak` (#7712). + Support topdown traversals The traversal order of filters can now be selected by setting the key `traverse` of the filter to either `'topdown'` or `'typewise'`; the default remains `'typewise'`. Topdown traversals can be cut short by returning `false` as a second value from the filter function. No child-element of the returned element is processed in that case. + Marshal ReaderOptions field `extensions`, `track_changes` via JSON. Extensions are now available as a list of strings; the track-changes settings are given as the kebab-case representation used in JSON. + Allow binary (byte string) readers to be used with `pandoc.read`. + Use global state when parsing documents in `pandoc.read`. The function `pandoc.read` is updated to use the same state that was used while parsing the main input files. This ensures that log messages are preserved and that images embedded in the input are added to the mediabag. + Cleanup stack in `peekReadOptionsTable`. A ReaderOptions element was left on top of the stack when the `peekReadOptionsTable` function was invoked. + `walk` methods are added to `Pandoc`, `Block`, `Inline`, `Blocks`, `Inlines` values; the methods are similar to `pandoc.utils.walk_block` and `pandoc.utils.walk_inline`, but apply to filter to the element's contents. + Functions of name `Doc` are no longer accepted as alternatives for `Pandoc` filter functions. This functionality was undocumented. + Improve handling of empty caption, body by `from_simple_table` [#7776]). Create truly empty table caption and body when these are empty in the simple table. + Change representation of `TableHead`, `TableFoot`, and `Row` values (#7718). The objects now also follow the principle that element attributes are accessible through the `.attr` field. Rows in `TableHead` and `TableFoot` are available via the `.rows` field. Row objects have a `.cells` field, containing the list of table cells. + [Simplify](Simplify) code of `pandoc.utils.stringify`. Minor behavior change: plain strings nested in tables are now included in the result string. + Simplify and deprecate function `pandoc.utils.equals`. The function is no longer required for element comparisons; it is now an alias for the `==` operator. + Add function `pandoc.utils.references` (#7752). + Add new library function `pandoc.utils.type`. The function behaves like the default `type` function from Lua's standard library, but is aware of pandoc userdata types. A typical use-case would be to determine the type of a metadata value. + Fix return types of `blocks_to_inlines`, `make_sections`. Ensures the returned lists have the correct type (`Inlines` and `Blocks`, respectively). + Use more natural representation for Reference values Omit `false` boolean values, push integers as numbers. * Lua: use package pandoc-lua-marshal (#7719, Albert Krewinkel). The marshaling functions for pandoc's AST are extracted into a separate package. The package comes with a number of changes: + Pandoc's List module was rewritten in C, and error messages were improved. + Lists of `Block` and `Inline` elements are marshaled using the new list types `Blocks` and `Inlines`, respectively. These types currently behave identical to the generic List type, but give better error messages. This also opens up the possibility of adding element-specific methods to these lists in the future. + Elements of type `MetaValue` are no longer pushed as values which have `.t` and `.tag` properties. This was already true for `MetaString` and `MetaBool` values, which are still marshaled as Lua strings and booleans, respectively. Affected values: - `MetaBlocks` values are marshaled as a `Blocks` list; - `MetaInlines` values are marshaled as a `Inlines` list; - `MetaList` values are marshaled as a generic pandoc `List`s. - `MetaMap` values are marshaled as plain tables and no longer given any metatable. + `Cell` values are now marshaled as userdata objects; a constructor function for table cells is provided as `pandoc.Cell`. + The test suite for marshaled objects and their constructors has been extended and improved. + A bug in `Citation` objects, where setting a citation's suffix modified it's prefix, has been fixed. + Inlines, Blocks, and List objects now have an `__eq` metamethod, testing equality by comparing two lists element-wise. * Powerpoint tests: shorten lines by grouping tests (Albert Krewinkel). This makes the test output more pleasant to read in narrow terminal windows. * make check: check for unreleased dependencies. * Add `tools/build-and-upload-api-docs.sh`. * Update cabal description. * `MANUAL.txt`: Add section on EPUB styling. * `MANUAL.txt`: clarify "standard Markdown" as "original Markdown" (#7802, Martin Fischer). * `doc/custom-writers.md`: use filter to include source of example. * Add an example to `doc/custom-readers.md`. * Fix typo in `custom-readers.md` (#7722, Mauro Bieg). * `doc/jats.md`: add link to JATS documentation (Martin Fischer). * `doc/lua-filters.md`: many improvements (Albert Krewinkel, John MacFarlane). * Use commonmark-extensions 0.2.3. This allows a bare-word class attribute on fenced divs. * Use ipynb 0.2. * Use citeproc 0.6.0.1. * Use texmath 0.12.4. * Use doctemplates 0.10.0.1. [#]# pandoc 2.16.2 (2021-11-21) * Add interface for custom readers written in Lua (#7669). Users can now do `-f myreader.lua` and pandoc will treat the script `myreader.lua` as a custom reader, which parses an input string to a pandoc AST, using the pandoc module defined for Lua filters. A sample custom reader can be found in `data/creole.lua`. Also see documentation in `doc/custom-readers.md`. * New module Text.Pandoc.Readers.Custom, exporting `readCustom` [API change]. * Allow `plain` to be used in raw attribute syntax. * Accept empty `--metadata-file` (#7675). This was a regression from 2.15 behavior. * Markdown reader: Improve `inlinesInBalancedBrackets`. This is just a small improvement in terms of performance, but it's simpler and more direct code. Also, we avoid parsing interparagraph spaces in balanced brackets, as the original did. * BibTeX reader: Properly handle commented lines in BibTeX/BibLaTeX (#7668). * RST reader: handle class attribute for for custom roles (#7699, willj-dev). Previously the class attribute was ignored, and the name of the role used as the class. * DocBook reader: + Add `<titleabbr>` support (Rowan Rodrik van der Molen). + Support for `<indexterm>` (#7607, Rowan Rodrik van der Molen). * LaTeX reader: + Add rudimentary support for `\autoref` (#7693). + Add 'uri' class when parsing `\url`, for consistency with treatment of autolinks in other formats (#7672). * JATS reader: Capture `alt-text` in figures (#7703, Aner Lucero). * MediaWiki writer: use HTML spans for anchors when header has id (#7697). We need to generate a span when the header's ID doesn't match the one MediaWiki would generate automatically. Note that MediaWiki's generation scheme is different from pandoc's (it uses uppercase letters, and `_` instead of `-`, for example). This means that in going from markdown to mediawiki, we'll now get spans before almost every heading, unless explicit identifiers are used that correspond to the ones MediaWiki auto-generates. This is uglier output but it's necessary for internal links to work properly. * Markdown writer: don't create autolinks when this loses information (#7692). Previously we sometimes lost attributes when rendering links as autolinks. * Text.Pandoc.Readers.Metadata: allow multiple YAML documents when parsing YAML for `yamlBsToRefs`. Some people use `---` as the end delimiter in YAML bibliography files, which causes the `yaml` library to emit an error unless we explicitly allow multiple YAML documents (and just consider the first). * JATS writer: + Ensure figures are wrapped with `<p>` in list items (Albert Krewinkel). This prevents the generation of invalid output. + Add URL to element citation entries (Albert Krewinkel). The URL of a reference, if present, is added in tag `<uri>` to element-citation entries. * HTML writer: Don't create invalid `data-` attribute for empty attribute key (#7546). * LaTeX writer: + Babel mappings: use `ancientgreek` for `grc`. + With `-t latex-smart`, don't generate `\ldots` from ellipsis (#7674). Instead just use unicode ellipsis. * JATS template: fix `equal-contrib` attribute (Albert Krewinkel). The standard requires the value to be either `yes` or `no`, but is was set to `true` for authors who contributed equally. * reveal.js template: Add `disableLayout` variable (Christophe Dervieux). * Text.Pandoc.Error: sort errors in `handleError` by exit code (Albert Krewinkel). * Text.Pandoc.Writers.Shared: Improve toLegacyTable (#7683, Christian Despres). * Lua subsystem: + Include lpeg module (#7649, Albert Krewinkel). Compiles the `lpeg` library (Parsing Expression Grammars For Lua) into the program. Package maintainers may choose to rely on package dependencies to make lpeg available, in which case they can compile the with the constraint `lpeg +rely-on-shared-lpeg-library`. `lpeg` and `re` are always made available in global variables, without the need for a `require`. + Set `lpeg` and `re` as globals; allow shared lib access via `require`. The `lpeg` and `re` modules are loaded into globals of the respective name, but they are not necessarily registered as loaded packages. This ensures that - the built-in library versions are preferred when setting the globals, - a shared library is used if pandoc has been compiled without `lpeg`, and - the `require` mechanism can be used to load the shared library if available, falling back to the internal version if possible and necessary. + Fix argument order in constructor `pandoc.Cite` (Albert Krewinkel). This restores the old behavior; argument order had been switched accidentally in pandoc 2.15. + Add Pushable instance for `ReaderOptions` (Albert Krewinkel). + Allow to pass custom reader options to `pandoc.read` as an optional third argument (#7656, Albert Krewinkel). The object can either be a table or a ReaderOptions value like `PANDOC_READER_OPTIONS`. Creating new ReaderOptions objects is possible through the new constructor `pandoc.ReaderOptions`. + Display Pandoc values using their native Haskell representation (Albert Krewinkel). + Require latest hslua (2.0.1) (#7661, #7657, Albert Krewinkel). This fixes issues with - misleading error messages when a required function parameter is omitted; - absent properties still being listed in the output of `pairs`; and - alias accessing leading to errors instead of returning `nil`, e.g. with `(pandoc.Str '').identifier`. + Add missing space in "package not found" message (#7658, Albert Krewinkel). * Update build files (#7696, Fabián Heredia Montiel). Drop old windows 32-bit constraints. Update cabal `tested-with` field to correspond to `ci.yml` matrix * Remove unneeded package dependencies from benchmark target. * Require ghc >= 8.6, base >= 4.12. This allows us to get rid of the old custom prelude and some crufty cpp. But the primary reason for this is that conduit has bumped its base lower bound to 4.12, making it impossible for us to support lower base versions. * Require Cabal 2.4. Use wildcards to ensure that all pptx tests are included (#7677). * Update `bash_completion.tpl` (S.P.H.). * Add `data/creole.lua` as sample custom reader. * Add `doc/custom-readers.md` and `doc/custom-writers.md`. * `doc/lua-filters.md`: add section on global modules, including lpeg (Albert Krewinkel). * `MANUAL.txt`: update table of exit codes and corresponding errors (Albert Krewinkel). * Use latest texmath. * Wed Nov 03 2021 psimons@suse.com - Update pandoc to version 2.16.1. [#]# pandoc 2.16.1 (2021-11-02) * Docx reader: don't let first line indents trigger block quotes (#7655). This fixes a regression introduced in pandoc 2.15. * Docx writer: use `getTimestamp` for modification times in reference.docx (#7654). This ensures that when `SOURCE_DATE_EPOCH` is set, the modification times of files taken from the reference.docx will be set deterministically, allowing for reproducible builds. * Lua subsystem (Albert Krewinkel): + Load module `pandoc.path` on startup (#7524). Previously the module always had to be loaded via `require 'pandoc.path'`. + Fix typo in SoftBreak constructor. + Re-add `content` property to Strikeout elements. Fixes a regression introduced in 2.15. + Be more forgiving when retrieving the Image `caption` property. Fixes a regression introduced in 2.15. + Display Attr values using their native Haskell representation. + Allow omitting the 2nd parameter in pandoc.Code constructor. Fixes a regression introduced in 2.15 which required users to always specify an Attr value when constructing a Code element. + Allow to compare, show Citation values. Comparisons of Citation values are performed in Haskell; values are equal if they represent the same Haskell value. Converting a Citation value to a string now yields its native Haskell string representation. + Restore List behavior of MetaList (#7650). Fixes a regression introduced in 2.16 which had MetaList elements lose the `pandoc.List` properties. + Restore `content` property on Header elements. + Ensure Block elements have all expected properties. + Ensure Inline elements have all expected properties. * Allow tasty-bench 0.3.x. * Mon Nov 01 2021 psimons@suse.com - Update pandoc to version 2.16. Upstream has edited the change log file since the last release in a non-trivial way, i.e. they did more than just add a new entry at the top. You can review the file at: http://hackage.haskell.org/package/pandoc-2.16/src/changelog.md * Thu Oct 07 2021 Ondřej Súkup <mimi.vx@gmail.com> - relax dep on skylighting * Sun Aug 22 2021 psimons@suse.com - Update pandoc to version 2.14.2. [#]# pandoc 2.14.2 (provisional) * Allow `--slide-level=0` (#7476). When the slide level is set to 0, headings won't be used at all in splitting the document into slides. Horizontal rules must be used to separate slides. * Add RTF reader (#3982). `rtf` is now supported as an input format as well as an output format. New module Text.Pandoc.Readers.RTF (exporting `readRTF`). [API change] * HTML reader: treat comments as blank when parsing (#7482). * Markdown reader: + Fix raw LaTeX injection issue (#7497). Using a code block containing `\end{verbatim}`, one could inject raw TeX into a LaTeX document even when `raw_tex` is disabled. Thanks to Augustin Laville for noticing the bug. + Multimarkdown sub- and superscripts (#5512, OCzarnecki). Added an extension `short_subsuperscripts` which modifies the behavior of `subscript` and `superscript`, allowing subscripts or superscripts containing only alphanumerics to end with a space character (eg. `x^2 = 4` or `H~2 is combustible`). This improves support for multimarkdown. * RST reader: Fix `:literal:` includes (#7513). These should create code blocks, not insert raw RST. * LaTeX reader: + Proper implicit grouping around environment macros. + Support `\global` before `\def`, `\let`, etc. (#7494). + Fix scope for LaTeX macros (#7494). They should by default scope over the group in which they are defined (except `\gdef` and `\xdef`, which are global). In addition, environments must be treated as groups. + Improve handling of plain TeX macro primitives (#7474). Fixed semantics for `\let`. + Implement `\edef`, `\gdef`, and `\xdef`. * Docx reader: Improve docx reader's robustness in extracting images (#7511). The docx reader made some assumptions about how docx containers were laid out that were not always true, with the result that some images in documents did not get extracted. * LaTeX writer: Increase table column width precision (#7466, Peter Fabinski). In some cases, the rounding performed by the LaTeX table writer would introduce visible overrun outside the text area. This adds two more decimal places to the width values. * Powerpoint writer: + Include image title in description (#7352, Emily Bourke). The image title (i.e. `![alt text](link "title")`) was previously ignored when writing to pptx. This commit includes it in PowerPoint's description of the image, along with the link. + Select layouts from reference doc by name (Emily Bourke). Until now, users had to make sure that their reference doc contains layouts in a specific order: the first four layouts in the file had to have a specific structure. Now the layout selection uses the layout names rather than order: users must make sure their reference doc contains four layouts with specific names, and if a layout with the right name isn’t found pandoc will emit a warning and use the corresponding layout from the default reference doc as a fallback. * Docx writer: be sensitive to the `native_numbering` extension (#7499). Figure and table numbers are now only included if `native_numbering` is enabled. (By default it is disabled.) This is a behavior change with respect to 2.14.1, but the default behavior is now that of previous versions. The change was necessary to avoid incompatibilities between pandoc's native numbering and third-party cross reference filters like pandoc-crossref. * RTF writer: + Omit `\bin` in `\pict`. According to the spec, this is not needed or wanted when the data is in hexadecimal format, as here. + Emit `\outlinelevel`` for section headings. * RTF template: specify font family for fixed-width font f1. According to the spec, this is mandatory. * LaTeX writer: Use ulem for underline (#7351). ulem is conditionally included already when the `strikeout` variable is set, so we set this when there is underlined text, and use `\uline` instead of `\underline`. This fixes wrapping for underlined text. * Text.Pandoc.Citeproc: + Revise citeproc code to fit new citeproc 0.5 API (thanks to Benjamin Bray). Linkification of URLs in the bibliography is now done in the citeproc library, depending on the setting of an option. We set that option depending on the value of the metadata field `link-bibliography` (defaulting to true, for consistency with earlier behavior). If a DOI, PMID, PMCID, or URL field is present but not explicitly rendered, the title (or if no title, the whole entry) is hyperlinked. These changes implement the recommendations from the draft CSL v1.0.2 spec (Appendix VI): <https://github.com/citation-style-language/documentation/blob/master/specification.rst#appendix-vi-links> + Avoid odd handling of quotes. Recent citeproc changes allow us to ignore Quoted elements; citeproc now uses its own method for represented quoted things, and only localizes and flipflops quotes it adds itself. Convert Quoted in bib entries to special Spans before passing them off to citeproc. This ensures that we get proper localization and flipflopping if, e.g., quotes are used in titles (jgm/citeproc#87). + Removed quote localization from citeproc processing. This is now done in citeproc itself. * Text.Pandoc.Logging: Add PowerpointTemplateWarning log message type [API change] (Emily Bourke). * Text.Pandoc.Extension: Add `Ext_short_subsuperscripts` constructor to `Extension` [API change] (OCzarnecki). * Various sample.lua editorial fixes (#7493, #7487, William Lupton). * Bump base-compat version so we get compatibility with base 4.12. * Use Prelude from base-compat for ghc 8.4 too. * Add haskell-language-server to shell.nix (#7496, Emily Bourke). * Tests.Helpers: export testGolden and use it in RTF reader. This gives a diff output on failure. * Remove obsolete and incorrect sentence in `--slide-level` docs. * Add internal module Text.Pandoc.Network.HTTP, exporting `urlEncode`. * Text.Pandoc.Parsing: `parseFromString`: preserve at least the source directory (#7464). Previously we just set the source name to "chunk" when parsing from strings, to avoid misleading source positions. This had the side effect that `rebase_relative_paths` would break inside sections that were parsed as strings. So, now we use "ORIGINAL_SOURCE_PATH_chunk" instead of just "chunk". * Text.Pandoc.MIME: use image/x-xcf instead of application/x-xcf (#7454). * Don’t compare `cdLine` in OOXML golden tests (Emily Bourke). The `cdLine` field gives the line of the file some CData was found on, which reflects irrelevant formatting differences. * Provide more detailed XML diff in tests (Emily Bourke). * OOXML tests: silence warnings. These can make the test output confusing, making people think tests are failing when they're passing. * INSTALL.md: Add GitLab CI/CD example (#7448, Veratyr). * MANUAL.txt - Clarifications (William Lupton). - Add a note on security risks of include directives. * Document use of the 'underline' class (#7492, #7484, William Lupton). * Add a FAQ about the "Cannot allocate memory" error on M1 macs. * Use texmath 0.12.3.1. * Use released citeproc 0.5. * Remove dependency on HTTP package (#7456, mt_caret). * Sun Jul 25 2021 Kévin Le Gouguec <kevin.legouguec@gmail.com> - Include manpage in distribution. * Mon Jul 19 2021 psimons@suse.com - Update pandoc to version 2.14.1. [#]# pandoc 2.14.1 (2021-07-18) * Text.Pandoc.ImageSize: Add Tiff constructor for ImageType (#7405) [Minor API change]. This allows pandoc to get size information from tiff images. * Markdown reader: don't try to read contents in self-closing HTML tag. Previously we had problems parsing raw HTML with self-closing tags like `<col/>`. The problem was that pandoc would look for a closing tag to close the markdown contents, but the closing tag had, in effect, already been parsed by `htmlTag`. * LaTeX reader: + Avoid trailing hyphen in translating languages (#7447). Previously `\foreignlanguage{english}` turned into `<span lang="en-">`. The same issue affected Arabic. + Support `\cline` in LaTeX tables (#7442). + Improved parsing of raw LaTeX from Text streams (`rawLaTeXParser`, used to read LaTeX in Markdown files, #7434). We now use source positions from the token stream to tell us how much of the text stream to consume. Getting this to work required a few other changes to make token source positions accurate. * DocBook reader: + Handle images with imageobjectco elements (#7440). + Add support for citerefentry (#7437, Jan Tojnar). * RST reader: fix regression with code includes (#7436). With the recent changes to include infrastructure, included code blocks were getting an extra newline. * HTML reader: + Recognize data-external when reading HTML img tags (#7429, Michael Hoffmann). Preserve all attributes in img tags. If attributes have a `data-` prefix, it will be stripped. In particular, this preserves a `data-external` attribute as an `external` attribute in the pandoc AST. + Add col, colgroup to 'closes' definitions * HTML writer: + Remove duplicated alt text in HTML output (Aner Lucero). + Remove `aria-hidden` when explicit alt text is provided (Aner Lucero). + Set boolean values for reveal.js variables. * Docx writer: + Add table numbering for captioned tables. The numbers are added using fields, so that Word can create a list of tables that will update automatically. + Support figure numbers. These are set up in such a way that they will work with Word's automatic table of figures (#7392). * Markdown writer: put space between Plain and following fenced Div (#4465). * EPUB writer: Don't incorporate externally linked images in EPUB documents (#7430, Michael Hoffmann). Just as it is possible to avoid incorporating an image in EPUB by passing `data-external="1"` to a raw HTML snippet, this makes the same possible for native Images, by looking for an associated `external` attribute. * Text.Pandoc.PDF: + Fix `svgIn` path error (#7431). We were duplicating the temp directory; this didn't cause problems on macOS or linux because there we use absolute paths for the temp directory. But on Windows it caused errors converting SVG files. + `convertImage`: normalize paths (#7431). This will avoid paths on Windows with mixed path separators. * Text.Pandoc.Class: Always use / when adding directory to image destination with `extractMedia`, even on Windows. * Text.Pandoc.Citeproc: + Allow `$` characters in bibtex keys (#7409). + Set proper initial source name in parsing BibTeX (for better error messages.) + Revamp note citation handling (#7394). Use latest citeproc, which uses a Span with a class rather than a Note for notes. This helps us distinguish between user notes and citation notes. Don't put citations at the beginning of a note in parentheses. Fix small bug in handling of citations in notes, which led to commas at the end of sentences in some cases. + Cleanup and efficiency improvement in `deNote`. + Improve punctuation moving with `--citeproc`. Previously, using `--citeproc` could cause punctuation to move in quotes even when there aer no citations. This has been changed; punctuation moving is now limited to citations. In addition, we only move footnotes around punctuation if the style is a note style, even if `notes-after-punctuation` is `true`. * Use citeproc 0.10. This helps improve note citations (see above) and eliminates double hyperlinks in author-in-text citations. Author-only citations are no longer hyperlinked. See jgm/citeproc#77. It also fixes moving of punctuation inside quotes to conform to the CSL spec: only comma and period are moved, not question mark or exclamation point. * Text.Pandoc.Error: fix line calculations in reporting parsec errors. Also remove a spurious initial newline in the error report. * Use doctemplates 0.4.1, which gives us better support for boolean variable values. Previously `$if(foo)$` would evaluate to true for variables with boolean `false` values, because it cared only about the string rendering (#7402). * Require commonmark-pandoc >= 0.2.2.1. This fixes task lists with multiple paragraphs. * Use skylighting 0.11. * CSS in HTML template: reset overflow-wrap on code blocks (Mauro Bieg, #7423). * LaTeX template: Revert change in PR #7295: "move title, author, date up to top of preamble." The change caused problem for people who used LaTeX commands defined defined later in the preamble in the title or author fields (#7422). * Add `doc/faqs.md`. This is imported from the website; in the future the website version will be drawn from here. Added a FAQ on the use of `\AtEndPreamble` for cases when the contents of `header-includes` need to refer to definitions that come later in the preamble. See #7422. * Upgrade Debian 10 AMI for build-arm.sh. * CircleCI: change to using xcode 11.1.0 (macOS 10.14.4). We previously built on 10.13, but 10.13 no longer gets security updates and CirclCI is deprecating. * Wed Jun 23 2021 psimons@suse.com - Update pandoc to version 2.14.0.3. [#]# pandoc 2.14.0.3 (2021-06-22) * Text.Pandoc.MediaBag `insertMediaBag`: ensure we get a sane mediaPath for URLs (#7391). In earlier 2.14.x versions, we'd get incorrect paths for resources downloaded from URLs when the media are extracted (including in PDF production). * Text.Pandoc.Parsing: improve `emailAddress` (#7398). Previously the parser would accept characters in domains that are illegal in domains, and this sometimes caused it to gobble bits of the following text. * txt2tags reader: modify the email address parser so it still includes form parameters, even after the change to `emailAddress` in Text.Pandoc.Parsing. * Text.Pandoc.Readers.Metadata: Fix regression with comment-only YAML metadata blocks (#7400). * reveal.js writer and template: better handling of options. Previously it was impossible to specify false values for options that default to true (e.g. `center`); setting the option to false just caused the portion of the template setting the option to be omitted. Now we prepopulate all the variables with their default values, including them all unconditionally and allowing them to be overridden. * Markdown writer: Fix regression in code blocks with attributes (#7397). Code blocks with a single class but nonempty attributes were having attributes drop as a result of #7242. * LaTeX writer: + Add strut at end of minipage if it contains line breaks. Without them, the last line is not as tall as it should be in some cases. + Always use a minipage for cells with line breaks, when width information is available (#7393). Otherwise the way we treat them can lead to content that overflows a cell. + Use `\strut` instead of `~` before `\\` in empty line. * Use lts-18.0 stack resolver. * Require skylighting 0.10.5.2 (adding support for Swift). * Require commonmark 0.2.1. * Rephrase section on unsafe HTML in manual. * Create SECURITY.md * Mon Jun 14 2021 psimons@suse.com - Update pandoc to version 2.14.0.2. [#]# pandoc 2.14.0.2 (2021-06-13) * Fix MediaBag regressions (#7345). iIn the 2.14 release `--extract-media` stopped working as before; there could be mismatches between the paths in the rendered document and the extracted media. This patch makes several changes that restore the earlier behavior (while keeping the same API). The `mediaPath` in 2.14 was always constructed from the SHA1 hash of the media contents. Now, we preserve the original path unless it's an absolute path or contains `..` segments (in that case we use a path based on the SHA1 hash of the contents). In Text.Pandoc.MediaBag, `mediaDirectory` and `mediaItems` now use the `mediaPath`, rather than the mediabag key, for the first component of the tuple. This makes more sense, I think, and fits with the documentation of these functions; eventually, though, we should rework the API so that `mediaItems` returns both the keys and the MediaItems. In Text.Pandoc.Class.IO, rewriting of source paths in `extractMedia` has been fixed. In Text.Pandoc.Class.PandocMonad, `fillMediaBag` has been modified so that it doesn't modify image paths (that was part of the problem in #7345). We now do path normalization (e.g. `\` separators on Windows) in writing the media. * Text.Pandoc.PDF: + Text.Pandoc.PDF: Fix regression in 2.14 for generation of PDFs with SVGs (#7344). + Only print relevant part of environment on `--verbose`. Since `--verbose` output might be put in an issue, we want to avoid spilling out secrets in environment variables. * Markdown reader: fix pipe table regression in 2.11.4 (#7343). Previously pipe tables with empty headers (that is, a header line with all empty cells) would be rendered as headerless tables. This broke in 2.11.4. The fix here is to produce an AST with an empty table head when a pipe table has all empty header cells. * LaTeX reader: don't allow optional `*` on symbol control sequences (#7340). Generally we allow optional starred variants of LaTeX commands (since many allow them, and if we don't accept these explicitly, ignoring the star usually gives acceptable results). But we don't want to do this for `\(*\)` and similar cases. * Docx reader: handle absolute URIs in Relationship Target (#7374). * Docx writer: fix handling of empty table headers (Albert Krewinkel, [#7369]). A table header which does not contain any cells is now treated as an empty header. * LaTeX writer: Fix regression in table header position (#7347). In recent versions the table headers were no longer bottom-aligned (if more than one line). This patch fixes that by using minipages for table headers in non-simple tables. * CommonMark writer: + Do not use simple class for fenced-divs (Jan Tojnar, amends #7242.) + Do not throw away attributes when `Ext_attributes` is enabled. `Ext_attributes` covers at least the following: `Ext_fenced_code_attributes`, `Ext_header_attributes`, `Ext_inline_code_attributes`, `Ext_link_attributes`. * Markdown writer: + Allow `pipe_tables` to be disabled for commonmark formats (`commonmark_x`, `gfm`) (#7375). + Re-use functions from Text.Pandoc.Markdown.Inline (Jan Tojnar). * DocBook writer: Remove non-existent admonitions (Jan Tojnar). `attention`, `error` and `hint` are reStructuredText specific. * HTML writer: Don't omit width attribute on div (#7342). * Text.Pandoc.MIME, `extensionFromMimeType`: add a few special cases. When we do a reverse lookup in the MIME table, we just get the last match, so when the same mime type is associated with several different extensions, we sometimes got weird results, e.g. `.vs` for `text/plain`. These special cases help us get the most standard extensions for mime types like `text/plain`. * Lua utils: fix handling of table headers in `from_simple_table` (Albert Krewinkel, #7369). Passing an empty list of header cells now results in an empty table header. * Text.Pandoc.Citeproc: + Avoid duplicate classes and attributes on references div. + Fix regression in citeproc processing (#7376). If inline references are used (in the metadata `references` field), we should still only include in the bibliography items that are actually cited (unless `nocite` is used). * Require citeproc 0.4.0.1. This fixes a bug which led to doubled "et al." in some (rare) circumstances. * MANUAL.txt: + Mention GladTeX for EPUB export (Sebastian Humenda). This updates the manual and the web site about the GladTeX usage. + More details and a useful link for YAML syntax. * CONTRIBUTING.md: update modules overview (Albert Krewinkel). * using-the-pandoc-api.md: switch from String to Text (Albert Krewinkel). * Wed Jun 02 2021 psimons@suse.com - Update pandoc to version 2.14.0.1. Upstream has edited the change log file since the last release in a non-trivial way, i.e. they did more than just add a new entry at the top. You can review the file at: http://hackage.haskell.org/package/pandoc-2.14.0.1/src/changelog.md * Sun May 30 2021 psimons@suse.com - Update pandoc to version 2.14. [#]# pandoc 2.14 (2021-05-28) * Change reader types, allowing better tracking of source positions [API change]. Previously, when multiple file arguments were provided, pandoc simply concatenated them and passed the contents to the readers, which took a Text argument. As a result, the readers had no way of knowing which file was the source of any particular bit of text. This meant that we couldn't report accurate source positions on errors or include accurate source positions as attributes in the AST. More seriously, it meant that we couldn't resolve resource paths relative to the files containing them (see e.g. #5501, #6632, #6384, #3752). * Add `rebase_relative_paths` extension (#3752). When enabled, this extension rewrites relative image and link paths by prepending the (relative) directory of the containing file. This behavior is useful when your input sources are split into multiple files, across several directories, with files referring to images stored in the same directory. The extension can be enabled for all markdown and commonmark-based formats. * Add Text.Pandoc.Sources (exported module), with a `Sources` type and a `ToSources` class. A `Sources` wraps a list of `(SourcePos, Text)` pairs [API change]. A parsec `Stream` instance is provided for `Sources`. The module also exports versions of parsec's `satisfy` and other Char parsers that track source positions accurately from a `Sources` stream (or any instance of the new `UpdateSourcePos` class). * Text.Pandoc.Parsing + Export the modified Char parsers defined in Text.Pandoc.Sources instead of the ones parsec provides. Modified parsers to use a `Sources` as stream [API change]. + Improve include file functions [API change]. Remove old `insertIncludedFileF`. Give `insertIncludedFile` a more general type, allowing it to be used where `insertIncludedFileF` was. + Add parameter to the `citeKey` parser from Text.Pandoc.Parsing, which controls whether the `@{..}` syntax is allowed [API change]. * Text.Pandoc.Error: Modified the constructor `PandocParsecError` to take a `Sources` rather than a `Text` as first argument, so parse error locations can be accurately reported. * Fix source position reporting for YAML bibliographies (#7273). * Issue error message when reader or writer format is malformed (#7231). Previously we exited with an error status but (due to a bug) no message. * Smarter smart quotes (#7216, #2103). Treat a leading `"` with no closing `"` as a left curly quote. This supports the practice, in fiction, of continuing paragraphs quoting the same speaker without an end quote. It also helps with quotes that break over lines in line blocks. * Markdown reader: + Use MetaInlines not MetaBlocks for multimarkdown metadata fields. This gives better results in converting to e.g. pandoc markdown. + Implement curly-brace syntax for Markdown citation keys (#6026). The change provides a way to use citation keys that contain special characters not usable with the standard citation key syntax. Example: `@{foo_bar{x}'}` for the key `foo_bar{x}`. It also allows separating citation keys from immediately following text, e.g. `@{foo}A`. * RST reader: + Seek include files in the directory of the file containing the include directive, as RST requires (#6632). + Use `insertIncludedFile` from Text.Pandoc.Parsing instead of reproducing much of its code. * Org reader: Resolve org includes relative to the directory containing the file containing the INCLUDE directive (#5501). * ODT reader: Treat tabs as spaces (#7185, niszet). * Docx reader: + Add handling of vml image objects (#7257, mbrackeantidot). + Support new table features (Emily Bourke, #6316): column spans, row spans, multiple header rows, table description (parsed as a simple caption), captions, column widths. * LaTeX reader: + Improved siunitx support (#6658, #6620). + Better support for `\xspace` (#7299). + Improve parsing of `\def` macros. We previously set "verbatim mode" even for parsing the initial `\def`; this caused problems for `\def` nested inside another `\def`. + Implement `\newif`. * ConTeXt writer: improve ordered lists (#5016, Denis Maier). Change ordered list from itemize to enumerate. Add new itemgroup for ordered lists. Remove manual insertion of width attributes. Use tabular figures in ordered list enumerators. * HTML reader: + Don't fail on unmatched closing "script" tag (Albert Krenkel, #7282). + Keep h1 tags as normal headers (#2293, Albert Krewinkel). The tags `<title>` and `<h1 class="title">` often contain the same information, so the latter was dropped from the document. However, as this can lead to loss of information, the heading is now always retained. Use `--shift-heading-level-by=-1` to turn the `<h1>` into the document title, or a filter to restore the previous behavior. + Handle relative lengths (e.g. `2*`) in HTML column widths (#4063). See <https://www.w3.org/TR/html4/types.html#h-6.6>. * DocBook/JATS readers: + Fix mathml regression caused by the switch in XML libraries (#7173). + Fix "phrase" in DocBook: take classes from "role" not "class" (#7195). * DocBook reader: ensure that first and last names are separated (#6541). * Jira reader (Albert Krewinkel, #7218): + Support "smart" links: `[alias|https://example.com|smart-card]` syntax. + Allow spaces and most unicode characters in attachment links. + No longer require a newline character after `{noformat}`. + Only allow URI path segment characters in bare links. + The `file:` schema is no longer allowed in bare links; these rarely make sense. * Plain writer: handle superscript unicode minus (#7276). * LaTeX writer: + Better handling of line breaks in simple tables (#7272). Now we also handle the case where they're embedded in other elements, e.g. spans. + For beamer output, support `exampleblock` and `alertblock` (#7278). A block will be rendered as an `exampleblock` if the heading has class `example` and an `alertblock` if it has class `alert`. + Separate successive quote chars with thin space (#6958, Albert Krewinkel). Successive quote characters are separated with a thin space to improve readability and to prevent unwanted ligatures. Detection of these quotes sometimes had failed if the second quote was nested in a span element. + Separate successive quote chars with thin space (#6958, Albert Krewinkel). * EPUB Writer: Fix belongs-to-collection XML id choice (#7267, nuew). The epub writer previously used the same XML id for both the book identifier and the epub collection. This causes an error on epubcheck. * BibTeX/BibLaTeX writer: Handle `annote` field (#7266). * ZimWiki writer: allow links and emphasis in headers (#6605, Albert Krewinkel). * ConTeXt writer: + Support blank lines in line blocks (#6564, Albert Krewinkel, thanks to @denismaier). + Use span identifiers as reference anchors (#7246, Albert Krewinkel). * HTML writer: + Keep attributes from code nested below `pre` tag (#7221, Albert Krewinkel). If a code block is defined with `<pre><code class="language-x">…</code></pre>`, where the `<pre>` element has no attributes, then the attributes from the `<code>` element are used instead. Any leading `language-` prefix is dropped in the code's `class` attribute are dropped to improve syntax highlighting. + Ensure headings only have valid attribs in HTML4 (#5944, Albert Krewinkel). + Parse `<header>` as a Div (Albert Krewinkel). * Org writer: + Inline latex envs need newlines (#7252, tecosaur). As specified in https://orgmode.org/manual/LaTeX-fragments.html, an inline \begin{}...\end{} LaTeX block must start on a new line. + Use LaTeX style maths deliminators (#7196, tecosaur). * JATS writer (Albert Krewinkel): + Use either styled-content or named-content for spans (#7211). If the element has a content-type attribute, or at least one class, then that value is used as `content-type` and the span is put inside a `<named-content>` element. Otherwise a `<styled-content>` element is used instead. + Reduce unnecessary use of `<p>` elements for wrapping (#7227). The `<p>` element is used for wrapping in cases were the contents would otherwise not be allowed in a certain context. Unnecessary wrapping is avoided, especially around quotes (`<disp-quote>` elements). + Convert spans to `<named-content>` elements (#7211). Spans with attributes are converted to `<named-content>` elements instead of being wrapped with `<milestone-start/>` and `<milestone-end>` elements. Milestone elements are not allowed in documents using the articleauthoring tag set, so this change ensures the creation of valid documents. + Add footnote number as label in backmatter (#7210). Footnotes in the backmatter are given the footnote's number as a label. The articleauthoring output is unaffected from this change, as footnotes are placed inline there. + Escape disallows chars in identifiers. XML identifiers must start with an underscore or letter, and can contain only a limited set of punctuation characters. Any IDs not adhering to these rules are rewritten by writing the offending characters as `Uxxxx`, where `xxxx` is the character's hex code. * Jira writer: use `{color}` when span has a color attribute (Albert Krewinkel, tarleb/jira-wiki-markup#10). * Docx writer: + Autoset table width if no column has an explicit width (Albert Krewinkel). + Extract Table handling into separate module (Albert Krewinkel). + Support colspans and rowspans in tables (Albert Krewinkel, #6315). + Support multirow table headers (Albert Krewinkel). + Improve integration of settings from reference.docx (#1209). This change allows users to create a reference.docx that sets `w:proofState` for spelling or grammar to `dirty`, so that spell/grammar checking will be triggered on the generated docx. + Copy over more settings from reference.docx (#7240). From settings.xml in the reference-doc, we now include: `zoom`, `embedSystemFonts`, `doNotTrackMoves`, `defaultTabStop`, `drawingGridHorizontalSpacing`, `drawingGridVerticalSpacing`, `displayHorizontalDrawingGridEvery`, `displayVerticalDrawingGridEvery`, `characterSpacingControl`, `savePreviewPicture`, `mathPr`, `themeFontLang`, `decimalSymbol`, `listSeparator`, `autoHyphenation`, `compat`. + Set zoom to 100% by default in settings.xml. + Align math options more with current Word defaults (e.g. Cambria Math font). + Remove `rsid`s from default settings.xml. Word will add these when revisions are made. * Ms writer: Handle tables with multiple paragraphs (#7288). Previously they overflowed the table cell width. We now set line lengths per-cell and restore them after the table has been written. * Markdown writer: + Use cleaner braceless syntax for code blocks with a single class (#7242, Jan Tojnar). + Add quotes properly in markdown YAML metadata fields (#7245). This fixes a bug, which caused the writer to look at the *last* rather than the *first* character in determining whether quotes were needed. So we got spurious quotes in some cases and didn't get necessary quotes in others. + Use `@{..}` syntax for citations when needed. + Use fewer unneeded escapes for `#` (see #6259). + Improve escaping of `@`. We need to escape literal `@` before `{` because of the new citation syntax. * Commonmark writer: Use backslash escapes for `<` and `|`... instead of entities (#7208). * Powerpoint writer: allow `monofont` to be specified in metadata (#7187). * LaTeX template: + Use non-starred names for xcolor color names (#6109). This should make svgnames and x11names work properly. + Fix bad vertical spacing after bibliography (#7234, badumont). + List of figures before list of tables (#7235, Julien Dutant). + Move CSL macro definitions before header-includes so they can be overridden (#7286). + Improve treatment of CSL `entry-spacing` (#7296). Previously with the default template settings (`indent` variable not set), we would get interparagraph spaces separating bib entries even with `entry-spacing="0"`. On the other hand, setting `entry-spacing="2"` gave ridiculously large spacing. This change makes the spacing caused by `entry-spacing` a multiple of `\parskip` by default, which gives aesthetically reasonable output. Those who want a larger or smaller unit (e.g. because they use `indent` which sets `\parskip` to 0) may `\setlength{\cslentryspacingunit}{10pt}` in header-includes to override the defaults. + Move title, author, date up to top of preamble (#7295). This allows header-includes to use them, and puts them in a position where you can see them immediately. + Define commands for zero width non-joiner character (#6639, Albert Krewinkel). The zero-width non-joiner character is used to avoid ligatures (e.g. in German). * ConTeXt template: List of figures before list of tables (#7235, Julien Dutant). * reveal.js template: + Support `toc-title` (#7171, Florian Kohrt). + Use `hash: true` by default rather than `history: true` (#6968). * HTML-based slide shows: add support for `institute` (#7289, Thomas Hodgson). * Text.Pandoc.Extensions: Add constructor `Ext_rebase_relative_paths` to `Extensions` [API change]. * Text.Pandoc.XML.Light: add Eq, Ord instances for Content, Element, Attr, CDataKind [API change]. * Text.Pandoc.MediaBag: + Change type to use a `Text` key instead of `[FilePath]`. We normalize the path and use `/` separators for consistency. + Export `MediaItem` type [API change]. + Change `MediaBag` type to a map from Text to MediaItem [API change]. + `lookupMedia` now returns a `MediaItem` [API change]. + Change `insertMedia` so it sets the `mediaPath` to a filename based on the SHA1 hash of the contents. This will be used when contents are extracted. * Text.Pandoc.Class.PandocMonad: + Remove `fetchMediaResource` [API change]. Use `fetchItem` to get resources in `fillMediaBag`. + Add informational message in `downloadOrRead` indicating what path local resources have been loaded from. * Text.Pandoc.Logging: + Remove single quotes around paths in messages. + Add LoadedResource constructor to LogMessage [API change]. This is for INFO-level messages telling where image data has been loaded from. (This can vary because of the resource path.) * Text.Pandoc.Asciify: simplify code and export `toAsciiText` [API change]. Instead of encoding a giant (and incomplete) map, we now just use unicode-transforms to normalize the text to a canonical decomposition, and manipulate the result. * App: allow tabs expansion even if file-scope is used (Albert Krewinkel, [#6709]). Tabs in plain-text inputs are now handled correctly, even if the `--file-scope` flag is used. * Add new internal module Text.Pandoc.Writers.GridTable (Albert Krewinkel). * Text.Pandoc.Highlighting: Change type of `languagesByExtension`, adding a parameter for a `SyntaxMap` [API change] (Jan Tojnar, #7241). Languages defined using `--syntax-definition` were not recognized by `languagesByExtension`. This patch corrects that, allowing the writers to see all custom definitions. The LaTeX writer still uses the default syntax map, but that's okay in that context, since `--syntax-definition` won't create new listings styles. * Text.Pandoc.Citeproc: + Ensure that CSL-related attributes are passed on to a Div with id 'refs'. Otherwise things like `entry-spacing` won't work when such Divs are used. + Use metadata's `lang` for the lang parameter of citeproc, overriding `localeLanguage`. + Recognize locators spelled with a capital letter (#7323). + Add a comma and a space in front of the suffix if it doesn't start with space or punctuation (#7324). + Don't detect math elements as locators (#7321). * Remove Text.Pandoc.BCP47 module [API change]. Use types and functions from UnicodeCollation.Lang instead. This is a richer implementation of BCP 47. * Text.Pandoc.Shared: + Fix regression in grid tables for wide characters (#7214). In the translation from String to Text, a char-width-sensitive `splitAt'` was dropped. This commit reinstates it and uses it to make `splitTextByInstances` char-width sensitive. + Add `getLang` (formerly in the now-removed BCP47) [API change]. * Text.Pandoc.SelfContained: use `application/octet-stream` for unknown mime types instead of halting with an error (#7202). * Lua filters: respect Inlines/Blocks filter functions in `pandoc.walk_*` (Albert Krewinkel). * Add text as build-depend for trypandoc (#7193, Roman Beránek). * Bump upper-bounds for network-uri, time, attoparsec. * Use citeproc 0.4. * Use texmath 0.12.3. * Use jira-wiki-markup 1.3.5 (Albert Krewinkel). * Require latest skylighting (fixes a bug in XML syntax highlighting). * Use latest xml-conduit. * Use latest commonmark, commonmark-extensions, commonmark-pandoc. * Use haddock-library-1.10.0 (Albert Krewinkel). * Allow compilation with base 4.15 (Albert Krewinkel). * MANUAL: + Add information about `lang` and bibliography sorting. + Add info about YAML escape sequences, link to spec (#7152, Albert Krewinkel). + Note that `institute` variable works for HTML-based slides. + Update documentation on citation syntax. + Add citation example for locators and suffixes (Tristan Stenner) * Updated and fixed typos in documentation (Charanjit Singh, Anti-Distinctlyminty, Tatiana Porras, obcat). * Add instructions for installing pandoc-types before compiling filter. * INSTALL: add note that parallel installations should be avoided (#6865). * Remove `biblatex-nussbaum.md` test. It is basically the same as `biblaetx-quotes.md`. * Command tests: fail if a file contains no tests---and fix a test that failed in that way! * Mon Mar 22 2021 psimons@suse.com - Update pandoc to version 2.13. [#]# pandoc 2.13 (2021-03-21) * Support `yaml_metadata_block` extension for `commonmark`, `gfm` (#6537). This supported is a bit more limited than with pandoc's `markdown`. The YAML block must be the first thing in the input, and the leaf notes are parsed in isolation from the rest of the document. So, for example, you can't use reference links if the references are defined later in the document. * Fix fallback to default partials when custom templates are used. If the directory containing a template does not contain the partial, it should be sought in the default templates, but this was not working properly (#7164). * Handle `nocite` better with `--biblatex` and `--natbib` (#4585). Previously the nocite metadata field was ignored with these formats. Now it populates a `nocite-ids` template variable and causes a `\nocite` command to be issued. * Text.Pandoc.Citeproc: apply `fixLinks` correctly (#7130). This is code that incorporates a prefix like `https://doi.org/` into a following link when appropriate. * Text.Pandoc.Shared: + Remove `backslashEscapes`, `escapeStringUsing` [API change]. Replace these inefficient association list lookups with more efficient escaping functions in the writers that used them (for a 10-25% performance boost in org, haddock, rtf, texinfo writers). + Remove `ToString`, `ToText` typeclasses [API change]. These were needed for the transition from String to Text, but they are no longer used and may clash with other things. + Simplify `compactDL`. * Text.Pandoc.Parsing: + Change type of `readWithM` so that it is no longer polymorphic [API change]. The `ToText` class has been removed, and now that we've completed the transition to Text we no longer need this to operate on Strings. + Remove `F` type synonym [API change]. Muse and Org were defining their own `F` anyway. * Text.Pandoc.Readers.Metadata: + Export `yamlMetaBlock` [API change]. + Make `yamlBsToMeta`, `yamlBsToRefs` polymorphic on the parser state [API change]. * Markdown reader: Fix regression with `tex_math_backslash` (#7155). * MediaWiki reader: Allow block-level content in notes (ref) (#7145). * Jira reader (Albert Krewinkel): + Fixed parsing of autolinks (i.e., of bare URLs in the text). Previously an autolink would take up the rest of a line, as spaces were allowed characters in these items. + Emoji character sequences no longer cause parsing failures. This was due to missing backtracking when emoji parsing fails. + Mark divs created from panels with class "panel". * RST reader: fix logic for ending comments (#7134). Previously comments sometimes got extended too far. * DocBook writer: include Header attributes as XML attributes on section (Erik Rask). Attributes with key names that are not allowed as XML attributes are dropped, as are attributes with invalid values and `xml:id` (DocBook 5) and `id` (DocBook 4). * Docx writer: + Make `nsid` in `abstractNum` deterministic. Previously we assigned a random number, but we don't need random values, so now we just assign a value based on the list marker. + Use integral values for `w:tblW` (#7141). * Jira writer (Albert Krewinkel): + Block quotes are only rendered as `bq.` if they do not contain a linebreak. + Jira writer: improve div/panel handling. Include div attributes in panels, always render divs with class `panel` as panels, and avoid nesting of panels. * HTML writer: Add warnings on duplicate attribute values. This prevents emitting invalid HTML. Ultimately it would be good to prevent this in the types themselves, but this is better for now. * Org writer: Prevent unintended creation of ordered list items (#7132, Albert Krewinkel). Adjust line wrapping if default wrapping would cause a line to be read as an ordered list item. * JATS templates: support 'equal-contrib' attrib for authors (Albert Krewinkel). Authors who contributed equally to a paper may be marked with `equal-contrib`. * reveal.js template: replace JS comment with HTML (#7154, Florian Kohrt). * Text.Pandoc.Logging: Add `DuplicateAttribute` constructor to `LogMessage`. [API change] * Use `-j4` for linux release build. This speeds up the build dramatically on arm. * cabal.project: remove ghcoptions. Move flags to top level, so they can be set differently on the command line. * Require latest texmath, skylighting, citeproc, jira-wiki-markup. (The latest skylighting fixes a bad bug with Haskell syntax highlighting.) Narrow version bounds for texmath, skylighting, and citeproc, since the test output depend on them. * Use doclayout 0.3.0.2. This significantly reduces the time and memory needed to compile pandoc. * Use `foldl'` instead of `foldl` everywhere. * Update bounds for random (#7156, Alexey Kuleshevich). * Remove uses of some partial functions. * Don't bake in a larger stack size for the executable. * Test improvements: + Use `getExecutablePath` from base, avoiding the dependency on `executable-path`. + Factor out `setupEnvironment` in Helpers, to avoid code duplication. + Fix finding of data files by setting teh `pandoc_datadir` environment variable when we shell out to pandoc. This avoids the need to use `--data-dir` for the tests, which caused problems finding `pandoc.lua` when compiling without the `embed_data_files` flag (#7163). * Benchmark improvements: + Build `+RTS -A8m -RTS` into default ghc-options for benchmark. This is necessary to get accurate benchmark results; otherwise we are largely measuring garbage collecting, some not related to the current benchmark. + Allow specifying BASELINE file in 'make bench' for comparison (otherwise the latest benchmark is chosen by default). + Force `readFile` in benchmarks early (Bodigrim). * CONTRIBUTING: suggest using a `cabal.project.local` file (#7153, Albert Krewinkel). * Add ghcid-test to Makefile. This loads the test suite in ghcid. * Tue Mar 09 2021 psimons@suse.com - Update pandoc to version 2.12. Upstream has edited the change log file since the last release in a non-trivial way, i.e. they did more than just add a new entry at the top. You can review the file at: http://hackage.haskell.org/package/pandoc-2.12/src/changelog.md * Sun Jan 24 2021 psimons@suse.com - Update pandoc to version 2.11.4. [#]# pandoc 2.11.4 (2021-01-22) * Add `biblatex`, `bibtex` as output formats (closes #7040). * Recognize more extensions as markdown by default (#7034): `mkdn`, `mkd`, `mdwn`, `mdown`, `Rmd`. * Implement defaults file inheritance (#6924, David Martschenko). Allow defaults files to inherit options from other defaults files by specifying them with the following syntax: `defaults: [list of defaults files or single defaults file]`. * Fix infinite HTTP requests when writing epubs from URL source (#7013). Due to a bug in code added to avoid overwriting the cover image if it had the form `fileX.YYY`, pandoc made an endless sequence of HTTP requests when writing epub with input from a URL. * Org reader: + Allow multiple pipe chars in todo sequences (Albert Krewinkel, #7014). Additional pipe chars, used to separate "action" state from "no further action" states, are ignored. E.g., for the following sequence, both `DONE` and `FINISHED` are states with no further action required: `#+TODO: UNFINISHED | DONE | FINISHED`. + Restructure output of captioned code blocks (Albert Krewinkel, #6977). The Div wrapper of code blocks with captions now has the class "captioned-content". The caption itself is added as a Plain block inside a Div of class "caption". This makes it easier to write filters which match on captioned code blocks. Existing filters will need to be updated. + Mark verbatim code with class `verbatim` (Dimitri Sabadie, #6998). * LaTeX reader: + Handle `filecontents` environment (#7003). + Put contents of unknown environments in a Div when `raw_tex` is not enabled (#6997). (When `raw_tex` is enabled, the whole environment is parsed as a raw block.) The class name is the name of the environment. Previously, we just included the contents without the surrounding Div, but having a record of the environment's boundaries and name can be useful. * Mediawiki reader: + Allow space around storng/emph delimiters (#6993). * New module Text.Pandoc.Writers.BibTeX, exporting writeBibTeX and writeBibLaTeX. [API change] * LaTeX writer: + Revert table line height increase in 2.11.3 (#6996). In 2.11.3 we started adding `\addlinespace`, which produced less dense tables. This wasn't an intentional change; I misunderstood a comment in the discussion leading up to the change. This commit restores the earlier default table appearance. Note that if you want a less dense table, you can use something like `\def\arraystretch{1.5}` in your header. * EPUB writer: + Adjust internal links to identifiers defined in raw HTML sections after splitting into chapters (#7000). + Recognize `Format "html4"`, `Format "html5"` as raw HTML. + Adjust internal links to images, links, and tables after splitting into chapters. Previously we only did this for Div and Span and Header elements (see #7000). * Ms writer: + Don't justify text inside table cells. * JATS writer: + Use `<element-citation>` if `element_citations` extension is enabled (Albert Krewinkel). + Fix citations (Albert Krewinkel, #7018). By default we use formatted citations. + Ensure that `<disp-quote>` is always wrapped in `<p>` (#7041). * Markdown writer: + Cleaned up raw formats. We now react appropriately to `gfm`, `commonmark`, and `commonmark_x` as raw formats. * RST writer: + Fix bug with dropped content from inside spans with a class in some cases (#7039). * Docx writer: + Handle table header using styles (#7008). Instead of hard-coding the border and header cell vertical alignment, we now let this be determined by the Table style, making use of Word's "conditional formatting" for the table's first row. For headerless tables, we use the tblLook element to tell Word not to apply conditional first-row formatting. * Commonmark writer: + Implement start number on ordered lists (#7009). Previously they always started at 1, but according to the spec the start number is respected. * HTML writer: + Fix implicit_figure at end of footnotes (#7006). * ConTeXt template: Remove `\setupthinrules` from default template. The width parameter this used is not actually supported, and the command didn't do anything. * Text.Pandoc.Extensions: + Add `Ext_element_citations` constructor (Albert Krewinkel). * Text.Pandoc.Citeproc.BibTeX: New unexported function `writeBibtexString`. * Text.Pandoc.Citeproc: + Use finer grained imports (Albert Krewinkel). + Factor out and export `getStyle` [API change]. + Export `getReferences` [API change, #7106]. + Factor out getLang. * Text.Pandoc.Parsing: modify `gridTableWith'` for headerless tables. If the table lacks a header, the header row should be an empty list. Previously we got a list of empty cells, which caused an empty header to be emitted instead of no header. In LaTeX/PDF output that meant we got a double top line with space between. * ImageSize: use `viewBox` for SVG if no length, width attributes (#7045). This change allows pandoc to extract size information from more SVGs. * Add simple default.nix. * Use commonmark 0.1.1.3. * Use citeproc 0.3.0.5. * Update default CSL to use latest chicago-author-date.csl. * CONTRIBUTING.md: add note on GNU xargs. * MANUAL.txt: + Update description of `-L`/`--lua-filter`. + Document use of citations in note styles (#6828).
/usr/lib64/ghc-9.8.3/lib/libHSpandoc-3.5-7v2qPiw0ICNitKidP5dja-ghc9.8.3.so /usr/lib64/ghc-9.8.3/lib/libHSpandoc-3.5-IR4TVXDwAUALpdFTM7YFg0-xml-light-ghc9.8.3.so /usr/share/licenses/ghc-pandoc /usr/share/licenses/ghc-pandoc/COPYING.md /usr/share/pandoc-3.5 /usr/share/pandoc-3.5/COPYRIGHT /usr/share/pandoc-3.5/MANUAL.txt /usr/share/pandoc-3.5/citeproc /usr/share/pandoc-3.5/citeproc/biblatex-localization /usr/share/pandoc-3.5/citeproc/biblatex-localization/UKenglish.lbx.strings /usr/share/pandoc-3.5/citeproc/biblatex-localization/USenglish.lbx.strings /usr/share/pandoc-3.5/citeproc/biblatex-localization/american.lbx.strings /usr/share/pandoc-3.5/citeproc/biblatex-localization/australian.lbx.strings /usr/share/pandoc-3.5/citeproc/biblatex-localization/austrian.lbx.strings /usr/share/pandoc-3.5/citeproc/biblatex-localization/brazil.lbx.strings /usr/share/pandoc-3.5/citeproc/biblatex-localization/brazilian.lbx.strings /usr/share/pandoc-3.5/citeproc/biblatex-localization/british.lbx.strings /usr/share/pandoc-3.5/citeproc/biblatex-localization/bulgarian.lbx.strings /usr/share/pandoc-3.5/citeproc/biblatex-localization/canadian.lbx.strings /usr/share/pandoc-3.5/citeproc/biblatex-localization/catalan.lbx.strings /usr/share/pandoc-3.5/citeproc/biblatex-localization/croatian.lbx.strings /usr/share/pandoc-3.5/citeproc/biblatex-localization/czech.lbx.strings /usr/share/pandoc-3.5/citeproc/biblatex-localization/danish.lbx.strings /usr/share/pandoc-3.5/citeproc/biblatex-localization/dutch.lbx.strings /usr/share/pandoc-3.5/citeproc/biblatex-localization/english.lbx.strings /usr/share/pandoc-3.5/citeproc/biblatex-localization/estonian.lbx.strings /usr/share/pandoc-3.5/citeproc/biblatex-localization/finnish.lbx.strings /usr/share/pandoc-3.5/citeproc/biblatex-localization/french.lbx.strings /usr/share/pandoc-3.5/citeproc/biblatex-localization/galician.lbx.strings /usr/share/pandoc-3.5/citeproc/biblatex-localization/german.lbx.strings /usr/share/pandoc-3.5/citeproc/biblatex-localization/greek.lbx.strings /usr/share/pandoc-3.5/citeproc/biblatex-localization/hungarian.lbx.strings /usr/share/pandoc-3.5/citeproc/biblatex-localization/icelandic.lbx.strings /usr/share/pandoc-3.5/citeproc/biblatex-localization/italian.lbx.strings /usr/share/pandoc-3.5/citeproc/biblatex-localization/latvian.lbx.strings /usr/share/pandoc-3.5/citeproc/biblatex-localization/lithuanian.lbx.strings /usr/share/pandoc-3.5/citeproc/biblatex-localization/magyar.lbx.strings /usr/share/pandoc-3.5/citeproc/biblatex-localization/naustrian.lbx.strings /usr/share/pandoc-3.5/citeproc/biblatex-localization/newzealand.lbx.strings /usr/share/pandoc-3.5/citeproc/biblatex-localization/ngerman.lbx.strings /usr/share/pandoc-3.5/citeproc/biblatex-localization/norsk.lbx.strings /usr/share/pandoc-3.5/citeproc/biblatex-localization/nswissgerman.lbx.strings /usr/share/pandoc-3.5/citeproc/biblatex-localization/nynorsk.lbx.strings /usr/share/pandoc-3.5/citeproc/biblatex-localization/polish.lbx.strings /usr/share/pandoc-3.5/citeproc/biblatex-localization/portuges.lbx.strings /usr/share/pandoc-3.5/citeproc/biblatex-localization/portuguese.lbx.strings /usr/share/pandoc-3.5/citeproc/biblatex-localization/russian.lbx.strings /usr/share/pandoc-3.5/citeproc/biblatex-localization/serbian.lbx.strings /usr/share/pandoc-3.5/citeproc/biblatex-localization/serbianc.lbx.strings /usr/share/pandoc-3.5/citeproc/biblatex-localization/slovak.lbx.strings /usr/share/pandoc-3.5/citeproc/biblatex-localization/slovene.lbx.strings /usr/share/pandoc-3.5/citeproc/biblatex-localization/slovenian.lbx.strings /usr/share/pandoc-3.5/citeproc/biblatex-localization/spanish.lbx.strings /usr/share/pandoc-3.5/citeproc/biblatex-localization/swedish.lbx.strings /usr/share/pandoc-3.5/citeproc/biblatex-localization/swissgerman.lbx.strings /usr/share/pandoc-3.5/citeproc/biblatex-localization/turkish.lbx.strings /usr/share/pandoc-3.5/citeproc/biblatex-localization/ukrainian.lbx.strings /usr/share/pandoc-3.5/data /usr/share/pandoc-3.5/data/abbreviations /usr/share/pandoc-3.5/data/bash_completion.tpl /usr/share/pandoc-3.5/data/creole.lua /usr/share/pandoc-3.5/data/default.csl /usr/share/pandoc-3.5/data/docbook-entities.txt /usr/share/pandoc-3.5/data/docx /usr/share/pandoc-3.5/data/docx/[Content_Types].xml /usr/share/pandoc-3.5/data/docx/_rels /usr/share/pandoc-3.5/data/docx/_rels/.rels /usr/share/pandoc-3.5/data/docx/docProps /usr/share/pandoc-3.5/data/docx/docProps/app.xml /usr/share/pandoc-3.5/data/docx/docProps/core.xml /usr/share/pandoc-3.5/data/docx/docProps/custom.xml /usr/share/pandoc-3.5/data/docx/word /usr/share/pandoc-3.5/data/docx/word/_rels /usr/share/pandoc-3.5/data/docx/word/_rels/document.xml.rels /usr/share/pandoc-3.5/data/docx/word/_rels/footnotes.xml.rels /usr/share/pandoc-3.5/data/docx/word/comments.xml /usr/share/pandoc-3.5/data/docx/word/document.xml /usr/share/pandoc-3.5/data/docx/word/fontTable.xml /usr/share/pandoc-3.5/data/docx/word/footnotes.xml /usr/share/pandoc-3.5/data/docx/word/numbering.xml /usr/share/pandoc-3.5/data/docx/word/settings.xml /usr/share/pandoc-3.5/data/docx/word/styles.xml /usr/share/pandoc-3.5/data/docx/word/theme /usr/share/pandoc-3.5/data/docx/word/theme/theme1.xml /usr/share/pandoc-3.5/data/docx/word/webSettings.xml /usr/share/pandoc-3.5/data/dzslides /usr/share/pandoc-3.5/data/dzslides/template.html /usr/share/pandoc-3.5/data/epub.css /usr/share/pandoc-3.5/data/init.lua /usr/share/pandoc-3.5/data/odt /usr/share/pandoc-3.5/data/odt/META-INF /usr/share/pandoc-3.5/data/odt/META-INF/manifest.xml /usr/share/pandoc-3.5/data/odt/content.xml /usr/share/pandoc-3.5/data/odt/manifest.rdf /usr/share/pandoc-3.5/data/odt/meta.xml /usr/share/pandoc-3.5/data/odt/mimetype /usr/share/pandoc-3.5/data/odt/styles.xml /usr/share/pandoc-3.5/data/pptx /usr/share/pandoc-3.5/data/pptx/[Content_Types].xml /usr/share/pandoc-3.5/data/pptx/_rels /usr/share/pandoc-3.5/data/pptx/_rels/.rels /usr/share/pandoc-3.5/data/pptx/docProps /usr/share/pandoc-3.5/data/pptx/docProps/app.xml /usr/share/pandoc-3.5/data/pptx/docProps/core.xml /usr/share/pandoc-3.5/data/pptx/ppt /usr/share/pandoc-3.5/data/pptx/ppt/_rels /usr/share/pandoc-3.5/data/pptx/ppt/_rels/presentation.xml.rels /usr/share/pandoc-3.5/data/pptx/ppt/notesMasters /usr/share/pandoc-3.5/data/pptx/ppt/notesMasters/_rels /usr/share/pandoc-3.5/data/pptx/ppt/notesMasters/_rels/notesMaster1.xml.rels /usr/share/pandoc-3.5/data/pptx/ppt/notesMasters/notesMaster1.xml /usr/share/pandoc-3.5/data/pptx/ppt/notesSlides /usr/share/pandoc-3.5/data/pptx/ppt/notesSlides/_rels /usr/share/pandoc-3.5/data/pptx/ppt/notesSlides/_rels/notesSlide1.xml.rels /usr/share/pandoc-3.5/data/pptx/ppt/notesSlides/_rels/notesSlide2.xml.rels /usr/share/pandoc-3.5/data/pptx/ppt/notesSlides/notesSlide1.xml /usr/share/pandoc-3.5/data/pptx/ppt/notesSlides/notesSlide2.xml /usr/share/pandoc-3.5/data/pptx/ppt/presProps.xml /usr/share/pandoc-3.5/data/pptx/ppt/presentation.xml /usr/share/pandoc-3.5/data/pptx/ppt/slideLayouts /usr/share/pandoc-3.5/data/pptx/ppt/slideLayouts/_rels /usr/share/pandoc-3.5/data/pptx/ppt/slideLayouts/_rels/slideLayout1.xml.rels /usr/share/pandoc-3.5/data/pptx/ppt/slideLayouts/_rels/slideLayout10.xml.rels /usr/share/pandoc-3.5/data/pptx/ppt/slideLayouts/_rels/slideLayout11.xml.rels /usr/share/pandoc-3.5/data/pptx/ppt/slideLayouts/_rels/slideLayout2.xml.rels /usr/share/pandoc-3.5/data/pptx/ppt/slideLayouts/_rels/slideLayout3.xml.rels /usr/share/pandoc-3.5/data/pptx/ppt/slideLayouts/_rels/slideLayout4.xml.rels /usr/share/pandoc-3.5/data/pptx/ppt/slideLayouts/_rels/slideLayout5.xml.rels /usr/share/pandoc-3.5/data/pptx/ppt/slideLayouts/_rels/slideLayout6.xml.rels /usr/share/pandoc-3.5/data/pptx/ppt/slideLayouts/_rels/slideLayout7.xml.rels /usr/share/pandoc-3.5/data/pptx/ppt/slideLayouts/_rels/slideLayout8.xml.rels /usr/share/pandoc-3.5/data/pptx/ppt/slideLayouts/_rels/slideLayout9.xml.rels /usr/share/pandoc-3.5/data/pptx/ppt/slideLayouts/slideLayout1.xml /usr/share/pandoc-3.5/data/pptx/ppt/slideLayouts/slideLayout10.xml /usr/share/pandoc-3.5/data/pptx/ppt/slideLayouts/slideLayout11.xml /usr/share/pandoc-3.5/data/pptx/ppt/slideLayouts/slideLayout2.xml /usr/share/pandoc-3.5/data/pptx/ppt/slideLayouts/slideLayout3.xml /usr/share/pandoc-3.5/data/pptx/ppt/slideLayouts/slideLayout4.xml /usr/share/pandoc-3.5/data/pptx/ppt/slideLayouts/slideLayout5.xml /usr/share/pandoc-3.5/data/pptx/ppt/slideLayouts/slideLayout6.xml /usr/share/pandoc-3.5/data/pptx/ppt/slideLayouts/slideLayout7.xml /usr/share/pandoc-3.5/data/pptx/ppt/slideLayouts/slideLayout8.xml /usr/share/pandoc-3.5/data/pptx/ppt/slideLayouts/slideLayout9.xml /usr/share/pandoc-3.5/data/pptx/ppt/slideMasters /usr/share/pandoc-3.5/data/pptx/ppt/slideMasters/_rels /usr/share/pandoc-3.5/data/pptx/ppt/slideMasters/_rels/slideMaster1.xml.rels /usr/share/pandoc-3.5/data/pptx/ppt/slideMasters/slideMaster1.xml /usr/share/pandoc-3.5/data/pptx/ppt/slides /usr/share/pandoc-3.5/data/pptx/ppt/slides/_rels /usr/share/pandoc-3.5/data/pptx/ppt/slides/_rels/slide1.xml.rels /usr/share/pandoc-3.5/data/pptx/ppt/slides/_rels/slide2.xml.rels /usr/share/pandoc-3.5/data/pptx/ppt/slides/_rels/slide3.xml.rels /usr/share/pandoc-3.5/data/pptx/ppt/slides/_rels/slide4.xml.rels /usr/share/pandoc-3.5/data/pptx/ppt/slides/slide1.xml /usr/share/pandoc-3.5/data/pptx/ppt/slides/slide2.xml /usr/share/pandoc-3.5/data/pptx/ppt/slides/slide3.xml /usr/share/pandoc-3.5/data/pptx/ppt/slides/slide4.xml /usr/share/pandoc-3.5/data/pptx/ppt/tableStyles.xml /usr/share/pandoc-3.5/data/pptx/ppt/theme /usr/share/pandoc-3.5/data/pptx/ppt/theme/theme1.xml /usr/share/pandoc-3.5/data/pptx/ppt/theme/theme2.xml /usr/share/pandoc-3.5/data/pptx/ppt/viewProps.xml /usr/share/pandoc-3.5/data/templates /usr/share/pandoc-3.5/data/templates/affiliations.jats /usr/share/pandoc-3.5/data/templates/after-header-includes.latex /usr/share/pandoc-3.5/data/templates/article.jats_publishing /usr/share/pandoc-3.5/data/templates/common.latex /usr/share/pandoc-3.5/data/templates/default.ansi /usr/share/pandoc-3.5/data/templates/default.asciidoc /usr/share/pandoc-3.5/data/templates/default.beamer /usr/share/pandoc-3.5/data/templates/default.biblatex /usr/share/pandoc-3.5/data/templates/default.bibtex /usr/share/pandoc-3.5/data/templates/default.chunkedhtml /usr/share/pandoc-3.5/data/templates/default.commonmark /usr/share/pandoc-3.5/data/templates/default.context /usr/share/pandoc-3.5/data/templates/default.djot /usr/share/pandoc-3.5/data/templates/default.docbook4 /usr/share/pandoc-3.5/data/templates/default.docbook5 /usr/share/pandoc-3.5/data/templates/default.dokuwiki /usr/share/pandoc-3.5/data/templates/default.dzslides /usr/share/pandoc-3.5/data/templates/default.epub2 /usr/share/pandoc-3.5/data/templates/default.epub3 /usr/share/pandoc-3.5/data/templates/default.haddock /usr/share/pandoc-3.5/data/templates/default.html4 /usr/share/pandoc-3.5/data/templates/default.html5 /usr/share/pandoc-3.5/data/templates/default.icml /usr/share/pandoc-3.5/data/templates/default.jats_archiving /usr/share/pandoc-3.5/data/templates/default.jats_articleauthoring /usr/share/pandoc-3.5/data/templates/default.jats_publishing /usr/share/pandoc-3.5/data/templates/default.jira /usr/share/pandoc-3.5/data/templates/default.latex /usr/share/pandoc-3.5/data/templates/default.man /usr/share/pandoc-3.5/data/templates/default.markdown /usr/share/pandoc-3.5/data/templates/default.markua /usr/share/pandoc-3.5/data/templates/default.mediawiki /usr/share/pandoc-3.5/data/templates/default.ms /usr/share/pandoc-3.5/data/templates/default.muse /usr/share/pandoc-3.5/data/templates/default.opendocument /usr/share/pandoc-3.5/data/templates/default.openxml /usr/share/pandoc-3.5/data/templates/default.opml /usr/share/pandoc-3.5/data/templates/default.org /usr/share/pandoc-3.5/data/templates/default.plain /usr/share/pandoc-3.5/data/templates/default.revealjs /usr/share/pandoc-3.5/data/templates/default.rst /usr/share/pandoc-3.5/data/templates/default.rtf /usr/share/pandoc-3.5/data/templates/default.s5 /usr/share/pandoc-3.5/data/templates/default.slideous /usr/share/pandoc-3.5/data/templates/default.slidy /usr/share/pandoc-3.5/data/templates/default.tei /usr/share/pandoc-3.5/data/templates/default.texinfo /usr/share/pandoc-3.5/data/templates/default.textile /usr/share/pandoc-3.5/data/templates/default.typst /usr/share/pandoc-3.5/data/templates/default.xwiki /usr/share/pandoc-3.5/data/templates/default.zimwiki /usr/share/pandoc-3.5/data/templates/definitions.typst /usr/share/pandoc-3.5/data/templates/fonts.latex /usr/share/pandoc-3.5/data/templates/hypersetup.latex /usr/share/pandoc-3.5/data/templates/passoptions.latex /usr/share/pandoc-3.5/data/templates/styles.citations.html /usr/share/pandoc-3.5/data/templates/styles.html /usr/share/pandoc-3.5/data/templates/template.typst /usr/share/pandoc-3.5/data/translations /usr/share/pandoc-3.5/data/translations/af.yaml /usr/share/pandoc-3.5/data/translations/alt.yaml /usr/share/pandoc-3.5/data/translations/am.yaml /usr/share/pandoc-3.5/data/translations/ar.yaml /usr/share/pandoc-3.5/data/translations/as.yaml /usr/share/pandoc-3.5/data/translations/ast.yaml /usr/share/pandoc-3.5/data/translations/az.yaml /usr/share/pandoc-3.5/data/translations/be.yaml /usr/share/pandoc-3.5/data/translations/bg.yaml /usr/share/pandoc-3.5/data/translations/bn.yaml /usr/share/pandoc-3.5/data/translations/bo.yaml /usr/share/pandoc-3.5/data/translations/br.yaml /usr/share/pandoc-3.5/data/translations/bs.yaml /usr/share/pandoc-3.5/data/translations/bua.yaml /usr/share/pandoc-3.5/data/translations/ca.yaml /usr/share/pandoc-3.5/data/translations/ckb-Arab.yaml /usr/share/pandoc-3.5/data/translations/ckb-Latn.yaml /usr/share/pandoc-3.5/data/translations/cs.yaml /usr/share/pandoc-3.5/data/translations/cu.yaml /usr/share/pandoc-3.5/data/translations/cy.yaml /usr/share/pandoc-3.5/data/translations/cz.yaml /usr/share/pandoc-3.5/data/translations/da.yaml /usr/share/pandoc-3.5/data/translations/de.yaml /usr/share/pandoc-3.5/data/translations/dsb.yaml /usr/share/pandoc-3.5/data/translations/el.yaml /usr/share/pandoc-3.5/data/translations/en.yaml /usr/share/pandoc-3.5/data/translations/eo.yaml /usr/share/pandoc-3.5/data/translations/es-ES.yaml /usr/share/pandoc-3.5/data/translations/es-MX.yaml /usr/share/pandoc-3.5/data/translations/es.yaml /usr/share/pandoc-3.5/data/translations/et.yaml /usr/share/pandoc-3.5/data/translations/eu.yaml /usr/share/pandoc-3.5/data/translations/fa.yaml /usr/share/pandoc-3.5/data/translations/fi.yaml /usr/share/pandoc-3.5/data/translations/fil.yaml /usr/share/pandoc-3.5/data/translations/fr.yaml /usr/share/pandoc-3.5/data/translations/fur.yaml /usr/share/pandoc-3.5/data/translations/ga.yaml /usr/share/pandoc-3.5/data/translations/gd.yaml /usr/share/pandoc-3.5/data/translations/gl.yaml /usr/share/pandoc-3.5/data/translations/grc.yaml /usr/share/pandoc-3.5/data/translations/gu.yaml /usr/share/pandoc-3.5/data/translations/ha.yaml /usr/share/pandoc-3.5/data/translations/he.yaml /usr/share/pandoc-3.5/data/translations/hi.yaml /usr/share/pandoc-3.5/data/translations/hr.yaml /usr/share/pandoc-3.5/data/translations/hsb.yaml /usr/share/pandoc-3.5/data/translations/hu.yaml /usr/share/pandoc-3.5/data/translations/hy.yaml /usr/share/pandoc-3.5/data/translations/ia.yaml /usr/share/pandoc-3.5/data/translations/id.yaml /usr/share/pandoc-3.5/data/translations/is.yaml /usr/share/pandoc-3.5/data/translations/it.yaml /usr/share/pandoc-3.5/data/translations/ja.yaml /usr/share/pandoc-3.5/data/translations/ka.yaml /usr/share/pandoc-3.5/data/translations/km.yaml /usr/share/pandoc-3.5/data/translations/kmr-Arab.yaml /usr/share/pandoc-3.5/data/translations/kmr-Latn.yaml /usr/share/pandoc-3.5/data/translations/kn.yaml /usr/share/pandoc-3.5/data/translations/ko.yaml /usr/share/pandoc-3.5/data/translations/la.yaml /usr/share/pandoc-3.5/data/translations/lb.yaml /usr/share/pandoc-3.5/data/translations/lo.yaml /usr/share/pandoc-3.5/data/translations/lt.yaml /usr/share/pandoc-3.5/data/translations/lv.yaml /usr/share/pandoc-3.5/data/translations/mk.yaml /usr/share/pandoc-3.5/data/translations/ml.yaml /usr/share/pandoc-3.5/data/translations/mn.yaml /usr/share/pandoc-3.5/data/translations/mr.yaml /usr/share/pandoc-3.5/data/translations/ms.yaml /usr/share/pandoc-3.5/data/translations/nb.yaml /usr/share/pandoc-3.5/data/translations/nko.yaml /usr/share/pandoc-3.5/data/translations/nl.yaml /usr/share/pandoc-3.5/data/translations/nn.yaml /usr/share/pandoc-3.5/data/translations/no.yaml /usr/share/pandoc-3.5/data/translations/oc.yaml /usr/share/pandoc-3.5/data/translations/or.yaml /usr/share/pandoc-3.5/data/translations/pa.yaml /usr/share/pandoc-3.5/data/translations/pl.yaml /usr/share/pandoc-3.5/data/translations/pms.yaml /usr/share/pandoc-3.5/data/translations/pt-BR.yaml /usr/share/pandoc-3.5/data/translations/pt-PT.yaml /usr/share/pandoc-3.5/data/translations/pt.yaml /usr/share/pandoc-3.5/data/translations/rm.yaml /usr/share/pandoc-3.5/data/translations/ro.yaml /usr/share/pandoc-3.5/data/translations/ru.yaml /usr/share/pandoc-3.5/data/translations/se.yaml /usr/share/pandoc-3.5/data/translations/si.yaml /usr/share/pandoc-3.5/data/translations/sk.yaml /usr/share/pandoc-3.5/data/translations/sl.yaml /usr/share/pandoc-3.5/data/translations/sq.yaml /usr/share/pandoc-3.5/data/translations/sr-Cyrl.yaml /usr/share/pandoc-3.5/data/translations/sr-Latn.yaml /usr/share/pandoc-3.5/data/translations/sr.yaml /usr/share/pandoc-3.5/data/translations/sv.yaml /usr/share/pandoc-3.5/data/translations/ta.yaml /usr/share/pandoc-3.5/data/translations/te.yaml /usr/share/pandoc-3.5/data/translations/th.yaml /usr/share/pandoc-3.5/data/translations/tk.yaml /usr/share/pandoc-3.5/data/translations/tr.yaml /usr/share/pandoc-3.5/data/translations/ua.yaml /usr/share/pandoc-3.5/data/translations/ug.yaml /usr/share/pandoc-3.5/data/translations/uk.yaml /usr/share/pandoc-3.5/data/translations/ur.yaml /usr/share/pandoc-3.5/data/translations/vi.yaml /usr/share/pandoc-3.5/data/translations/zh-Hans.yaml /usr/share/pandoc-3.5/data/translations/zh-Hant.yaml
Generated by rpm2html 1.8.1
Fabrice Bellet, Wed Nov 13 00:41:02 2024