pandoc/test/lua/module
Albert Krewinkel acbea6b8c6
Lua filters: add SimpleTable for backwards compatibility (#6575)
A new type `SimpleTable` is made available to Lua filters. It is
similar to the `Table` type in pandoc versions before 2.10;
conversion functions from and to the new Table type are provided.

Old filters using tables now require minimal changes and can use,
e.g.,

    if PANDOC_VERSION > {2,10,1} then
      pandoc.Table = pandoc.SimpleTable
    end

and

    function Table (tbl)
      tbl = pandoc.utils.to_simple_table(tbl)
      …
      return pandoc.utils.from_simple_table(tbl)
    end

to work with the current pandoc version.
2020-09-20 15:48:31 -07:00
..
pandoc-list.lua Lua: add methods insert, remove, and sort to pandoc.List 2020-01-11 21:31:20 +01:00
pandoc-mediabag.lua Lua modules: test pandoc.mediabag 2019-05-30 08:44:40 +02:00
pandoc-types.lua API change: use PandocError for exceptions in Lua subsystem 2020-04-17 21:52:48 +02:00
pandoc-utils.lua Lua filters: add SimpleTable for backwards compatibility (#6575) 2020-09-20 15:48:31 -07:00
pandoc.lua Lua filters: allow passing of HTML-like tables instead of Attr (#5750) 2019-09-15 12:11:58 -07:00