3692a1d1e8
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.
14 lines
384 B
Text
14 lines
384 B
Text
packages: pandoc.cabal
|
|
tests: True
|
|
flags: +embed_data_files
|
|
constraints: aeson >= 2.0.1.0
|
|
|
|
source-repository-package
|
|
type: git
|
|
location: https://github.com/tarleb/pandoc-lua-marshal.git
|
|
tag: 56387e543c48cc5518a77c2a271ff211653f2a36
|
|
|
|
-- source-repository-package
|
|
-- type: git
|
|
-- location: https://github.com/jgm/texmath.git
|
|
-- tag: 674bcbaec03e5550f155623de6662953bd157625
|