Yaml2Doc.Markdown
1.1.0
dotnet add package Yaml2Doc.Markdown --version 1.1.0
NuGet\Install-Package Yaml2Doc.Markdown -Version 1.1.0
<PackageReference Include="Yaml2Doc.Markdown" Version="1.1.0" />
<PackageVersion Include="Yaml2Doc.Markdown" Version="1.1.0" />
<PackageReference Include="Yaml2Doc.Markdown" />
paket add Yaml2Doc.Markdown --version 1.1.0
#r "nuget: Yaml2Doc.Markdown, 1.1.0"
#:package Yaml2Doc.Markdown@1.1.0
#addin nuget:?package=Yaml2Doc.Markdown&version=1.1.0
#tool nuget:?package=Yaml2Doc.Markdown&version=1.1.0
Yaml2Doc.Markdown
Yaml2Doc.Markdown provides a baseline Markdown renderer for the Yaml2Doc core model (PipelineDocument).
For v1.x, the renderer is intentionally small and predictable:
- Renders a top-level heading from the document
Name, if present. - Falls back to
# YAML Documentif nonameis provided. - Emits a
## Root Keyssection listing the top-level keys in the YAML document.
Starting with v1.1.0, the renderer can also surface dialect-aware sections when the PipelineDocument includes richer, dialect-specific metadata (e.g., triggers, jobs, steps). For a plain "standard YAML" document, the output remains identical to v1.0.0.
Use this package if you already have a PipelineDocument and just want a predictable Markdown representation, with optional dialect-aware extras when available.
Installation
dotnet add package Yaml2Doc.Markdown
Basic usage
Given a PipelineDocument (usually produced by Yaml2Doc.Core):
using Yaml2Doc.Core.Models;
using Yaml2Doc.Markdown;
// Suppose you obtained this from Yaml2Doc.Core
PipelineDocument document = GetPipelineDocumentSomehow();
// Create the renderer
IMarkdownRenderer renderer = new BasicMarkdownRenderer();
// Render to Markdown
string markdown = renderer.Render(document);
// Write or use the Markdown
Console.WriteLine(markdown);
Typical output shape for standard YAML:
# My Pipeline
## Root Keys
- name
- trigger
- jobs
For documents produced by dialects (e.g., GitHub Actions / Azure Pipelines), the renderer may additionally emit sections such as:
## Trigger
...
## Jobs
...
## Steps
...
These sections are additive: they sit alongside the existing heading and Root Keys section.
You can implement your own IMarkdownRenderer if you need a different layout or more opinionated dialect-specific Markdown.
API documentation
For full type and member details, see:
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net9.0
- Xml2Doc.MSBuild (>= 1.4.0-preview.80-g111a6ac)
- Yaml2Doc.Core (>= 1.1.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Yaml2Doc.Markdown:
| Package | Downloads |
|---|---|
|
Yaml2Doc.Cli
Command-line tool that converts YAML pipeline definitions into Markdown documentation. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.1.0 | 193 | 12/4/2025 |
| 1.1.0-preview.26-ga1ebf43 | 168 | 12/4/2025 |
| 1.1.0-preview.25-gc4d1d21 | 168 | 12/4/2025 |
| 1.0.0 | 183 | 12/3/2025 |
| 1.0.0-preview.24-gd822a58 | 167 | 12/3/2025 |
| 1.0.0-preview.23-g2fad194 | 169 | 12/3/2025 |
| 1.0.0-preview.22-gd7f78e2 | 171 | 12/3/2025 |
| 1.0.0-preview.21-g71d2f29 | 173 | 12/3/2025 |
| 1.0.0-preview.20-ga2d3c5e | 167 | 12/3/2025 |