To generate my documentation, I use a toolchain that generates a markdown file from various sources, the last step is the generation of Confluence HTML via Pandoc. Since Pandoc does not directly support Confluence HTML, I use a patched version of
https://github.com/jpbarrette/pandoc-confluence-writer (patched because the generated HTMl is not always quite correct and some features I need are missing). This worked well for a long time, but after the last update (from Pandoc 2.19.2 to 3.1.8) I got a series of warnings:
WARNING: Undefined function 'Figure'
WARNING: Undefined function 'Figure'
...and the HTML code for the images is completely missing. I tried Pandoc 3.1.9, same result. Confusing: the Lua code of pandoc-confluence-writer does not contain a call to a function named "Figure". Just to analyze the problem, i tried custom-markdown.lua from
https://gist.github.com/tarleb/5a9c3fbfa47b0e6d3643efd8af2994b9 and i got:
Error running Lua:
custom-markdown.lua:19: No function to convert Figure (Block)What's going on? Is this a bug in Pandoc? Is there a workaround?
At the moment I will be using version 2.19.2, but I would like to be able to upgrade to newer versions of Pandoc.