ToMarkdown 1.1.3
dotnet add package ToMarkdown --version 1.1.3
NuGet\Install-Package ToMarkdown -Version 1.1.3
<PackageReference Include="ToMarkdown" Version="1.1.3" />
<PackageVersion Include="ToMarkdown" Version="1.1.3" />
<PackageReference Include="ToMarkdown" />
paket add ToMarkdown --version 1.1.3
#r "nuget: ToMarkdown, 1.1.3"
#:package ToMarkdown@1.1.3
#addin nuget:?package=ToMarkdown&version=1.1.3
#tool nuget:?package=ToMarkdown&version=1.1.3
<p align="center"> <img src="https://github.com/kris701/PDDLSharp/assets/22596587/bc8cb98e-bf75-44ca-935b-cd09f9b9b7de" width="200" height="200" /> </p>
ToMarkdown
This is a small library that enables you to convert C# datastructures into Markdown format.
It includes more or less everything that is in the Markdown Definition.
You can find this as a package on Nuget, GitHub or under Releases.
All the extensions are available under the namespace ToMarkdown.
Currently there are:
IEnumerableto TableIEnumerableto List- Includes different list styles (enumerated, unordered and task list) as well as definition lists
- Any type to markdown strings
- Includes links and different text formats
Examples
Here is a set of examples of how to use the package:
Example 1
var items = new[]
{
new { Name = "John", Value = -1 },
new { Name = "Allan", Value = 60 },
new { Name = "Peter", Value = 46703 }
};
var text = items.ToMarkdownTable();
Gives:
| Name | Value |
|---|---|
| John | -1 |
| Allan | 60 |
| Peter | 46703 |
Example 2
var stringValue = "some text";
var text = stringValue.ToMarkdown(ToMarkdownExtensions.StringStyle.StrikeThrough);
Gives:
some text
Example 3
var list = new List<string>()
{
"First Item",
"Second Item",
"Third Item"
};
var text = list.ToMarkdownEnumeratedList();
Gives:
- First Item
- Second Item
- Third Item
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. 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. |
-
net7.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.