adjust snippet for pandoc