diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2021-11-09 14:43:18 +0100 |
---|---|---|
committer | Albert Krewinkel <albert@zeitkraut.de> | 2021-11-09 14:45:36 +0100 |
commit | d4c73d5e6536535015f953ba2e5c3b83979819af (patch) | |
tree | 3490fec71ba4526c0f1d59827d215b970f6c61ac /src/Text/Pandoc/Lua/Module | |
parent | 9c153e3d6e877ce53e8e4f5a9c44f682b973e777 (diff) | |
download | pandoc-d4c73d5e6536535015f953ba2e5c3b83979819af.tar.gz |
Lua: fix argument order in constructor `pandoc.Cite`.
This restores the old behavior; argument order had been switched
accidentally in pandoc 2.15.
Diffstat (limited to 'src/Text/Pandoc/Lua/Module')
-rw-r--r-- | src/Text/Pandoc/Lua/Module/Pandoc.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Lua/Module/Pandoc.hs b/src/Text/Pandoc/Lua/Module/Pandoc.hs index 8f42a2988..a8b111092 100644 --- a/src/Text/Pandoc/Lua/Module/Pandoc.hs +++ b/src/Text/Pandoc/Lua/Module/Pandoc.hs @@ -135,9 +135,9 @@ pushWithConstructorsSubtable constructors = do inlineConstructors :: LuaError e => [DocumentedFunction e] inlineConstructors = [ defun "Cite" - ### liftPure2 Cite - <#> parameter (peekList peekCitation) "citations" "list of Citations" "" + ### liftPure2 (flip Cite) <#> parameter peekInlinesFuzzy "content" "Inline" "placeholder content" + <#> parameter (peekList peekCitation) "citations" "list of Citations" "" =#> functionResult pushInline "Inline" "cite element" , defun "Code" ### liftPure2 (\text mattr -> Code (fromMaybe nullAttr mattr) text) |