Commit Graph
17976 Commits
Author SHA1 Message Date
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
John MacFarlane fd496848d8 stack.yaml - add skylighting-format-typst. 3.6.2 pandoc-cli-3.6.2 2025-01-12 14:25:14 -08:00
John MacFarlane 73f2a675e9 Update AUTHORS.md 2025-01-12 11:11:54 -08:00
John MacFarlane d524970124 Regenerate man pages. 2025-01-12 11:08:32 -08:00
John MacFarlane 5d9ed75d00 stack.yaml - use tls 2.1.6 2025-01-12 11:07:46 -08:00
John MacFarlane eb03ccc9bf Update README.md 2025-01-12 11:07:37 -08:00
John MacFarlane 7966d18007 Update changelog. 2025-01-12 11:05:01 -08:00
John MacFarlane a7eaf6b622 Improve links and descriptions for odt, opendocument.
Closes #10518.
2025-01-12 11:03:48 -08:00
John MacFarlane 35cd9a7b51 Update man pages. 2025-01-12 10:56:29 -08:00
John MacFarlane d8fdf9d9bd Bump to 3.6.2 and update manual date 2025-01-12 10:56:03 -08:00
John MacFarlane 52077dbf95 Bump to 3.6.2, update changelog 2025-01-12 10:48:43 -08:00
John MacFarlane d3940348c3 Use texmath 0.12.8.13 2025-01-12 10:47:20 -08:00
John MacFarlane 733c030a96 Revert "Depend on skylighting 0.14.6"
This reverts commit 12bce32bff.

We don't need this yet, until we have a solution to #10525.
2025-01-12 10:12:24 -08:00
John MacFarlane 4814067f5a lua-filters.md: document system.os return values.
Closes #10523.
2025-01-11 10:25:46 -08:00
John MacFarlane c79ef1270e Fix 9495 command test for windows. 2025-01-10 23:43:32 -08:00
John MacFarlane cbe67b9602 Docx reader and writer: support row heads.
Reader: When `w:tblLook` has `w:firstColumn` set (or an equivalent bit
mask), we set row heads = 1 in the AST.

Writer: set `w:firstColumn` in `w:tblLook` when there are row
heads. (Word only allows one, so this is triggered by any number
of row heads > 0.)

Closes #9495.
2025-01-10 22:50:17 -08:00
John MacFarlane 6051d62e56 Docx reader: read table styles as custom styles...
...when `styles` extension is enabled.  Closes #9603.

Also improve manual's coverage of custom styles.
2025-01-10 10:30:08 -08:00
Stéphane Guillou b108cef9dd replace LibreOffice PDF documentation link to latest
... so it links to the latest major release rather than a specific major release (which there are two of every year)
2025-01-09 20:55:54 -08:00
John MacFarlane 74b288a1d8 nightly workflow: use ghc 9.8, cabal 3.14. 2025-01-08 08:54:10 -08:00
John MacFarlane 12bce32bff Depend on skylighting 0.14.6 2025-01-07 15:21:48 -08:00
John MacFarlane 9933a41b76 HTML reader: add size information for fa svg icons.
If the icon has class fa-fw or fa-w16 or fa-w14, we add a width
attribute to prevent the icon from appearing full-width in PDF or
docx output.

Closes #10134.
2025-01-07 10:09:06 -08:00
John MacFarlane 3511f1652e CI: don't use -Werror on ghc 9.10. 2025-01-06 23:35:11 -08:00
John MacFarlane 564be58fa8 CI: test with ghc 9.8, 9.10 2025-01-06 22:19:11 -08:00
John MacFarlane 9e43625e4e Djot reader/writer highlighted text fixes:
- The reader now uses a Span with class "mark" rather than
  "highlighted", for consistency with the other pandoc readers
  and writers.
- The writer renders a Span with sole class "mark" as highlighted
  text.
2025-01-06 10:11:08 -08:00
John MacFarlane 1cfccfae6e Asciidoc writer: don't emit class in span if it's just "mark".
"mark" class is used for highlighting, and Asciidoc treats
bare `#...#` with no attributes as highlighted text.

Closes #10511.
2025-01-06 10:06:06 -08:00
John MacFarlane 45726adeaf CI: comment out nix build.
Pending a solution for #10509.
2025-01-06 10:01:46 -08:00
John MacFarlane ad105a379e EPUB v2 writer: fix cover image.
Closes #10505. Regression from 3.6 caused by #10404.
2025-01-06 09:53:34 -08:00
John MacFarlane 49ecd7f0ec Allow random 1.3. 2025-01-05 23:44:59 -08:00
John MacFarlane 4040811e63 Use latest dev texmath. 2025-01-05 23:43:15 -08:00
John MacFarlane 5283ae8a9e Use dev version of texmath.
Typst writer improvements.
2025-01-05 00:11:49 -08:00
Evan Silberman 5766443bc8 Add mdoc St for C23
Following mandoc:

https://cvsweb.bsd.lv/mandoc/st.c?rev=1.19&content-type=text/x-cvsweb-markup
2025-01-03 15:45:33 -08:00
John MacFarlane c9f6d305b3 default.nix: add happy, which is needed by toml-parser. 2025-01-02 09:56:11 -08:00
John MacFarlane 968b0c13ee Typst writer: fix handling of pixel image dimensions.
These are now converted to inches as in the LaTeX writer.

Closes #9945.
2025-01-01 23:00:35 -08:00
John MacFarlane 01b54593cc AsciiDoc writer: improve escaping.
Closes #10385.
Closes #2337.
Closes #6424.
2024-12-28 19:43:23 -08:00
John MacFarlane 9fa4fa3c51 RST reader: fix handling of underscores.
Fixes a regression in 3.6 that caused problems parsing
text with underscores.

Closes #10497.
2024-12-27 19:38:56 -08:00
Evan Silberman 07105ccbff Make pod the default reader for .pod/.pl/.pm 2024-12-27 11:10:48 -08:00