Markdown::Parser::Header - Markdown Header Element
my $o = Markdown::Parser::Header->new; # or $doc->add_element( $o->create_header( @_ ) );
v0.2.1
This class represents a header formatting. It is used by Markdown::Parser and inherits from Markdown::Parser::Element
Provided with a Markdown::Element::Text object, or a text string, and this will add it to stack of elements or append it to the last text element if any.
Returns a string representation of the header formatted in markdown.
It returns a plain string.
Returns a string representation of the header formatted in pod.
Returns an html representation of the header.
Sets or gets the array object of css class for this header.
Returns a Module::Generic::Array object.
Sets or gets the array object of css id for this header. There should only be one set.
Sets or gets the level for this header. It takes an integer which is stored as a Module::Generic::Number object.
Valid values are from 1 to 6.
Returns the current value set.
Markdown original author reference on emphasis: https://daringfireball.net/projects/markdown/syntax#header
Jacques Deguest <jack@deguest.jp>
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.
To install Markdown::Parser, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Markdown::Parser
CPAN shell
perl -MCPAN -e shell install Markdown::Parser
For more information on module installation, please visit the detailed CPAN module installation guide.