Add basic pandoc support.

Add basic pandoc support, updated revision of #333.