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.
paket add MarkdownTable --version 0.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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.
// Install MarkdownTable as a Cake Addin
#addin nuget:?package=MarkdownTable&version=0.1.0
// Install MarkdownTable as a Cake Tool
#tool nuget:?package=MarkdownTable&version=0.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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,067 | 2/23/2018 |