Pandoc compatibility hack