Commit graph

523 commits

Author SHA1 Message Date
John MacFarlane
54f07d259d stack.yaml - update extra-deps. 2022-08-03 21:17:17 -07:00
John MacFarlane
47796aa89e Use latest released versions of citeproc, texmath. 2022-08-03 10:44:12 -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
John MacFarlane
e04ea99326 Use dev version of texmath. 2022-07-22 11:23: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
John MacFarlane
9d256aa19b Use latest dev citeproc 2022-07-11 23:40:13 +02:00
John MacFarlane
3571352a0a Use citeproc 0.8. 2022-07-01 12:12:58 +02:00
Albert Krewinkel
6d351df1ed
Lua: ensure that tables marshaled via JSON arrays behave like Lists.
This allows to invoke methods like `map` and `includes` on lists like
`PANDOC_WRITER_OPTIONS.extensions`.
2022-06-23 22:53:11 +02:00
Albert Krewinkel
0f573a5368
Require hslua-2.2.1, unless lua53 flag is set.
This fixes a problem where the encoding used for Lua filenames would
sometimes mismatch the encoding used by the OS. The file wasn't found
when that happened, for example with an umlaut-containing filename on
Windows. The change ensures that all characters of available in the
default locale can be used in the filename.
2022-06-19 14:30:27 +02:00
John MacFarlane
a6344893b0 Use dev version of citeproc. 2022-06-15 10:52:26 -06:00
Albert Krewinkel
461566aa80
stack.yaml: fix pandoc-lua-marshal version 2022-06-03 11:20:43 +02:00
John MacFarlane
9aff86143e Require skylighting 0.12.3.1 and update tests. 2022-05-31 19:49:27 -07:00
John MacFarlane
9867b9f8fb stack.yaml: Use latest unicode-transforms. 2022-04-04 09:40:05 -07:00
John MacFarlane
836c3c5241 stack.yaml - use latest hslua-module-doclayout. 2022-04-03 23:29:14 -07:00
John MacFarlane
c18bb2ab58 Use latest doclayout (0.4) 2022-04-03 23:13:48 -07:00
John MacFarlane
86e53a5dd7 Use released commonmark 0.2.2, commonmark-extensions 0.2.3.1. 2022-04-02 14:27:17 -07:00
John MacFarlane
feb5b03976 Use citeproc 0.7. 2022-04-02 13:33:05 -07:00
John MacFarlane
dec0455725 Use released version of texmath. 2022-04-02 11:21:36 -07:00
John MacFarlane
7ac72fd549 Use released pandoc-types 1.22.2. 2022-04-02 10:13:58 -07:00
John MacFarlane
63de34481a stack.yaml - remove redundant clause for doclayout. 2022-03-30 14:09:40 -07:00
John MacFarlane
ac2bf2f372 Use latest dev doclayout, pandoc-types 2022-03-30 13:19:06 -07:00
John MacFarlane
f2eb52ad80 Use current dev versions of citeproc, doclayout. 2022-03-23 13:51:14 -07:00
John MacFarlane
5fdcb36c80 Use latest dev citeproc. 2022-03-23 08:52:47 -07:00
John MacFarlane
e2d05626fc Use latest dev texmath. 2022-03-20 11:51:31 -07:00
John MacFarlane
d128f5ee15 Depend on latest dev texmath. 2022-03-12 10:23:55 -08:00
John MacFarlane
d523eca3d3 Use dev version of pandoc-types.
This allows toJSONFilter to work with Meta and MetaValue.
2022-03-11 10:23:06 -08:00
John MacFarlane
f387d9bcd6 Use latest dev commonmark-extensions.
Closes #7942.
2022-02-27 22:42:38 -08:00
John MacFarlane
0ae7b1e1f8 Update texmath version to build against. 2022-02-24 08:54:16 -08:00
John MacFarlane
ba337866e4 Use latest dev texmath. 2022-02-23 10:00:38 -08:00
Albert Krewinkel
a3117bc142
Relax upper bound for hslua, allow hslua-2.2. (#7929)
Lua 5.4 is used by default after this is merged. Packagers may still include Lua 5.3
instead by building pandoc with `--constraint='hslua <2.2'`.

Differences between 5.3 and 5.4 should not generally affect pandoc Lua filters.
See list of incompatible changes here  <https://www.lua.org/manual/5.4/manual.html#8.1>
2022-02-19 11:26:18 -08:00
John MacFarlane
2a70d9c3c5 Require skylighting 0.12.3. 2022-02-18 12:00:39 -08:00
Albert Krewinkel
910296b745
Lua: Use pandoc-lua-marshal 0.1.5.
-   Allow any type of callable object as argument to List
    functions `filter`, `map`, and `find_if`. These previously
    required the argument to be of type `function`, which was too
    restrictive.

-   Inline: the type of Image captions is now `Inlines` instead
    of `List`.
2022-02-17 16:00:20 +01:00
John MacFarlane
139bcb9614 Use latest dev commonmark-extensions. 2022-02-13 13:33:54 -08:00
John MacFarlane
495ae605e3 Use latest dev commonmark, commonmark-extensions. 2022-02-13 12:47:51 -08:00
John MacFarlane
4b1cddd292 Depend on latest commonmark.
This resolves an issue with commonmark_x's support of
strikeout.
2022-02-12 15:31:06 -08:00
Albert Krewinkel
49f1e7608e Lua: add module pandoc.layout to format and layout text 2022-02-06 16:01:24 -08:00
John MacFarlane
54279149ab Use unreleased citeproc. 2022-02-03 07:37:13 -08:00
Albert Krewinkel
412596c30b Switch to hslua-2.1
This allows for some code simplification and improves stability.
2022-01-29 08:43:14 -08:00
John MacFarlane
89c8f2866e Use skylighting 0.12.2. 2022-01-19 15:44:27 -08:00
John MacFarlane
7f4907b2ce Use commonmark-pandoc 0.2.1.2.
Fixes #7769.
2022-01-14 10:07:06 -08:00
John MacFarlane
a8be26b43d Add pandoc-lua-marshal-0.1.3.1 to stack.yaml 2022-01-14 10:07:01 -08:00
John MacFarlane
c9d309d84b Use commonmark-extensions 0.2.3. 2022-01-12 09:58:45 -08:00
John MacFarlane
ed3690afcd Use ipynb 0.2. 2022-01-12 00:09:16 -08:00
John MacFarlane
a416a2f243 Use citeproc 0.6.0.1. 2022-01-11 23:52:57 -08:00
John MacFarlane
a30b29624e Use latest texmath (0.12.4). 2022-01-11 19:19:27 -08:00
John MacFarlane
33da5833de Update commits for dev dependencies, allow text 2.0. 2022-01-09 15:30:22 -08:00
John MacFarlane
1dab8e57d3 Use dev version of citeproc. 2022-01-09 12:09:01 -08:00
Albert Krewinkel
13740c4543
stack.yaml: add missing hslua-aeson entry to extra-deps 2022-01-01 17:02:07 +01:00
John MacFarlane
2811468016 Use latest commonmark-hs.
This allows a bare-word class attribute on fenced divs,
as pandoc's Markdown reader now does.
2021-12-30 21:26:30 -08:00
Albert Krewinkel
fae63b09bb
Lua: use released pandoc-lua-marshal-0.1.3.
Inlines, Blocks, and List objects now have an `__eq` metamethod, testing
equality by comparing two lists element-wise.
2021-12-23 16:04:35 +01:00