-- Disable indentation when a paragraph exclusively contains an image local noindent = pandoc.RawInline('latex', [[ \noindent ]]) function Para(elem) if FORMAT:match 'latex' then if elem.content[1].t == 'Image' then new_elem = elem new_elem.content:insert(1, noindent) return new_elem end end end