Pandoc 1.13.1 compatibility.

Changes to support the latest version of Pandoc.