Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 826 Bytes

README.md

File metadata and controls

38 lines (26 loc) · 826 Bytes

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