improving pandoc conversion feature