True, it was not literally your example, but what a "table of function" would be using your example, I worded incorrectly. (and by the way, your example would need commas to separate the inner tables :) ) A Lua filter is a table of functions as described in the official page, it is not an array (ie a numerical indexed table). It is true though that a .lua script has to return an *array of filters*, as said in the guide: Pandoc expects each Lua file to return a list of filters > So: - a Lua filter is a table of functions. - walk_block (and walk_inline) take a Lua filter (table of functions) as second argument) - a script must return an array of filters (i.e. an array of tables of functions) - a script can return many filters, such as: return { { Meta = meta_begin }, { Pandoc = pandoc_preprocess }. { Div = div_preprocess, Para = parasol, Span = doSpan }, { Inlines = doInlines, Blocks = doBlocks}, { BulletList = whatever }, } -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/996602a6-8c95-406c-b569-f381f517af31o%40googlegroups.com.