function Pandoc(doc) local title_header = pandoc.Header(1, '') local title = doc.meta.title title_header.content = title doc.blocks:insert(1, title_header) return doc end