fixed some pandoc conversion issues