Zorg.Pdf.Markdown
0.5.0
dotnet add package Zorg.Pdf.Markdown --version 0.5.0
NuGet\Install-Package Zorg.Pdf.Markdown -Version 0.5.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Zorg.Pdf.Markdown" Version="0.5.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Zorg.Pdf.Markdown" Version="0.5.0" />
<PackageReference Include="Zorg.Pdf.Markdown" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Zorg.Pdf.Markdown --version 0.5.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Zorg.Pdf.Markdown, 0.5.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Zorg.Pdf.Markdown@0.5.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Zorg.Pdf.Markdown&version=0.5.0
#tool nuget:?package=Zorg.Pdf.Markdown&version=0.5.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Zorg.Pdf.Markdown
Markdown for Zorg.Pdf: CommonMark and GitHub-flavoured Markdown become a tagged, accessible PDF. Notes, minutes, reports and READMEs, without writing a layout.
Pre-release: the API will change before 1.0.
using Zorg.Pdf;
using Zorg.Pdf.Markdown;
MarkdownResult result = MarkdownDocument.Parse(await File.ReadAllTextAsync("minutes.md", cancellationToken));
PdfData data = PdfData.Empty;
foreach (string image in result.Images) // paths as written, such as "img/chart.png"
{
data = data.WithImage(image, await File.ReadAllBytesAsync(Path.Combine("docs", image), cancellationToken));
}
await using FileStream output = File.Create("minutes.pdf");
await result.Document.RenderAsync(output, new RenderOptions { Fonts = fonts, Data = data }, cancellationToken);
- Headings, bold and italic, line breaks, bulleted and numbered lists (with their start number, nesting and task boxes), pipe tables with alignment, code blocks, quotes, rules, images on a line of their own and links.
- YAML front matter sets
titleandlang; without it, the first level 1 heading is the title. - Images are data slots named by their path: nothing is read from disk or the network.
- Raw HTML is left out, with a warning. Everything simplified is reported with a
markdown:line:columnpath. - Parsing is by Markdig (BSD-2-Clause).
Documentation
- Diagnostics (ZPDF-M001 to M003)
- Known limits
- Changelog
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
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 |
|---|---|---|
| 0.5.0 | 45 | 11/15/2026 |
| 0.1.0-preview.1 | 46 | 11/15/2026 |