Move to Pandoc for conversion - way more reliable at the expense of fewer features.