MarkdownToPdf 1.0.0-beta
dotnet add package MarkdownToPdf --version 1.0.0-beta
NuGet\Install-Package MarkdownToPdf -Version 1.0.0-beta
<PackageReference Include="MarkdownToPdf" Version="1.0.0-beta" />
paket add MarkdownToPdf --version 1.0.0-beta
#r "nuget: MarkdownToPdf, 1.0.0-beta"
// Install MarkdownToPdf as a Cake Addin #addin nuget:?package=MarkdownToPdf&version=1.0.0-beta&prerelease // Install MarkdownToPdf as a Cake Tool #tool nuget:?package=MarkdownToPdf&version=1.0.0-beta&prerelease
MarkdownToPdf is a .NET library serving as a converter of markdown text to PDF. It supports fully customizable styling via cascading styles, page setup, headers and footers, page numbering, sections, page and sections breaks and it also supports plugins for features like syntax highlighting or for displaying mathematical expressions. Technically it uses markdig library to parse the markdown document an Pdfsharp/Migradoc library to render the output.
Supported markdown flavors and extensions
- basic and github markdown
- Pipe tables
- Grid tables
- Extra emphasis (strike through ~~,Subscript ~ Superscript ^ Inserted ++ Marked ==)
- Special attributes for applying styles and formatting
- Footnotes
- Task Lists
- Citation text by enclosing ""...""
- Custom containers similar to fenced code block :::
- Mathematics/Latex extension by enclosing $$ for block and $ for inline math
- SmartyPants
Basic Usage
var pdf = new MarkdownToPdf();
pdf
.Add("# Hello, Wolrd")
.Save("output.pdf");
License
This software is released under the MIT license.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net472 is compatible. net48 was computed. net481 was computed. |
-
- Markdig (>= 0.26.0)
- PDFsharp-MigraDoc (>= 1.50.5147)
- System.Numerics.Vectors (>= 4.5.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on MarkdownToPdf:
Package | Downloads |
---|---|
MarkdownToPdf.SyntaxHighlighter
Syntax highlighter plugin for MarkdownToPdf Library using PrismSharp. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0-beta | 369 | 2/26/2022 |