diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2020-07-25 20:29:21 +0200 |
---|---|---|
committer | Albert Krewinkel <albert@zeitkraut.de> | 2020-07-25 20:37:57 +0200 |
commit | 44c4660a31fcb6034a7368a3596ab7a252a87ad4 (patch) | |
tree | c30788e810abab1b7b12511863dbaee6a9c6b4d0 /src/Text/Pandoc/Lua | |
parent | 9dd4d077c0729c200a5172dbeaee92f8a0d985f5 (diff) | |
download | pandoc-44c4660a31fcb6034a7368a3596ab7a252a87ad4.tar.gz |
Lua filters: make attr argument optional in Table constructor
This changes the Lua API. It is highly unlikely for this change to
affect existing filters, since the documentation for the new Table
constructor (and type) was incomplete and partly wrong before.
The Lua API is now more consistent, as all constructors for elements
with attributes now take attributes as the last parameter.
Diffstat (limited to 'src/Text/Pandoc/Lua')
-rw-r--r-- | src/Text/Pandoc/Lua/Marshaling/AST.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Lua/Marshaling/AST.hs b/src/Text/Pandoc/Lua/Marshaling/AST.hs index 359ed6c30..7a75047ae 100644 --- a/src/Text/Pandoc/Lua/Marshaling/AST.hs +++ b/src/Text/Pandoc/Lua/Marshaling/AST.hs @@ -170,7 +170,7 @@ pushBlock = \case Plain blcks -> pushViaConstructor "Plain" blcks RawBlock f cs -> pushViaConstructor "RawBlock" f cs Table attr blkCapt specs thead tbody tfoot -> - pushViaConstructor "Table" attr blkCapt specs thead tbody tfoot + pushViaConstructor "Table" blkCapt specs thead tbody tfoot attr -- | Return the value at the given index as block if possible. peekBlock :: StackIndex -> Lua Block |