Helper for YAML frontmatter in Markdown files