EPS.Extensions.YamlMarkdown 6.0.0

.NET 6.0
Install-Package EPS.Extensions.YamlMarkdown -Version 6.0.0
dotnet add package EPS.Extensions.YamlMarkdown --version 6.0.0
<PackageReference Include="EPS.Extensions.YamlMarkdown" Version="6.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EPS.Extensions.YamlMarkdown --version 6.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: EPS.Extensions.YamlMarkdown, 6.0.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install EPS.Extensions.YamlMarkdown as a Cake Addin
#addin nuget:?package=EPS.Extensions.YamlMarkdown&version=6.0.0

// Install EPS.Extensions.YamlMarkdown as a Cake Tool
#tool nuget:?package=EPS.Extensions.YamlMarkdown&version=6.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

YamlMarkdown

This NuGet package combines YamlDotNet and the Markdig Markdown parsing engine and makes a dead-simple class for parsing a file or TextReader object and deserializing your YAML object type as well as giving you your content in the original Markdown and generic HTML renderings.

The Markdig plugin uses a YAML front matter extension that will parse a YAML front matter into the MarkdownDocument.

Ours treats the YAML front matter as a completely separate object to be used for other purposes (SEO metadata in our use case).

How It Works

// Article in this case is a class of metadata properties 
// saved in the YAML
var parser = new YamlMarkdown<Article>();

// we get the Article object here
var article = parser.Parse("article.md");

//...and here
Console.WriteLine(parser.DataObject);

//...and the markup (separate from the YAML) here
Console.WriteLine(parser.Markdown);

//...and the parsed HTML here
Console.WriteLine(parser.Html);

Product Versions
.NET net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
6.0.0 131 1/5/2022
5.0.0 159 5/13/2021
1.0.0 306 8/25/2020
0.9.0 261 6/27/2020
0.8.0 291 5/18/2020
0.7.0 362 3/30/2020
0.6.0 322 2/4/2020
0.5.0 301 2/4/2020
0.4.0 323 10/25/2019
0.3.0 315 10/18/2019
0.2.0 328 10/15/2019
0.1.0 340 6/27/2019

.NET 6 compatibility