-- drop-images.lua -- Replaces all images (figures, graphics) with a short placeholder. function Image(el) return pandoc.Str("[image omitted]") end -- For LaTeX figures that are still raw function RawBlock(el) if el.format == "tex" and el.text:match("\\begin%s*{%s*figure%s*}") then return pandoc.Plain({pandoc.Str("[figure omitted]")}) end end