Commit Graph
17216 Commits
Author SHA1 Message Date
John MacFarlane ba3e17de8e Minor changelog fix. pandoc-cli-3.1.12 3.1.12 pandoc-server-0.1.0.5 pandoc-lua-engine-0.2.1.3 2024-02-15 10:05:48 -08:00
John MacFarlane 305b9c0d34 Add djot to cabal description. 2024-02-15 09:41:40 -08:00
John MacFarlane 471d544383 Minor changelog changes. 2024-02-15 09:10:09 -08:00
John MacFarlane 17e6afe3f4 Small changelog revisions. 2024-02-15 09:05:37 -08:00
John MacFarlane a62eab40f7 PDF: internal cleanup of tex2pdf path.
Distinguish tmpDir and outDir, since they can come apart
in the latexmk case.
2024-02-15 08:54:27 -08:00
John MacFarlane 307fc065aa Depend on released version of djot. 2024-02-14 23:31:01 -08:00
John MacFarlane e9425aaed7 Allow containers 0.7.
- Bump pandoc-lua-engine to 0.2.1.3.
- Bump pandoc-server to 0.1.0.5.
2024-02-14 23:03:56 -08:00
John MacFarlane f2e3e9891a Bump pandoc-server to 0.1.0.5 and allow containsers 0.7 2024-02-14 22:59:09 -08:00
John MacFarlane 5e970d7e0c Move to lts-22 stack resolver. 2024-02-14 22:49:38 -08:00
John MacFarlane 1c1d83a742 pandoc.cabal: add djot template. 2024-02-14 22:45:51 -08:00
John MacFarlane c8d4725134 Fixe whitespace. 2024-02-14 22:44:50 -08:00
John MacFarlane 392815c2ab Regenerate README.md. 2024-02-14 22:44:39 -08:00
John MacFarlane 06194fefec Update changelog. 2024-02-14 22:43:43 -08:00
John MacFarlane 4b9c78f1ce PDF: avoid readFileLazy.
My hunch is that this is causing improperly cleaned up temp
directory on Windows (#9460), but this will have to be confirmed.
2024-02-14 22:17:26 -08:00
John MacFarlane b98877270d Depend on released versions of commonmark-hs packages. 2024-02-14 20:45:50 -08:00
John MacFarlane e43ab9ec7b Depend on released typst 0.5.0.1. 2024-02-14 10:08:14 -08:00
John MacFarlane 13ac1e0acf Update AUTHORS.md. 2024-02-14 09:15:03 -08:00
John MacFarlane 132508d447 Update man page. 2024-02-14 09:12:30 -08:00
John MacFarlane 32e26b1689 Bump pandoc-cli version to 3.1.12, depend on pandoc 3.1.12. 2024-02-14 09:08:19 -08:00
John MacFarlane f7db1aa0d1 Bump version to 3.1.12. 2024-02-14 09:05:10 -08:00
John MacFarlane 6c98f18e74 Update manual date. 2024-02-14 09:04:22 -08:00
John MacFarlane 2b7fbd0cfe Update changelog. 2024-02-14 09:04:02 -08:00
John MacFarlane 1ab99c0551 T.P.Readers: add readDjot to exports. 2024-02-14 08:12:38 -08:00
John MacFarlane 9c0a0a1c56 Man writer: fix bug with long URLs.
URLs with more than 68 characters didn't display properly because
of wrapping.

Closes #9458.
2024-02-14 07:43:57 -08:00
John MacFarlane 18aff38453 Fix name of djot reader test in pandoc.cabal. 2024-02-14 07:38:29 -08:00
John MacFarlane 7c3a9b6f2f Fix some exports to avoid warnings on older ghc versions. 2024-02-13 23:46:41 -08:00
John MacFarlane 8c42926cb2 Add djot reader and writer.
Djot is a light markup syntax (https://djot.net).

This patch adds djot as input and output formats.

API changes:

Add Text.Pandoc.Readers.Djot
Add Text.Pandoc.Writers.Djot
2024-02-13 23:10:42 -08:00
John MacFarlane ea2466724b Shared.addPandocAttributes: use wrapper attribute, not wrap.
`wrap` is a standard HTML5 attribute.
2024-02-13 22:54:01 -08:00
John MacFarlane a5b691a77e Markdown reader: fix wikilinks extension to allow newlines in titles.
Closes #9454.
2024-02-13 22:20:03 -08:00
John MacFarlane 621d694e2c MANUAL: note support for highlighting in man writer. 2024-02-13 21:08:34 -08:00
John MacFarlane 04520ceaae Man writer: support syntax highlighting (limited).
Currently only boldface and italics are supported.
The `monochrome` style might be of use for those generating
man pages.

Closes #9446.
2024-02-13 21:05:53 -08:00
John MacFarlane cf847b0138 LaTeX reader: improve treatment of cref, Cref.
Associate with `\cref` and `\Cref` the reference-type `ref+label` and
`ref+Label`.  So far we don't do anything fancy with these.
Also, associate with `\vref` `ref` instead of `ref+page`.

See #7463.
2024-02-13 19:32:12 -08:00
John MacFarlane 02b6483b7c Typst writer: use #ref or @ for links with reference-type="ref".
This attribute is added to LaTeX `\cref`, for example.
See #7463.
2024-02-13 19:32:12 -08:00
John MacFarlane 2d83b7ca6f Make LaTeX writer sensitive to empty_paragraphs extension.
Closes #9443.
2024-02-13 15:50:12 -08:00
John MacFarlane d836da7435 LaTeX reader: treat \Cref like \cref (for now).
See #7463.
2024-02-13 08:16:57 -08:00
John MacFarlane aa00714ba4 Typst writer: improve citation support.
Emit `form: "prose"` or `form: "year"` qualifiers if the citation
is author-in-text or suppress-author.

Strip initial comma from suffix, since typst will add an extra
one.

Closes #9452.
2024-02-12 20:01:44 -08:00
Sam May 758ff050b2 HTML5 writer: Add suffix to multiple footnote section ids
The first (and often only) `<aside id=footnotes>` block remains
unchanged, however any additional blocks from `--reference-location` are
distinguished as `#footnotes-2`, `#footnotes-3`, and so on.  No other
existing writer seems to implement per-section IDs, including HTML4.
2024-02-12 18:45:47 -08:00
John MacFarlane bf674e8ddd Markdown writer: use different width fences for nested divs.
Outer divs have longer fences. This aids clarity for the reader,
making it easier to see where the div ends. It also makes the
output compatible with some other implementations, e.g.
micromark, which require different-width fences for nesting.

Closes #9450.
2024-02-12 10:05:36 -08:00
John MacFarlane bd352e41d6 Man reader: move spaces outside of emph/strong.
This is needed to avoid problems in conversion to Markdown
and some other formats. Closes #9445.
2024-02-11 19:06:50 -08:00
John MacFarlane 8c85fbbf2e Powerpoint writer: Fix regression in layout for slides with figures.
Closes #9442.
2024-02-09 16:39:56 -08:00
John MacFarlane 0604fa297d Fix id replacements in SVGs with clipping paths.
This fixes `--embed-resources` when SVGs have `clip-path`
attributes.

Closes #9420.
2024-02-09 16:39:48 -08:00
John MacFarlane ea23868ae4 Fix size of duplicated SVGs with --embed-resources.
Closes #9439.
2024-02-09 16:39:40 -08:00
John MacFarlane 9ccd40f114 Allow zlib 0.7. 2024-02-08 09:07:56 -08:00
John MacFarlane 719f31b26b MediaWiki reader: don't make leading blanks underscores...
in image links. See #9425.

(Not a complete fix for this issue, because `:file:` and the like
are still not handled properly.)
2024-02-07 08:42:20 -08:00
John MacFarlane c46bf5948c MediaWiki reader: allow lowercase image:.
Closes #9424.
2024-02-07 08:28:29 -08:00
John MacFarlane e81a60fdf2 Support "pagetotal" in converting BibLaTeX. 2024-02-07 08:15:47 -08:00
John MacFarlane 5fb0244fa3 Fix stack.yaml. 2024-02-06 20:41:52 -08:00
John MacFarlane 4916cfdd4d Use latest commonmark-extensions. 2024-02-06 19:49:47 -08:00
John MacFarlane 4b8882b459 Add clarification to docs for --resource-path.
Thanks to @cagix for the suggestion (#9417).
2024-02-06 08:03:10 -08:00
Edwin Török 81f7e5789f fix(ci): run 2nd docx validation workflow when script changes
Signed-off-by: Edwin Török <edwin@etorok.net>
2024-02-05 15:07:23 -08:00