dotnet add package EPS.Extensions.YamlMarkdown --version 6.0.2
NuGet\Install-Package EPS.Extensions.YamlMarkdown -Version 6.0.2
<PackageReference Include="EPS.Extensions.YamlMarkdown" Version="6.0.2" />
paket add EPS.Extensions.YamlMarkdown --version 6.0.2
#r "nuget: EPS.Extensions.YamlMarkdown, 6.0.2"
// Install EPS.Extensions.YamlMarkdown as a Cake Addin #addin nuget:?package=EPS.Extensions.YamlMarkdown&version=6.0.2 // Install EPS.Extensions.YamlMarkdown as a Cake Tool #tool nuget:?package=EPS.Extensions.YamlMarkdown&version=6.0.2
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 Compatible and additional computed target framework versions.|
|.NET||net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed.|
- Html2Markdown (>= 126.96.36.1993)
- Markdig (>= 0.30.4)
- YamlDotNet (>= 12.3.1)
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.