Commit Graph
16362 Commits
Author SHA1 Message Date
John MacFarlane fda367ce59 Added to shell.nix 2023-03-03 21:57:25 -08:00
John MacFarlane 8898c5336d Asciidoc writer: Properly escape | in table cells.
Closes #8665.
2023-03-03 18:14:06 -08:00
John MacFarlane becabf5d68 Revise documentation for --mathml
to reflect support in all major browsers.

Closes #8667.
2023-03-03 12:06:52 -08:00
John MacFarlane 07de443c6e Another attempt to fix windows CI caching. 2023-03-02 13:41:53 -08:00
John MacFarlane 7446044ec4 Try to fix cabal global store caching on Windows CI. 2023-03-02 10:17:34 -08:00
John MacFarlane 19e4adaeb5 EPUB reader: Give additional information in error...
if the epub zip container can't be unpacked.

See #8663.
2023-03-02 08:24:00 -08:00
John MacFarlane 52ef7cac7c Fix shadowing from last commit. 2023-03-01 10:48:04 -08:00
John MacFarlane 6b906879af Make sure TSV reader doesn't gobble tabs as whitespace.
Closes #8661.
2023-03-01 09:25:31 -08:00
Albert Krewinkel c8147fc583 Org reader: accept empty tables
Fixes: #8659
2023-03-01 12:20:47 +01:00
John MacFarlane 5ef944a006 LaTeX table parser: also allow 6*c in column spec.
With no braces around `c`.
See #8658.
2023-02-28 10:22:52 -08:00
John MacFarlane 536f72ba11 LaTeX reader: fix multiplication syntax for tabular.
We recognized `*{6}{...}` but not `*6{...}`.

Closes #8658.
2023-02-28 09:21:33 -08:00
John MacFarlane 9e836d16fa Document CJKsansfont, CJKmonofont. 2023-02-26 15:04:35 -08:00
Yudong Jin a1b7078bd3 LaTeX template: Add CJKsansfont and CJKmonofont for XeLaTeX (#8656)
`CJKsansfont` and `CJKmonofont` will be set for xelatex only if `CJKmainfont` is also provided.
2023-02-26 13:47:23 -08:00
John MacFarlane 798980868d Use dev commonmark-extensions. 2023-02-24 10:27:02 -08:00
John MacFarlane b81ead43e0 RST reader: align with spec in syntax for role names.
In particular, we now allow colons in row names.

Closes #8653.
2023-02-24 09:55:25 -08:00
John MacFarlane da66390f83 Add note on converting from .doc format to FAQs.
See #8654.
2023-02-23 23:35:55 -08:00
John MacFarlane 14e2d8d4c2 MANUAL: fix link. 2023-02-22 17:13:38 -08:00
John MacFarlane 56d0aaadd3 Trap error in getAppUserDataDirectory.
This can raise an error if pandoc is run in a non-user environment.
Closes #8648.
2023-02-22 14:21:32 -08:00
Albert Krewinkel 0088b776bc LaTeX writer: do not use longtable foot with Beamer
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.

Fixes: #8638
2023-02-22 09:26:26 +01:00
arcnmx 9c39d1632e asciidoc{,tor} template: fix revision date when author is unset
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

fixes #8637
2023-02-21 09:42:57 -07:00
Albert Krewinkel f5b3a88017 doc/press.md: Add article on CiTO in J Cheminform by @egonw. 2023-02-19 09:12:48 +01:00
John MacFarlane 5d00cbed64 HTML writer: allow "track" element to be treated as block-level HTML.
Closes #8629.
2023-02-18 21:14:31 -07:00
John MacFarlane d1c74ae78c Install pkg-config for macos nightly. 2023-02-18 20:54:49 -07:00
Morgan Willcock 33cf42b78f Doc: fix typo in run_json_filter 2023-02-18 22:46:08 +01:00
Albert Krewinkel ff20354c58 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).
2023-02-18 00:09:21 +01:00
Albert Krewinkel d08d1c04c5 JATS writer: include alt-text in <graphic>, <inline-graphic> elements
Closes: #8631
2023-02-18 00:09:21 +01:00
Pavol Otto da9c196e09 fixed <xref> references to tables in DocBook files
Closes #8626.
2023-02-15 15:51:51 -08:00
John MacFarlane 5889d70a97 Retain metadata in processing sections for chunked HTML.
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.

Closes #8620.
2023-02-15 15:48:11 -08:00
John MacFarlane fd3b955fe5 Remove unnecessary pragmas. 2023-02-15 15:47:43 -08:00
John MacFarlane 4bcce62c90 Include needed polyfill when MathJaX is used.
Closes #8625.
2023-02-14 14:27:22 -08:00
John MacFarlane 431979c2e0 CI: add linux-stack. 2023-02-14 12:49:27 -08:00
John MacFarlane 0297f1d180 CI: switch to using cabal on windows.
stack on windows has too many weird errors.
2023-02-14 10:56:44 -08:00
John MacFarlane 077007894e MANUAL: remove obsolete "raw content in a style" section. 2023-02-14 10:03:43 -08:00
John MacFarlane 944055fdc1 Use latest skylighting-format-context 2023-02-14 09:56:37 -08:00
Albert Krewinkel 45367cdd37 Lua: add new function pandoc.system.cputime.
The function returns the CPU time consumed by pandoc and can be used to
benchmark Lua computations.
2023-02-14 09:44:20 -08:00
Thomas Hodgson 351a8e6c7c URL style in ConTeXt (#8612)
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.

Added documentation for `urlstyle` variable in the ConTeXt template, and added detail to its
documentation in the LaTeX template.
2023-02-12 13:32:40 -08:00
Albert Krewinkel 20d957a325 docs/custom-readers.md: Update JSON parsing example
The example now uses the built-in `pandoc.json` library to parse the API
output.
2023-02-12 11:21:14 +01:00
Albert Krewinkel 75b5851d21 Lua: add module pandoc.json to handle JSON encoding
Closes: #8605
2023-02-11 14:53:53 -08:00
Albert Krewinkel c2827e7765 Use latest pandoc-lua-marshal release, version 0.2.1.
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.
2023-02-11 14:53:53 -08:00
Mikołaj Machowski a5c6776bee correct year in footer for licensing (2022->2023) (#8614) 2023-02-11 08:58:29 -08:00
John MacFarlane bc670665a1 MANUAL: document chunk-template in defaults file. 2023-02-09 22:33:17 -08:00
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