MarkdownToPdf 1.0.0-beta

This is a prerelease version of MarkdownToPdf.
dotnet add package MarkdownToPdf --version 1.0.0-beta
NuGet\Install-Package MarkdownToPdf -Version 1.0.0-beta
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="MarkdownToPdf" Version="1.0.0-beta" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MarkdownToPdf --version 1.0.0-beta
#r "nuget: MarkdownToPdf, 1.0.0-beta"
#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.
// 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 Compatible and additional computed target framework versions.
.NET Framework net472 is compatible.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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 164 2/26/2022