Blog Logo
TAGS

Parse Markdown Front Matter With C#

Learn how to parse YAML front matter with C# in this blog post by Khalid Abuhakmeh. YAML is tricky syntax that promotes itself as a human-friendly data serialization standard for all programming languages. This post uses Markdig to parse a blog posts front matter, and includes a sample front matter format for a blog engine written in Ruby. The post also includes C# code for creating a class representing the front matter, and an extension method for the Markdig MarkdownDocument class to pull the YAML front matter.