Skip to content

Extension method for generating text output in Markdown table format.

License

Notifications You must be signed in to change notification settings

jpierson/to-markdown-table

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ToMarkdownTable

An extension method for transforming tabular data into plain text in Markdown table representation.

Usage

C#: Transform an array to a Markdown table:

var list = new[]
{
    new { Username = "Falcore", Score = 1293, },
    new { Username = "Dunsby", Score = 2342, },
    new { Username = "Habisham", Score = 5234, },
};

var markdownTable = list.ToMarkdownTable();

Console.WriteLine(markdownTable);
Username Score
Falcore 1293
Dunsby 2342
Habisham 5234

Getting started

You can install ToMarkdownTable using NuGet.

PM> Install-Package ToMarkdownTable

References

About

Extension method for generating text output in Markdown table format.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages