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 function Link(node) node.target = node.target:gsub(".md", ".html") return node end