ToMarkdown 1.1.3

dotnet add package ToMarkdown --version 1.1.3
                    
NuGet\Install-Package ToMarkdown -Version 1.1.3
                    
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="ToMarkdown" Version="1.1.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ToMarkdown" Version="1.1.3" />
                    
Directory.Packages.props
<PackageReference Include="ToMarkdown" />
                    
Project file
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 ToMarkdown --version 1.1.3
                    
#r "nuget: ToMarkdown, 1.1.3"
                    
#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 ToMarkdown@1.1.3
                    
#: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=ToMarkdown&version=1.1.3
                    
Install as a Cake Addin
#tool nuget:?package=ToMarkdown&version=1.1.3
                    
Install as a Cake Tool

<p align="center"> <img src="https://github.com/kris701/PDDLSharp/assets/22596587/bc8cb98e-bf75-44ca-935b-cd09f9b9b7de" width="200" height="200" /> </p>

Build and Publish Nuget Nuget GitHub last commit (branch) GitHub commit activity (branch) Static Badge Static Badge Static Badge

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:

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:

  1. First Item
  2. Second Item
  3. Third Item
Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • 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.

Version Downloads Last Updated
1.1.3 378 1/31/2024
1.1.2 170 1/26/2024
1.1.1 151 1/26/2024
1.1.0 152 1/26/2024
1.0.4 177 1/25/2024
1.0.3 168 1/25/2024
1.0.2 168 1/25/2024
1.0.1 164 1/25/2024
1.0.0 154 1/25/2024