NAME

Markdown::Parser::HTML - Markdown HTML Element

SYNOPSIS

my $o = Markdown::Parser::HTML->new;
# or
$doc->add_element( $o->create_html( @_ ) );

VERSION

v0.3.0

DESCRIPTION

This class represents a html chunk of data. It is used by Markdown::Parser and inherits from Markdown::Parser::Element

METHODS

as_markdown

Returns a string representation of the HTML formatted in markdown.

It returns a plain string.

as_pod

Returns a string representation of the HTML formatted in pod.

It returns a plain string.

as_string

Returns an html representation of the HTML.

It returns a plain string.

is_comment

Boolean value to define the content as an html comment or not.

This value does not impact how the method "as_string" or "as_markdown" will work to return the string value.

object

Returns an HTML::Object::Element object from the data stored

SEE ALSO

Markdown original author reference on emphasis: https://daringfireball.net/projects/markdown/syntax#html

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.