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.
42 lines
910 B
YAML
42 lines
910 B
YAML
flags:
|
|
pandoc:
|
|
trypandoc: false
|
|
embed_data_files: true
|
|
QuickCheck:
|
|
old-random: false
|
|
packages:
|
|
- '.'
|
|
extra-deps:
|
|
- skylighting-core-0.12.1
|
|
- skylighting-0.12.1
|
|
- doctemplates-0.10
|
|
- emojis-0.1.2
|
|
- doclayout-0.3.1.1
|
|
- lpeg-1.0.1
|
|
- hslua-2.0.1
|
|
- hslua-classes-2.0.0
|
|
- hslua-core-2.0.0.2
|
|
- hslua-marshalling-2.0.1
|
|
- hslua-module-path-1.0.0
|
|
- hslua-module-system-1.0.0
|
|
- hslua-module-text-1.0.0
|
|
- hslua-module-version-1.0.0
|
|
- hslua-objectorientation-2.0.1
|
|
- hslua-packaging-2.0.0
|
|
- lua-2.0.2
|
|
- tasty-hslua-1.0.0
|
|
- tasty-lua-1.0.0
|
|
- pandoc-types-1.22.1
|
|
- commonmark-0.2.1.1
|
|
- commonmark-extensions-0.2.2
|
|
- citeproc-0.6
|
|
- aeson-pretty-0.8.9
|
|
- ipynb-0.1.0.2
|
|
- texmath-0.12.3.3
|
|
- git: https://github.com/tarleb/hslua-pandoc-types.git
|
|
commit: 56387e543c48cc5518a77c2a271ff211653f2a36
|
|
ghc-options:
|
|
"$locals": -fhide-source-paths -Wno-missing-home-modules
|
|
resolver: lts-18.10
|
|
nix:
|
|
packages: [zlib]
|