CloudAwesome.MarkdownMaker
2025.7.4.1
dotnet add package CloudAwesome.MarkdownMaker --version 2025.7.4.1
NuGet\Install-Package CloudAwesome.MarkdownMaker -Version 2025.7.4.1
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="CloudAwesome.MarkdownMaker" Version="2025.7.4.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CloudAwesome.MarkdownMaker" Version="2025.7.4.1" />
<PackageReference Include="CloudAwesome.MarkdownMaker" />
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 CloudAwesome.MarkdownMaker --version 2025.7.4.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CloudAwesome.MarkdownMaker, 2025.7.4.1"
#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 CloudAwesome.MarkdownMaker@2025.7.4.1
#: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=CloudAwesome.MarkdownMaker&version=2025.7.4.1
#tool nuget:?package=CloudAwesome.MarkdownMaker&version=2025.7.4.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
markdown-maker
is a lightweight library designed to help with creation/generation of markdown content, either in .md files or complex markdown strings.
Example usage
// Everything starts with an MdDocument
// Nothing is written to file system until calling the .Save() method
var outputFilePath = "C:\\output.md";
var document = new MdDocument(outputFilePath);
var firstHeader = new MdHeader("The header", 1);
var table = new MdTable()
// Define the table's columns. Others could be added later
.AddColumn("First Column")
.AddColumn("Second Column")
.AddColumn("Third Column");
table
.AddRow(new MdTableRow()
// Use AddCell ...
.AddCell("1")
.AddCell("2")
.AddCell("3"))
.AddRow(new MdTableRow
{
// ... or use a Cell object
Cells =
{
new MdPlainText("4"),
new MdPlainText("5"),
new MdPlainText("6")
}
});
var quote = new MdQuote()
.AddLine("All the world’s a stage, and all the men and women merely players.")
.AddLine("They have their exits and their entrances;")
.AddLine("And one man in his time plays many parts.");
var bulletList = new MdList(MdListType.Unordered)
.AddItem("First point")
.AddItem("Second point")
.AddItem("Third point")
.AddItem("Fourth point");
var numberedList = new MdList(MdListType.Ordered)
.AddItem("First point")
.AddItem("Second point")
.AddItem("Third point")
.AddItem("Fourth point");
var todoList = new MdList(MdListType.Todo)
.AddItem("Build something")
.AddItem("Test it")
.AddItem("Push it");
document
.Add(docFxHeader)
.Add(firstHeader)
// Include markdown inline
.Add(new MdParagraph("This is a paragraph of interesting text..."))
.Add(new MdHorizontalLine())
.Add(table)
.Add(quote)
.Add(bulletList)
.Add(numberedList)
// Validate and save to file system
.Save();
// Or just return the markdown content
// .ToString();
See CloudAwesome.MarkdownMaker.Tests for more samples, and documentation at docs.cloudawesome.uk/markdown-maker
Any bug reports or feature requests are greatly appreciated!
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net48 is compatible. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
- FluentValidation (>= 10.3.3)
- System.IO.Abstractions (>= 13.2.47)
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 |
---|---|---|
2025.7.4.1 | 91 | 7/4/2025 |
2021.9.22.1 | 470 | 9/23/2021 |
2021.9.13.2 | 408 | 9/13/2021 |
2021.8.4.6 | 421 | 8/4/2021 |
See changelog at https://github.com/Cloud-Awesome/markdown-maker/releases/