add support for markdown with yaml frontmatter, closes #1