MarkdownRender icon indicating copy to clipboard operation
MarkdownRender copied to clipboard

Add YAML Frontmatter extraction support

Open sean-r-williams opened this issue 2 years ago • 0 comments

Related to powershell/powershell#16857.

This is already a native feature of Markdig, so it should be as easy as calling .UseYamlFrontMatter() on MarkdownPipelineBuilder before .Build().

Given that these are essentially document properties, a property added to [Microsoft.PowerShell.MarkdownRender.MarkdownInfo] instances that extracts YAML frontmatter (if present) and deserializes to a CLR object would likely be the most sensible to use.

sean-r-williams avatar Mar 11 '22 02:03 sean-r-williams