I want to assign the German date
22. Juni 2017 to the date field of the document in the title block of Pandoc. The following works
% Titel % Autor % 22. Juni 2017
but I like the named specification more than this positional one, and I also need to add a subtitle. So I switched to the YAML metadata block. But now, with the German date after
--- title: 'Titel' author: 'Autor' date: '22. Juni 2017' ---
Pandoc interprets the day part (
22.) as an indicator for an ordered list:
<h3 class="date"><ol start="22" style="list-style-type: decimal"> <li>Juni 2017</li> </ol></h3>
I found that inserting a comment (which sometimes help to force a break between document parts)
date: <!-- comment -->22. Juni 2017 doesn't change anything here.
The following hack suppresses the enumeration
--- title: 'Titel' author: 'Autor' date: \ 22. Juni 2017 ---
but produces a non-breaking space that slightly disturbs the layout:
<h3 class="date"> 22. Juni 2017</h3>
Maybe I'm trying something completely wrong here?
Recently I switched from LibreOffice to Pandoc for multi-media publishing. I will at least need to produce HTML and PDF (print) in the future. I'm currently working on getting a stable document (structure) for my Markdown source code that was automatically generated from
*.odt (via Pandoc). That's why I'm checking HTML output: it's fastest. I suspect that issues in the interpretation of the YAML metadata block may affect other output formats as well (including LaTeX).
 I added some background information after the question was put on hold.