Switch to pandoc-based build