made it usable by pandoc files too