Skip to content

pandoc.scaffolding.Writer.Blocks(blocks) results in error table expected, got number #10817

Open
@rnwst

Description

@rnwst

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions