I am trying to use a YAML metadata block to specify some document properties in a Markdown document for Pandoc that I am going to convert to LaTeX Beamer. I read the description here: http://johnmacfarlane.net/pandoc/README.html#extension-yaml_metadata_block and attempted the following document:
---
title: Some title
---
# This is a test slideshow.
## This should turn into a slide...
...with some content.
I convert the file to PDF using pandoc -t beamer file.md -V theme:SomeTheme -o file.pdf
. It seems to work correctly with the theme etc., except that the YAML block at the beginning of the document is converted into a table in the first slide containing a top and bottom rule and the text "title: Some title". What am I doing wrong?