Fix regressions in Pandoc importer/exporter and tests.