Open
Description
Explain the problem.
Running the following file test.lua
:
Writer = pandoc.scaffolding.Writer
Writer.Block.Para = function(para) return 'para' end
Writer.Blocks({pandoc.Para('asdf'), pandoc.Para('qwer')})
as follows:
pandoc lua test.lua
results in the following error:
Error running Lua:
table expected, got number
stack traceback:
test.lua:3: in main chunk
Based on what is written in the custom writer documentation, I think this should work -- but it is entirely possible that I missed something!
Pandoc version?
pandoc 3.6.4
Features: +server +lua
Scripting engine: Lua 5.4