pandoc/test/Tests
Albert Krewinkel 3692a1d1e8
Lua: use package pandoc-lua-marshal (#7719)
The marshaling functions for pandoc's AST are extracted into a separate
package. The package comes with a number of changes:

  - Pandoc's List module was rewritten in C, thereby improving error
    messages.

  - Lists of `Block` and `Inline` elements are marshaled using the new
    list types `Blocks` and `Inlines`, respectively. These types
    currently behave identical to the generic List type, but give better
    error messages. This also opens up the possibility of adding
    element-specific methods to these lists in the future.

  - Elements of type `MetaValue` are no longer pushed as values which
    have `.t` and `.tag` properties. This was already true for
    `MetaString` and `MetaBool` values, which are still marshaled as Lua
    strings and booleans, respectively. Affected values:

      + `MetaBlocks` values are marshaled as a `Blocks` list;

      + `MetaInlines` values are marshaled as a `Inlines` list;

      + `MetaList` values are marshaled as a generic pandoc `List`s.

      + `MetaMap` values are marshaled as plain tables and no longer
        given any metatable.

  - The test suite for marshaled objects and their constructors has
    been extended and improved.

  - A bug in Citation objects, where setting a citation's suffix
    modified it's prefix, has been fixed.
2021-11-27 17:08:01 -08:00
..
Lua Lua: add module "pandoc.path" 2021-02-02 21:04:30 -08:00
Readers RST reader: handle class attribute for for custom roles (#7700) 2021-11-18 17:33:57 -08:00
Writers JATS writer: ensure figures are wrapped with <p> in list items. 2021-11-12 13:29:08 +01:00
Command.hs Command tests: raise error if command doesn't begin with %. 2021-09-21 10:42:14 -07:00
Helpers.hs Tests.Helpers: export testGolden and use it in RTF reader. 2021-08-10 22:07:48 -07:00
Lua.hs Lua: use package pandoc-lua-marshal (#7719) 2021-11-27 17:08:01 -08:00
Old.hs Use pretty-simple to format native output. 2021-09-21 12:37:42 -07:00
Shared.hs Writers.Shared: Improve toLegacyTable. 2021-11-11 20:55:37 -08:00