I'm using another application that outputs MultiMarkdown with a metadata block in the following format:
Title: Blah blah blah
Author: Doo de Doo
Base Header Level: 1
Bibliography: Pubs.bib
Lang: en-GB
Converting this using pandoc -f markdown_mmd -t markdown --standalone we get a metadata block in the following format:
---
author: |
Doo de Doo
baseheaderlevel: |
1
bibliography: |
Pubs.bib
lang: |
en-GB
title: |
Blah blah blah
---
Is there any way within pandoc to get rid of the vertical bar and newline in the metadata fields so that each metadata field is on a single line like in the input file? I know I can pipe the file to something like perl (which has been my workaround) but was wondering if there is a way to do it only with pandoc? (The vertical bar, or whatever it corresponds to in pandoc's AST, causes trouble in epub output by inserting an unwanted p element within title and author elements in the title page.)