|
NAMEText::MarkdownTable - Write Markdown syntax tables from data SYNOPSIS my $table = Text::MarkdownTable->new;
$table->add({one=>"a",two=>"table"});
$table->add({one=>"is",two=>"nice"});
$table->done;
| one | two |
|-----|-------|
| a | table |
| is | nice |
Text::MarkdownTable->new( columns => ['X','Y','Z'], edges => 0 )
->add({a=>1,b=>2,c=>3})->done;
X | Y | Z
--|---|--
1 | 2 | 3
DESCRIPTIONThis module can be used to write data in tabular form, formatted in MultiMarkdown syntax. The resulting format can be used for instance to display CSV data or to include data tables in Markdown files. Newlines and vertical bars in table cells are replaced by a space character and cell values can be truncated. CONFIGURATION
METHODS
SEE ALSOSee Catmandu::Exporter::Table for an application of this module that can be used to easily convert data to Markdown tables. Similar table-generating modules include: AUTHORJakob Voß <jakob.voss@gbv.de> COPYRIGHT AND LICENSECopyright 2014- Jakob Voß This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
|