Commit graph

15625 commits

Author SHA1 Message Date
John MacFarlane
3eb52a7b8e Update changelog. 2022-08-03 20:52:21 -07:00
John MacFarlane
2bb3f33296 FB2 writer: fix handling of non-section Divs.
This allows the writer to recurse into those Divs and
find new sections inside them. See #8123.
2022-08-03 16:09:03 -07:00
John MacFarlane
94ba44cec9 Bump to 2.19. 2022-08-03 12:20:56 -07:00
John MacFarlane
ccf82d0172 Provisional 2.19 changelog. 2022-08-03 12:20:40 -07:00
John MacFarlane
c9027fb834 Deprecate deLink. 2022-08-03 12:17:09 -07:00
John MacFarlane
47796aa89e Use latest released versions of citeproc, texmath. 2022-08-03 10:44:12 -07:00
John MacFarlane
473c3f22ec Improve default CSS for task lists.
This ensures that there is a space between the checkbox
and the following content and that subsequent content lines up.

Closes #8151.

Supersedes and closes #8163.
2022-08-03 09:51:21 -07:00
Albert Krewinkel
0d7f80c87f
HTML reader: allow sublists that are not marked as items.
The HTML standard requires all list items to be marked with a `<li>`
tag, but some tools fail to do so for sublists. The reader now accepts
these unwrapped lists as sublists.

Closes: #8150
2022-08-03 15:00:35 +02:00
Albert Krewinkel
b306f2e1fd
Org reader: add missing / to Windows file URI; fixes prev commit 2022-08-03 09:51:13 +02:00
Albert Krewinkel
096863e0ad fillMediaBag: Keep attributes of original image on Span
Images that cannot be fetched are replaced with a Span that contains the
image's description. The span now also retains all original image
attributes and inherits all attributes of the image. Furthermore, the
classes `image` and `placeholder` are added, and path and title are
store in attributes `original-image-src` and `original-image-title`,
respectively.

Closes: #8099
2022-08-02 20:09:14 -07:00
Albert Krewinkel
516c827d61
Org reader: recognize absolute paths on Windows
Fixes: #8201
2022-08-02 23:49:10 +02:00
Albert Krewinkel
4633fc3ca0
doc/libraries.md: add hslua packages written specifically for pandoc 2022-08-02 11:09:51 +02:00
Albert Krewinkel
0e8f424d9e HTML: use CSS flex boxes for columns.
This allows to render an arbitrary number of columns, while the previous
approach assumed exactly two columns.
2022-08-01 10:12:13 -07:00
Albert Krewinkel
7a4afce60c Markdown reader: allow special span classes in any position 2022-08-01 10:03:48 -07:00
Albert Krewinkel
f4a7c0b799 Markdown reader: allow more attributes in special spans
Spans with "smallcaps" as the first class are converted to *SmallCaps*
elements. While previously no other classes or attributes were allowed,
additional classes, attributes, and an identifier are not permitted and
kept in a *SmallCaps* wrapping *Span* element.

The same change is applied to underline spans, where the first class
must be either "ul" or "underline".

Closes: #4102
2022-08-01 10:03:48 -07:00
John MacFarlane
82bf0cb9d4 Fix tests for d2bd9abc4d 2022-07-31 11:03:17 -07:00
John MacFarlane
d2bd9abc4d Html template styles: remove span.underline.
Now we use `<u>` elements for underlined text, so this is
superfluous. (@mb21 correct me if I'm wrong.)
2022-07-31 09:51:54 -07:00
John MacFarlane
bec41531fc Add gridtables to doc/libraries.md. 2022-07-30 09:56:51 -07:00
Albert Krewinkel
c015c35a8a
Support rowspans and colspans in grid tables (#8202)
* Add tests for zero-width and fullwidth chars in grid tables

* T.P.Parsing: simplify `gridTableWith'`, `gridTableWith` [API Change]
  The functions `gridTableWith` and `gridTableWith'` no longer takes a
  boolean argument that toggles whether a table head should be parsed:
  both, tables with heads and without heads, are always accepted now.

* Support colspans, rowspans, and multirow headers in grid tables.

  Grid tables in Markdown, reStructuredText, and Org can now contain cells
  spanning over multiple columns and/or multiple rows; table headers
  containing multiple rows are supported as well.

Note: the markdown writer does not yet support these more complex grid
table features.
2022-07-30 08:56:44 -07:00
Albert Krewinkel
de5620b04d
Add tests for zero-width and fullwidth chars in grid tables 2022-07-30 11:27:14 +02:00
John MacFarlane
f637ccd3bf MediaWiki reader: allow HTML comment after row start.
Closes #8110.
2022-07-28 11:28:02 -07:00
John MacFarlane
5c3423f2e2 DokuWiki reader: support latex plugin and math.
The `tex_math_dollars` extension is now supported for `dokuwiki`
(but off by default).

Content inside `<latex>...</latex>` is parsed as raw LaTeX inline,
and inside `<LATEX>..</LATEX>` as raw LaTeX block.

In addition, this commit changes the behavior of `<php>...</php>` so
that instead of producing a code block, it produces raw HTML
with `<?php ... ?>`.

Closes #8178.
2022-07-28 11:28:02 -07:00
Albert Krewinkel
aaf69044b1
Populate mediabag after filters have run. (#8114)
The mediabag is filled with document resources after the filters have
run. This allows, for example, filter authors to modify image paths
before pandoc tries to fetch the images.

Lua filters that rely on a filled mediabag can use the new
`pandoc.mediabag.fill` function to perform that action in the filter.

Closes: #8099
2022-07-28 10:50:00 -07:00
John MacFarlane
4ba72aaa2e Fix bug in filter example. Thanks to Jiří Wolker. 2022-07-27 08:40:31 -07:00
John MacFarlane
1f83f19c92 EPUB writer: allow choice of math method for v3.
Previously we always used MathML for math in EPUB3, because
the spec includes MathML.  But this is not widely supported
by readers, so it seems better to allow users to choose their
math method as they can with EPUB2 or HTML.

Closes #8164.

NOTE!  Existing workflows that produce EPUBv3 documents including
math will be affected by this change.  You must add `--mathml` to
your command line if you want to continue producing MathML.
2022-07-26 10:29:18 -07:00
John MacFarlane
c97c4761a8 Add boxlinks variable for LaTeX/PDF output.
If `boxlinks` is set but `colorlinks` is not, then boxes will
be printed around links (`hidelinks` will not be set in `hypersetup`).

Addresses #8198.
2022-07-26 09:48:17 -07:00
John MacFarlane
ac7fa3da4d HTML writer: Allow "spanlike" classes to be combined.
Previously classes like "underline" and "marked" had to
be the first class in a span in order for the span to be
interpreted as a "ul" or "mark" element.  This commit allows
these special classes to be "stacked," e.g.
`[test]{.mark .underline}`; in addition, the special classes are no
longer required to come first in the list of classes.

See #8194 for context.
2022-07-25 11:55:48 -07:00
John MacFarlane
b7bc980089 Test for #5795: remove redundant 'dfn' classes 2022-07-25 11:01:11 -07:00
Sukka
14cd2641e0
CI: update macos container version (#8197) 2022-07-24 15:40:53 -07:00
John MacFarlane
4ea51b6e96 --self-contained: Handle url() in style elements.
Previously we handled these in included CSS files but not
in style elements.

Closes #8193.
2022-07-23 00:34:09 +02:00
John MacFarlane
e04ea99326 Use dev version of texmath. 2022-07-22 11:23:45 +02:00
John Muccigrosso
d2caafea44
Add section for highlighting markup (#8191) 2022-07-22 10:40:22 +02:00
John MacFarlane
e90ce8e1ab Unescape characters in \lstinline inside \passthrough.
For full motivation, see #1629 ; this improves on
99e24cf183.

Closes #8179.
2022-07-18 19:52:33 +02:00
Albert Krewinkel
dfbfbfbf24
Parsing.GridTable: remove use of unsafe function last 2022-07-18 12:14:54 +02:00
Benjamin Wuethrich
7999b0b96e
Fix links in manual (#8188)
* Fix link to slide shows section
* Fix link to reveal.js section
2022-07-18 10:16:36 +02:00
John MacFarlane
98fb8521a7 RST writer: Fix missing spaces with nested inlines.
Previously spaces around links inside italics were omitted.

Closes #8182.
2022-07-16 15:49:45 +02:00
Albert Krewinkel
c724e9cb7c
Require pandoc-lua-marshal 0.1.7
Adds a `clone` methods to Pandoc objects and allows to pass Blocks in
instead of full Caption elements.
2022-07-16 15:29:18 +02:00
Albert Krewinkel
daef24f022
Lua: extend pandoc.system module. (#8184)
The module now has the additional functions `list_directory`,
`make_directory`, and `remove_directory`. This makes it easier to write
cross-platform scripts that need to inspect or modify the file system.
2022-07-15 21:22:33 +02:00
John MacFarlane
7119fee963 lua-filters.md: Add link to @wlupton's logging.lua.
Closes #8146.
2022-07-15 21:18:21 +02:00
Albert Krewinkel
12cc140272
Lua: add fields pandoc.readers and pandoc.writers. (#8177)
The set of supported input and output formats is made available to Lua
users.
2022-07-12 20:14:42 +02:00
John MacFarlane
c7f5fd2400 RST writer: always escape literal backslash.
Previously we didn't escape it when it is word-internal,
but that seems wrong.  See #8178.
2022-07-12 20:11:05 +02:00
Albert Krewinkel
405a31c3fd
CI: remove cabal command prefix.
This was required for older cabal-install versions, but these are no
longer supported.
2022-07-12 14:25:50 +02:00
John MacFarlane
c950a28191 ms template: redefine rather than removing .CH macro.
This responds to feedback in #8175.
2022-07-12 00:03:51 +02:00
John MacFarlane
cf57a8344a Fix roff ms syntax highlighting definitions.
Begin each string definition with `\&`.
Closes #8175. Thanks to Branden Robinson.
2022-07-11 23:58:13 +02:00
John MacFarlane
05ab2060d6 ms writer: add comment in preamble stating generator. 2022-07-11 23:40:45 +02:00
John MacFarlane
9d256aa19b Use latest dev citeproc 2022-07-11 23:40:13 +02:00
Ivan Panchenko
6ae91045a2
Fix mistakes in the User’s Guide (#8173) 2022-07-11 11:08:10 +02:00
John MacFarlane
56051c8ac3 RTF reader: support \nosupersub.
Closes #8170.
2022-07-07 22:56:29 +02:00
Elliot Bobrow
7fdc01ac0d
Use formatCode from #7525 in HTML and MediaWiki (#8162)
Move formatting from inside inline code elements to the outside in order
to retain formatting.
2022-07-06 22:10:24 +02:00
John MacFarlane
befa9d1301 Ensure that Nulls are ignored in creating slide shows.
Also ensure that Nulls are ignored in sectionification
by `makeSections`.

Closes #8155.
2022-07-04 14:34:14 +02:00