Commit Graph
17550 Commits
Author SHA1 Message Date
John MacFarlane 7726902816 MANUAL: fix section level for two Extensions entries. 2024-07-04 09:24:43 -07:00
John MacFarlane 2befcb007b Adjust test for #9943 so it works with Windows. 2024-07-03 22:36:21 -07:00
John MacFarlane b65006d3e6 Avoid 'head' in JATS reader, DocBook writer. 2024-07-03 22:26:51 -07:00
John MacFarlane c4cf6b2663 Haddock reader: Avoid use of 'head'. 2024-07-03 22:05:20 -07:00
John MacFarlane 2d12ee3f4c TWiki reader: use isUpper/isLower...
instead of the new isUpperCase/isLowerCase, for portability
across base versions.
2024-07-03 22:01:00 -07:00
John MacFarlane 60c0149084 Man writer: use default middle header when metadata does not...
include `header`.  This change causes pandoc to omit the middle
header parameter when `header` is not set, rather than
emitting `""`.  The parameter is optional and man will use
a default based on the section if it is not specified.

Closes #9943.
2024-07-03 16:25:55 -06:00
John MacFarlane 5604ca612c TWiki Reader: recognize WikiWords as internal links.
Fixes #9941.
2024-07-03 15:45:52 -06:00
John MacFarlane e594cea9ca TWiki reader: avoid partial function. 2024-07-03 15:45:07 -06:00
John MacFarlane c723014d94 Fix some mistakes with Japanese language code.
In several places we were mistakenly assuming that the BCP 47 code for
Japanese language was `jp`.  It is `ja`.

Closes #9938.
2024-07-02 18:31:38 -06:00
John MacFarlane f1799505a9 Add option to link rather than embedding images in ODT.
New cli option: `--link-images`.  This causes images to be linked
rather than embedded in ODT.

New field in WriterOptions: `writerLinkImages` [API change].

New field in Opt: `optLinkImages` [API change].

Closes #9815.
2024-07-01 10:11:26 -06:00
Jens Oehlschlägel 217adafcb5 add ua.yaml 2024-06-30 17:00:13 -06:00
Stephen Huan f0bc45aa93 Add Japanese translations 2024-06-30 10:31:58 -06:00
John MacFarlane 51f3da649c Use dev version of typst-hs.
Fixes parsing of equations like `$1.$`.
2024-06-29 10:30:28 -06:00
Albert Krewinkel 78405f51ae Lua: keep lpeg and re as "loaded" modules.
The modules `lpeg` and `re` are now treated as if they had been
loaded with `require`. Previously the modules were only assigned
to global values, but could be loaded again via `require`,
thereby allowing to use a system-wide installation. However, this
proved to be confusing.

The old behavior can be restored by adding the following lines to
the top of Lua scripts, or to the `init.lua` in the data dir.

    debug.registry()['_LOADED'].lpeg = nil
    debug.registry()['_LOADED'].re = nil
2024-06-28 09:24:41 -06:00
Albert Krewinkel 22ca9e7a20 pandoc-cli: Include pandoc copyright in Lua version info 2024-06-28 11:10:58 +02:00
Albert Krewinkel 522302a97e pandoc-cli: Refer printing of version info to the Lua interpreter
The Lua interpreter no longer terminates when called with `-v` or
`--version` arguments, thus improving compatibility with the default
`lua` interpreter program.
2024-06-28 10:03:14 +02:00
John MacFarlane 59cc5c3725 HTML templates: don't load polyfill.
This was added in a period when MathJaX required polyfill.
MathJaX no longer recommends this and polyfill should no
longer be necessary on any reasonably modern browser.

Closes #9918.
2024-06-26 23:46:18 -06:00
John MacFarlane 5450dc05d8 Allow tls 2.1.x. 2024-06-26 23:45:49 -06:00
John MacFarlane 9f32f07bca Changelog fixes. 2024-06-24 14:35:43 -07:00
John MacFarlane 501d7cc02d Updated AUTHORS.md. pandoc-lua-engine-0.3 3.2.1 pandoc-cli-3.2.1 2024-06-24 12:47:00 -07:00
John MacFarlane d0e77eb576 stack.yaml - bump versions for tls, toml-parser 2024-06-24 12:44:09 -07:00
John MacFarlane f5b43c10d3 Bump pandoc version bound in pandoc-lua-engine. 2024-06-24 12:38:38 -07:00
John MacFarlane d8be1feb32 Update manual date and man pages. 2024-06-24 12:37:25 -07:00
John MacFarlane d44060477d Bump pandoc to 3.2.1, update changelog. 2024-06-24 12:30:23 -07:00
John MacFarlane ea74c90aff Update pandoc-cli to 3.2.1, bump dependency versions 2024-06-24 12:30:15 -07:00
John MacFarlane 7ca6a2b776 Update pandoc-lua-engine to 0.3 2024-06-24 12:29:52 -07:00
John MacFarlane 8f91958f47 Use typst 0.5.0.4. 2024-06-24 11:47:02 -07:00
John MacFarlane 8bdea3f331 Use djot 0.1.2.1. 2024-06-24 11:47:02 -07:00
John MacFarlane c5efa6b600 Use citeproc 0.8.1.1. 2024-06-24 11:47:02 -07:00
TomBen 442dad1f0a Remove pkg-config installation step in nightly workflow 2024-06-24 10:03:01 -07:00
John MacFarlane 45568ad069 Add skylighting to stack.yaml. 2024-06-24 10:02:00 -07:00
John MacFarlane bbcbf8b378 Use released skylighting-core 0.14.2. 2024-06-23 23:10:20 -07:00
John MacFarlane fd9cb5e103 Allow tasty-quickcheck 0.11 2024-06-23 22:17:01 -07:00
John MacFarlane 26b25a4428 LaTeX writer: new method for ensuring images don't overflow.
Previously we relied on graphicx internals and made global
changes to Gin to force images to be resized if they exceed
textwidth.  This approach is brittle and caused problems
with `\includesvg` (see #9660).

The new approach uses a new macro `\pandocbounded` that is
now defined in the LaTeX template. (Thanks here to Falk Hanisch in
https://github.com/mrpiggi/svg/issues/60.)

The LaTeX writer has been changed to enclose `\includegraphics`
and `\includesvg` commands in this macro when they don't explicitly
specify a width or height.

In addition, the writer now adds `keepaspectratio` to the
`\includegraphics` or `\includesvg` options if `height` is specified
without width, or vice versa. Previously, this was set in the preamble
as a global option.

Compatibility issues:

- If custom templates are used with the new LaTeX writer, they will have
  to be updated to include the new `\pandocbounded` macro, or an error
  will be raised because of the undefined macro.

- Documents that specify explicit dimensions for an image may render
  differently, if the dimensions are greater than the line width or
  page height. Previously pandoc would shrink these images to fit,
  but the new behavior takes the specified dimensions literally.
  In addition, pandoc previously always enforced `keepaspectratio`,
  even when width and height were both specified, so images with
  width and height specified that do not conform to their intrinsic
  aspect ratio will appear differently.

Closes #9660.
2024-06-23 16:12:37 -07:00
John MacFarlane 965de61edb Markdown writer: fix bug with block quotes in lists.
Closes #9908.
2024-06-23 14:33:58 -07:00
TomBen 07602dedae Update macOS version in GitHub workflows to macos-12 2024-06-23 09:56:09 -07:00
John MacFarlane b07c05a1e5 OpenXML writer: be craftier in adding East Asian font hints.
In some cases we need to break up a long text run including
both western and East Asian text, so that the punctuation in
the western text doesn't become double-wide.

Closes #9817.
2024-06-22 21:37:06 -07:00
John MacFarlane bee5b1fcd1 HTML writer: ensure URI escaping needed for html4.
Unicode characters need not be escaped for html5, and still won't be.

See #9905.
2024-06-22 18:48:55 -07:00
John MacFarlane 2b60b1a1bc RST reader: Support :cite: role with citeproc.
This patch supports a subset of the functionality of the
sphinxcontrib-bibtex extension to Sphinx. See
<https://sphinxcontrib-bibtex.readthedocs.io/en/latest/quickstart.html>.

Closes #9904.
2024-06-21 23:30:27 -07:00
John MacFarlane 7de74f3404 Add command test for #9358. 2024-06-21 11:15:04 -07:00
John MacFarlane 7786b72584 LaTeX reader: fix parsing of dimensions beginning with ..
E.g., `\kern.1pt`.

Closes #9902.
2024-06-21 11:14:31 -07:00
John MacFarlane 59781abef4 MANUAL: Add a note that column widths aren't supported in pptx...
for Divs with class `columns`. See #9890.
2024-06-19 14:42:15 -07:00
John MacFarlane 34aeb289c9 Textile reader: don't let spans begin right after a symbol.
Closes #9878.
2024-06-18 13:24:59 -07:00
Albert Krewinkel 1e8799ca60 doc/custom-writers.md: document the separator arg of Writer.Blocks
Mention that the default `Writer.Blocks` function in
`pandoc.scaffolding.Writer` takes a separator as an optional second
argument.
2024-06-18 09:13:05 +02:00
John MacFarlane 532bbc875b Use latest commonmark-extensions.
This fixes `auto_identifiers` and `ascii_auto_identifiers`
extensions so that they substitute aliases for emojis,
as documented.

See #9876.
2024-06-17 19:57:33 -07:00
John MacFarlane 80ad2f09d3 Use latest emojis release. 2024-06-17 18:52:18 -07:00
John MacFarlane 97b3056f4e Make gfm_auto_identifiers work as advertised.
It is supposed to replace emojis with their aliases,
but previously this only worked when the emojis were
in a specially marked span.

Note that this change doesn't affect `commonmark` (or `gfm`)
because the relevant code is in commonmark-hs. This will also
need updating.

See #9876.
2024-06-17 13:41:31 -07:00
John MacFarlane fde7908091 Markdown writer: don't print extra caption when using implicit_figures. 2024-06-12 23:00:58 -07:00
John MacFarlane 94975a4e3c Docx reader: improve handling of captions.
- Turn captioned images into Figure elements. Closes #9391.
- Improve the logic for associating elements with captions.
  Closes #9358.
- Ensure that captions that can't be associated with an
  element aren't just silently dropped. Closes #9610.
2024-06-12 22:31:33 -07:00
John MacFarlane b2f0d8e799 Docx reader: rename TblCaption to Capt.
We'll use this for image captions as well. Word does not really
distinguish these.
2024-06-12 10:27:32 -07:00