improve pandoc plugin