aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2020-07-25 20:29:21 +0200
committerAlbert Krewinkel <albert@zeitkraut.de>2020-07-25 20:37:57 +0200
commit44c4660a31fcb6034a7368a3596ab7a252a87ad4 (patch)
treec30788e810abab1b7b12511863dbaee6a9c6b4d0 /src
parent9dd4d077c0729c200a5172dbeaee92f8a0d985f5 (diff)
downloadpandoc-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')
-rw-r--r--src/Text/Pandoc/Lua/Marshaling/AST.hs2
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