ok just reverse-engineered it folloing https://github.com/jgm/pandoc/issues/8932#issuecomment-1614842929 :
Hi all,I'm trying to create bounding boxes for code blocks by wrapping them inside tables.According to the manual, I should probably use some filter like:function CodeBlock(elem)return pandoc.Table(--[[... elem ...]])endbut pandoc.Table takes a giant syntax tree with levels of all sorts of nodes.Neither the manual nor the error message gives a useful guide of actually creating a table.Could anyone provide a minimal example of creating a pandoc.Table in a lua filter?Thanks