improved compatibility with pandoc