more pandoc conversion fixes