MarkdownTable 0.1.0

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

MarkdownTable

A Simple Markdown table builder for Unity (works also on normal c# projects).

Usage

Direct use of MarkdownTableBuilder

var builder = new MarkdownTable.MarkdownTableBuilder()
 	.WithHeader("Name", "Manufacture", "Type", "Year")
	.WithRow("Mary", "Aston Martin", "DB7", "1999")
	.WithRow("Madeline", "Cadilac", "Eldorado", "1959")
	.WithRow("Stephanie", "Chevrolet", "Bel Air", "1957")
	.WithRow("Stacy", "Chevrolet", "Corvette Stingray", "1957")
	.WithRow("Kate", "DeToamso", "Pantera", "1971");

Debug.Log(builder.ToString());

IEnumerable<T> Extension

var garage = new[]
{
	new {Name = "Mary", Manufacturer = "Aston Martin", Type = "DB7", Year = 1999},
	new {Name = "Madeline", Manufacturer = "Cadilac", Type = "Eldorado", Year = 1959},
	new {Name = "Stephanie", Manufacturer = "Chevrolet", Type = "Bel Air", Year = 1957},
	new {Name = "Stacy", Manufacturer = "Chevrolet", Type = "Corvette Stingray", Year = 1957},
	new {Name = "Kate", Manufacturer = "DeTomaso", Type = "Pantera", Year = 1971}
};

Debug.Log(garage.ToMardownTableString());

Log Output

Name      | Manufacturer | Type              | Year  
----------|--------------|-------------------|----- 
Mary      | Aston Martin | DB7               | 1999  
Madeline  | Cadilac      | Eldorado          | 1959  
Stephanie | Chevrolet    | Bel Air           | 1957  
Stacy     | Chevrolet    | Corvette Stingray | 1957  
Kate      | DeToamso     | Pantera           | 1971  

The output can be used as normal markup:

Name Manufacturer Type Year
Mary Aston Martin DB7 1999
Madeline Cadilac Eldorado 1959
Stephanie Chevrolet Bel Air 1957
Stacy Chevrolet Corvette Stingray 1957
Kate DeToamso Pantera 1971

Supported Property/Field Types:

  • TypeCode.String
  • TypeCode.Boolean
  • TypeCode.Decimal
  • TypeCode.Double
  • TypeCode.Single
  • TypeCode.Byte
  • TypeCode.Int16
  • TypeCode.Int32
  • TypeCode.Int64
  • TypeCode.SByte
  • TypeCode.UInt16
  • TypeCode.UInt32
  • TypeCode.UInt64
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has 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
0.1.0 1,412 2/23/2018