NAME
Markdown::Parser::TableHeader - Markdown Table Header Element
SYNOPSIS
my $o = Markdown::Parser::TableHeader->new;
$o->add_element( $o->create_table_row( @_ ) );
VERSION
v0.3.0
DESCRIPTION
This is a class object to represent a table header. It is used by Markdown::Parser and inherits from Markdown::Parser::Element
METHODS
as_css_grid
Returns a string representation of the table headers formatted in markdown.
This method will call each row Markdown::Parser::TableRow object and get their respective markdown string representation.
It returns a plain string.
as_markdown
Returns a string representation of the table formatted in markdown.
This method will call each row Markdown::Parser::TableRow object and get their respective markdown string representation.
It will place a horizontal line separator between each row and returns a plain string.
as_pod
This performs the same as "as_markdown", but for pod.
Returns a string representation of the table header formatted in pod.
It returns a plain string.
as_string
Returns an html representation of the table header. It calls each of its children that should be Markdown::Parser::TableRow objects to get their respective html representation.
It returns a plain string.
reset
Reset any cache generated to allow for re-computation of css grid, markdown or stringification
AUTHOR
Jacques Deguest <jack@deguest.jp>
COPYRIGHT & LICENSE
Copyright (c) 2020 DEGUEST Pte. Ltd.
You can use, copy, modify and redistribute this package and associated files under the same terms as Perl itself.