From 3e7b46af642b205439e3dee52d805d738c4ad954 Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Fri, 10 Dec 2021 14:07:41 +0100 Subject: Switch to released pandoc-lua-marshal-0.1.2 Cell values are now marshaled as userdata objects; a constructor function for table cells is provided as `pandoc.Cell`. --- cabal.project | 5 ----- doc/lua-filters.md | 9 +++++++++ pandoc.cabal | 2 +- src/Text/Pandoc/Lua/Module/Pandoc.hs | 1 + stack.yaml | 3 +-- 5 files changed, 12 insertions(+), 8 deletions(-) diff --git a/cabal.project b/cabal.project index 63c967594..99c3a7815 100644 --- a/cabal.project +++ b/cabal.project @@ -3,11 +3,6 @@ tests: True flags: +embed_data_files constraints: aeson >= 2.0.1.0 -source-repository-package - type: git - location: https://github.com/pandoc/pandoc-lua-marshal.git - tag: c24be07a51a6fd5ea2e1ec244b8caf220cea5ce4 - -- source-repository-package -- type: git -- location: https://github.com/jgm/texmath.git diff --git a/doc/lua-filters.md b/doc/lua-filters.md index fb13f4915..322833c46 100644 --- a/doc/lua-filters.md +++ b/doc/lua-filters.md @@ -1769,6 +1769,15 @@ Fields: : number of rows occupied by the cell; the height of the cell (integer). +`identifier` +: alias for `attr.identifier` (string) + +`classes` +: alias for `attr.classes` ([List] of strings) + +`attributes` +: alias for `attr.attributes` ([Attributes]) + ### Citation {#type-citation} Single citation entry diff --git a/pandoc.cabal b/pandoc.cabal index 2abc75b87..dcf12bf04 100644 --- a/pandoc.cabal +++ b/pandoc.cabal @@ -481,7 +481,7 @@ library mtl >= 2.2 && < 2.3, network >= 2.6, network-uri >= 2.6 && < 2.8, - pandoc-lua-marshal >= 0.1.1 && < 0.2, + pandoc-lua-marshal >= 0.1.2 && < 0.2, pandoc-types >= 1.22.1 && < 1.23, parsec >= 3.1 && < 3.2, pretty >= 1.1 && < 1.2, diff --git a/src/Text/Pandoc/Lua/Module/Pandoc.hs b/src/Text/Pandoc/Lua/Module/Pandoc.hs index 529a28cf8..ac159ae0d 100644 --- a/src/Text/Pandoc/Lua/Module/Pandoc.hs +++ b/src/Text/Pandoc/Lua/Module/Pandoc.hs @@ -115,6 +115,7 @@ otherConstructors = , mkAttributeList , mkBlocks , mkCitation + , mkCell , mkInlines , mkListAttributes , mkSimpleTable diff --git a/stack.yaml b/stack.yaml index e1eb606b8..548931120 100644 --- a/stack.yaml +++ b/stack.yaml @@ -26,6 +26,7 @@ extra-deps: - lua-2.0.2 - tasty-hslua-1.0.0 - tasty-lua-1.0.0 +- pandoc-lua-marshal-0.1.2 - pandoc-types-1.22.1 - commonmark-0.2.1.1 - commonmark-extensions-0.2.2 @@ -36,8 +37,6 @@ extra-deps: - unicode-data-0.2.0 - git: https://github.com/jgm/ipynb.git commit: 00246af10885c2ad4413ace4f69a7e6c88297a08 -- git: https://github.com/pandoc/pandoc-lua-marshal.git - commit: c24be07a51a6fd5ea2e1ec244b8caf220cea5ce4 ghc-options: "$locals": -fhide-source-paths -Wno-missing-home-modules resolver: lts-18.10 -- cgit v1.2.3