diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2021-12-10 14:07:41 +0100 |
---|---|---|
committer | Albert Krewinkel <albert@zeitkraut.de> | 2021-12-10 17:24:50 +0100 |
commit | 3e7b46af642b205439e3dee52d805d738c4ad954 (patch) | |
tree | 0a98253ba5d07ae12bcc825dbc2e78694d9fa136 | |
parent | 20eb8ac7fded0220278e8818a92968328f9014eb (diff) | |
download | pandoc-3e7b46af642b205439e3dee52d805d738c4ad954.tar.gz |
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`.
-rw-r--r-- | cabal.project | 5 | ||||
-rw-r--r-- | doc/lua-filters.md | 9 | ||||
-rw-r--r-- | pandoc.cabal | 2 | ||||
-rw-r--r-- | src/Text/Pandoc/Lua/Module/Pandoc.hs | 1 | ||||
-rw-r--r-- | 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 |