Support YAML frontmatter headers.

Some markdown variants (eg. pandoc) are able to parse YAML headers