java code to pandoc converter