16321 Commits
Author SHA1 Message Date
John MacFarlane 4e07362e75 Bump pandoc-lua-engine to 0.1.1 3.1 pandoc-lua-engine-0.1.1 2023-02-09 22:24:33 -08:00
John MacFarlane 43909582a2 Update AUTHORS.md. 2023-02-09 20:56:28 -08:00
John MacFarlane 41dc32f82b Update changelog. 2023-02-09 20:55:15 -08:00
John MacFarlane 14a248b43d pandoc-lua-engine: require pandoc >= 3.1. 2023-02-09 20:55:00 -08:00
John MacFarlane 6c934abe6d Citeproc: Fix bug in metaValueToReference.
This bug caused us to get some repeated content when converting
MetaBlock to Inlines.  Closes #8611.
2023-02-09 20:02:39 -08:00
Albert Krewinkel 6f83099f6e PPTX writer: fix handling of simple figures
This ensures that simple figures are displayed in the same way as before
the introduction of a dedicated `Figure` constructor in the AST.

Closes: #8565
2023-02-09 21:45:03 +01:00
John MacFarlane b95fcb5b67 Minor changelog update. 2023-02-09 08:26:36 -08:00
Albert Krewinkel 9eee4a2582 Lua: add field chunk_template to WriterOptions objects [API change]
The PathTemplate type exported from Text.Pandoc.Chunks is now an
instance of the ToJSON and FromJSON classes.

Closes: #8607
2023-02-09 08:15:13 +01:00
John MacFarlane 4edc02d3b5 Windows CI: don't cache local packages.
We're running into a stack bug with internal libraries.
See commercialhaskell/stack#6046.
2023-02-08 20:17:30 -08:00
John MacFarlane 3c6e339a36 pandoc-lua-engine: relax version bound to allow pandoc 3.1. 2023-02-08 19:30:05 -08:00
John MacFarlane 122feddce6 Update manual date and man page. 2023-02-08 17:28:16 -08:00
John MacFarlane a04833f04b Bump to 3.1 and update changelog. 2023-02-08 17:27:54 -08:00
John MacFarlane 2a9cd05023 stack.yaml: update skylighting deps. 2023-02-08 16:31:56 -08:00
John MacFarlane 5feb0d14ae CI: workaround ghcup issue on GitHub actions CI.
See https://discourse.haskell.org/t/incident-github-actions-ci-failure-ghcup/5761
2023-02-08 16:06:17 -08:00
John MacFarlane a2d8a8757f Use released skylighting 0.13.2.1 2023-02-08 15:27:10 -08:00
Martin Joerg d9a7d473d9 Fix typos 2023-02-07 10:44:16 +01:00
Albert Krewinkel a197b57c0a LaTeX writer: include short figure/table caption if one is given.
Short captions are used by LaTeX when generating a the list of figures
or list of tables. Adding a short caption will now overwrite the full
caption in these lists.
2023-02-05 13:09:51 +01:00
John MacFarlane ee51696e13 Improve handling of % in bib(la)tex parsing.
bibtex/biblatex seem to pass through an unescaped `%` inside
braces or quotes; it won't escape the closing brace.

So we'll do the same. This prevents the need for our previous
special treatment of url and doi fields.

Closes #8597.
2023-02-04 10:24:13 -08:00
John MacFarlane fc15602e15 More tweaks on INSTALL.md. 2023-02-01 15:09:30 -08:00
John MacFarlane c0d34b557c INSTALL: direct people to cabal install pandoc-cli. 2023-02-01 14:58:14 -08:00
John MacFarlane 1a7146ba70 Handle % in biblatex doi field.
Closes #8595.
2023-02-01 14:20:05 -08:00
John MacFarlane 58dfc3115a Add some diagnostics to newif test. 2023-02-01 09:17:45 -08:00
John MacFarlane 8fc4fc66a3 Add new --chunk-template option (closes #8581).
* Add `--chunk-template` CLI option, allowing more control over the
  chunk filenames in chunked HTML output.
* Text.Pandoc.App: Add `optChunkTemplate` constructor to Opt [API change].
* Text.Pandoc.Options: add `writerChunkTemplate` contsructor to
  WriterOptions [API change].
* Text.Pandoc.Chunks: add Data, Typeable, Generic instances for
  PathTemplate.
2023-01-30 21:09:02 -08:00
Stephen Altamirano 1193bb5964 Add support for Textile footnote backlinks (#8585)
Backlinking from footnotes is already the behavior of `Note` values
when writing HTML. This adds parsing support for the explicit
backlinking syntax in Textile as described here:
https://textile-lang.com/doc/footnotes

Previously, these lines would be interpreted as a new paragraph
beginning with "fn3^." in text.
2023-01-29 19:10:48 -08:00
Daniel Kessler 9dbb75dacb ODT reader: fix blockquote indent detection
The ODT reader is supposed to detect blockquotes by checking a paragraph
style's indentation level. But it's broken for two reasons:

* The parser fails on non-integers. So "1in" will get read as 25mm, but
  "1.0in" fails. By default, the Quotations style is "0.3937in".
* The reader doesn't check indentation levels of parent styles.
  In my test documents, LibreOffice often creates child styles for
  individual paragraphs, so it's important to check parents (ODT files
  created by the Pandoc ODT writer don't have this issue though).

I added a new test "blockquote2" whose ODT file is generated directly
from the corresponding Markdown file with pandoc.

Fixes #3437.
2023-01-29 16:40:32 -08:00
John MacFarlane 5d3b61a048 Fix skylighting clause for skylighting-core. 2023-01-29 15:22:42 -08:00
John MacFarlane 1caa50a428 Use dev skylighting-core 2023-01-29 14:51:59 -08:00
John MacFarlane 845894592a Fix 3.0 regression with --print-highlight-style option.
Closes #8586.
2023-01-29 10:53:45 -08:00
Albert Krewinkel 5f31a01d77 doc/lua-filters.md: document 'Figure' type and constructor 2023-01-28 18:12:26 +01:00
John MacFarlane 49c8bd0a2e Textile reader: don't allow brackets in URLs.
Closes #8582.
2023-01-28 09:08:03 -08:00
Salim B dba779cf1f Hyperlink reference to extension in manual (#8583) 2023-01-27 21:38:55 -08:00
John MacFarlane ad3d7c1914 Add exit trapping code back to make_artifacts.sh.
Otherwise it never exits!
3.0.1
2023-01-25 10:27:39 -08:00
John MacFarlane d3f0cb7a2f Update changelog. 2023-01-25 09:54:43 -08:00
John MacFarlane 131f546282 Ensure that automatically set variables ...
`pandoc-version`, `outputfile`, `title-prefix`, `epub-cover-image`,
`curdir`, `dzslides-core` can be overridden by `--variable` on the
command line.

Previously they would create lists in the template Context,
which is not desirable.
2023-01-25 09:51:59 -08:00
John MacFarlane 5d25e56eec Bump to 3.0.1. 2023-01-25 08:58:11 -08:00
John MacFarlane bf36333faa Update AUTHORS.md 2023-01-25 08:34:52 -08:00
John MacFarlane 0dd8f0b883 Update changelog. 2023-01-25 08:32:36 -08:00
John MacFarlane 50eb8a1d86 Update man pages. 2023-01-25 08:32:27 -08:00
John MacFarlane d784c20213 Update manual date. 2023-01-25 08:31:10 -08:00
John MacFarlane 2e0a3d448f stack.yaml - use latest hslua-list 2023-01-25 08:30:43 -08:00
John MacFarlane 8cb98f841e stack.yaml - bump texmath version. 2023-01-25 08:10:02 -08:00
John MacFarlane 57ae2ed1c7 Require texmath 0.12.6 - for better MathML output. 2023-01-24 21:37:59 -08:00
John MacFarlane b2db85f626 pandoc.cabal: fix upper bound for texmath. 2023-01-23 21:20:08 -08:00
John MacFarlane 23178ec96e LaTeX reader: Fix bug in macro resolution for environments.
This is a regression in pandoc 3.0 that affects environments
with arguments.  Closes #8573.
2023-01-23 12:48:49 -08:00
John MacFarlane 14acf8ee68 LaTeX reader: Fix small logic error in macro parsing code. 2023-01-23 12:48:49 -08:00
John MacFarlane 80c045fb02 Makefile: use -f-export-dynamic in CABALOPTS
This is helpful when building in nix shell.
2023-01-23 12:48:49 -08:00
Carlos Scheidegger b1e4a9eecf Fix typo
`#types-chunkeddoc` -> `#type-chunkeddoc`
2023-01-23 20:32:36 +01:00
John MacFarlane 6182f1a81d Fix use of extensions with custom readers.
Closes #8571.
2023-01-21 21:21:49 -08:00
John MacFarlane ee3180160b T.P.Writers.Shared: export setupTranslations [API change].
Use this in HTML and OpenDocument writers.
2023-01-21 10:18:55 -08:00
John MacFarlane c30ffca70f make_artifacts.sh: fix quoting. 2023-01-20 15:10:42 -08:00