18011 Commits
Author SHA1 Message Date
John MacFarlane 786356ace4 Update AUTHORS.md. 3.6.3 pandoc-cli-3.6.3 2025-02-09 12:55:30 -08:00
John MacFarlane 0d0f5e596d stack.yaml - use tls-2.1.7 2025-02-09 12:39:41 -08:00
John MacFarlane 01a7e6f070 pandoc-server: use https: for git repo. 2025-02-09 12:24:56 -08:00
John MacFarlane e4140aa3fd Put changelog.md in extra-doc-files as required. 2025-02-09 12:20:09 -08:00
John MacFarlane b8b859bb90 cabal files: use https: for repo url. 2025-02-09 12:19:24 -08:00
John MacFarlane fff93fca1b Update man pages. 2025-02-09 12:14:24 -08:00
John MacFarlane 98eb05bb2c Bump pandoc and pandoc-cli to 3.6.3, update changelog.
Note: we don't have an API change, but we choose to increment the
third digit because of some significant behavior changes.
2025-02-09 12:13:26 -08:00
John MacFarlane 64a4f60c02 TWiki reader: use "wikilink" class, instead of title. 2025-02-09 11:43:38 -08:00
John MacFarlane 94d64277de Depend on released commonmark-pandoc, commonmark-extensions. 2025-02-09 10:56:47 -08:00
John MacFarlane 7f2f2b677e Use released citeproc 0.8.1.3 2025-02-09 00:06:29 -08:00
John MacFarlane 8971c3a633 Use released typst 0.6.2 2025-02-08 19:19:53 -08:00
John MacFarlane 9be0963327 LaTeX writer/template: Improve babel support.
Previously we used the `.ini` files for every language, but
for European languages these tend to provide inferior results
to the `.ldf` files used by classic Babel. Currently Babel
documentation recommends using the classic system for European
languages written in Latin and Cyrillic scripts and Vietnamese.
So the LaTeX writer and template now follow this guidance.

Main languages in the list of languages with good "classic" support
are added to global documentclass options and will be automatically
handled by Babel using the `.ldf` files.

If the main language is not in this list, the `babeloptions` variable
will be set to `provide=*`, which will cause support to be loaded from
the `.ini` file rather than an `.ldf`. So, for example, setting
`-V babeloptions=''` with a polytonic Greek document will cause the
`.ldf` support to be used instead of the `.ini`.

The default setting of this variable can be overwritten, but in most
cases the default should give good results.

Closes #8283.
2025-02-08 10:45:11 -08:00
Charles Tapley Hoyt 1a3ea44f4f Add testing on ghc v9.12 (#10598)
Use `--allow-newer` since dependencies are not yet updated
for latest base version.
2025-02-07 15:26:15 -08:00
Evan Silberman 7cfee53975 Depend on dev commonmark-{extensions,pandoc} 2025-02-07 14:04:12 -08:00
Evan Silberman 97b36ecb77 Track wikilinks with a class instead of a title
Once upon a time the only metadata element for links in Pandoc's AST was
a title, and it was hijacked to track certain links as having originated
in the wikilink syntax. Now we have Attrs and we can use a class to
handle wikilinks instead.

Requires coordinated changes to commonmark-hs.
2025-02-07 14:04:12 -08:00
John MacFarlane cb8f7645b5 MANUAL: note on using typst to produce pdf/a-2b. 2025-02-06 08:57:55 -08:00
Charles Tapley HoytandJez Cope 1eed55f391 Add CRediT roles to JATS
Enable annotating author roles using the Contribution Role Taxonomy
(CRediT) and export this information in conformant JATS

Closes #10152.

Co-Authored-By: Jez Cope <457628+jezcope@users.noreply.github.com>
2025-02-05 21:28:56 -08:00
John MacFarlane 3291605c91 LaTeX template: allow csquotesoptions to be specified.
Obsoletes #7025.
See #8283.
2025-02-04 15:17:39 -08:00
Albert Krewinkel 6c31896c29 doc/lua-filters: add note about extensions handling in read and write 2025-02-04 10:46:47 +01:00
John MacFarlane f72548a7c2 DocBook reader: Handle title inside orderedlist.
Also some other elements that allow title: blockquote,
calloutlist, etc.
Closes #10594.
2025-02-03 12:33:39 -08:00
Sen-wen DENG b8c2d99c5a DocBook reader: better handle informalequation (#10592)
Include id attribute.

The code should be credited to @tombolano.
2025-02-02 12:09:08 -08:00
John MacFarlane 7207f6ba00 Use dev version of citeproc. 2025-02-02 12:06:43 -08:00
John MacFarlane 1470b3a573 DocBook reader: better handle formalpara, example, and sidebar.
Include identifiers and titles in each case.

The code should be credited to @tombolano.

Closes #8666.
2025-02-01 17:04:38 -08:00
John MacFarlane c0dc953825 Raise xml-conduit upper bound. 2025-02-01 16:54:12 -08:00
John MacFarlane fe3e7c948c ODT reader: create Figure elements for images that are figures.
Closes #10567.
2025-02-01 10:39:31 -08:00
John MacFarlane 8e18a811b4 Markdown reader: Simplify and fix normal citation parsing.
Closes #10584.

This fixes a bug that causes some normal citations to be
parsed as bracketed regular citations.
2025-01-31 16:08:10 -08:00
John MacFarlane 6fbb50fc88 Docx writer: repeat reference doc's sectPr for each new section.
Previously we were only carrying over the reference doc's sectPr
at the end of the document, so it wouldn't affect the intermediate
sections that are now added if `--top-level-division` is `chapter`
or `part`. This could lead to bad results (e.g. page numbering
starting only on the last chapter).

Closes #10577.
2025-01-31 11:44:48 -08:00
John MacFarlane a14fe6f446 Update docx golden tests for reference doc changes. 2025-01-31 09:20:51 -08:00
Andrew Dunning 2aeb09f254 Docx title style corrections (#10581)
Base Author and Date styles on Title; remove condensed spacing.
2025-01-31 09:14:01 -08:00
Andrew DunningandJohn MacFarlane 57e98a72eb Document top-level-division functionality with Docx (#10579)
Co-authored-by: John MacFarlane <jgm@berkeley.edu>
2025-01-31 09:12:24 -08:00
John MacFarlane cf662b7178 Docx writer: create section divisions with --top-level-division=part.
Closes #10576.
2025-01-31 09:07:50 -08:00
John MacFarlane fc6e4956dd Makefile: make make binpath quiet. 2025-01-31 09:07:22 -08:00
R. N. West (Nat) 77fca2d61a doc/lua-filters.md: Correct luacheck URL (#10589) 2025-01-31 08:56:47 -08:00
John MacFarlane 42ea0fff1f ODT reader: avoid producing spurious blockquotes in list items.
Closes #9505.
2025-01-30 22:21:10 -08:00
John MacFarlane ec397b4502 ODT reader: fix unwanted block quotes.
Previously the reader created block quotes whenever a paragraph
was marked indented (even though this just affects the first line).
With this change we still generate block quotes for content that
has an altered left margin, but not for indented paragraphs.

See #10575.

This patch does NOT address the related #9505 which concerns lists.
2025-01-30 22:21:10 -08:00
Stephen ReindlandStephen Reindl 3c8ca600ef DOCX reader: do not issue warning for comments with +styles (#10572)
Closes #10571.

Co-authored-by: Stephen Reindl <stephen.reindl@outlook.de>
2025-01-30 15:23:53 -08:00
R. N. West 31e36d4fd5 doc/extras.md: Add entry for pandoc-subfigs
https://github.com/rnwst/pandoc-subfigs
2025-01-30 16:51:17 +01:00
R. N. West d8af7b05c7 doc/extras.md: Update diagram Lua filter URL (and description) 2025-01-30 16:51:17 +01:00
Evan Silberman d680ce0100 Handle <abbr> as a span-like inline
Closes #5793
2025-01-29 15:59:26 -06:00
R. N. West (Nat) f17de990b4 doc/lua-filters.md: Add static analysis paragraph to debugging section (#10568) 2025-01-29 13:22:04 -08:00
silby 0be07a5e4d Test \{,re}newcommand arguments (#10573)
Closes #4470
2025-01-29 11:32:25 -08:00
John MacFarlane 58ca8df329 Use latest dev typst-hs 2025-01-27 23:14:35 -05:00
Gordon Woodhull 220dde406b brace tables with typst:no-figure and typst:text attributes (#10563)
The combination of #9648 Typst property output and #9778
`typst:no-figure` can cause fonts to spill out of tables.

This is because setting Typst text properties across a table
requires `set text(...)` outside the table, and previously we
were relying on the figure to provide a scope.

This adds an extra `#{...}` when the table has class `typst:no-figure`
and also has `typst:text:*` attributes.
2025-01-24 10:48:03 -08:00
Max Heller b95645b0a0 Prefer MIME type when determining extensions for MediaBag items (#10557)
Currently, remote images added to the MediaBag are stored at paths with
extensions determined based on the external URI. For instance, an image
from https://example.com/image.png is stored as <hash>.png. If the
URI does not contain an extension (e.g., https://example.com/image),
then the content-type of the downloaded image is used to determine the
extension.

This change switches the precedence such that content-type is preferred
over extensions contained in the URI. This is necessary because some
images are located at URIs with misleading extensions -- shields.io,
for instance, serves SVGs from URIs with .yml extensions. With this
change, the image/svg+xml content-type is now preferred over the .yml
URI extension. This fixes a bug in the PDF writer in which such an image
would be mishandled due to not being identified as an SVG.
2025-01-21 17:54:47 -08:00
John MacFarlane ba04a9987d font-settings.latex template: fix indent bugs.
Fixed conditional indentation so that the *output* is
indented properly.
2025-01-19 10:38:28 -08:00
John MacFarlane 96d4f5be51 Citeproc: fix moving punctuation before citation notes.
This previously worked with regular citations, but not author-in-text
citations. Now it works with both.
2025-01-16 08:32:02 -08:00
silby 806dcb0849 Consume blanks after =encoding in pod reader (#10544)
The reader did not properly consume empty lines after =encoding commands,
which produced various incorrect parses depending on the content between
there and the next command.

Fixes #10537
2025-01-15 12:07:26 -08:00
John MacFarlane 2b6554c475 Fix escaping of - in ms writer.
In 5132f1ef33 we added `-` to
the list of characters needing backslash escaping, to accommodate
a change in groff man's behavior, described here:
https://lwn.net/Articles/947941/

This change also led `-` to be escaped in ms output, but that
is wrong; `\-` in ms is a unicode minus sign.

To fix this, we add a Boolean parameter to `escapeString` in
Text.Pandoc.Writers.Roff that determines whether `-` is to
be escaped.  (NB: This is not an exported function in the API.)

The list `standardEscapes` in Text.Pandoc.RoffChar no longer
contains `-`.

Closes #10536.
2025-01-14 09:27:02 -08:00
Hendrik Erz 0a2e8dd1d6 HTML styles: fix style of hr so it works when printed (#10535)
Previously `background-color` was used to style the hr, but this gets ignored
when printing.  This commit uses `border-top` instead.
2025-01-14 09:19:42 -08:00
Mark Gardner 244156c8ee fix changelog: pod is reader, not writer
I was excited to read in the latest changelog that pandoc could now
write Perl's POD format. But upon further examination, it looks like
v3.6.2 can only read POD, not write it.
2025-01-13 09:51:14 -08:00