NAME
Markdown::Parser::Image - Markdown Image Element
SYNOPSIS
my $o = Markdown::Parser::Image->new;
# or
$doc->add_element( $o->create_image( @_ ) );
VERSION
v0.3.0
DESCRIPTION
This class represents an image formatting. It is used by Markdown::Parser and inherits from Markdown::Parser::Element
METHODS
alt
Sets o gets the alternative text. Stores the value as an Module::Generic::Scalar object.
Returns the current value.
as_markdown
Returns a string representation of the image formatted in markdown.
It returns a plain string.
as_pod
Returns a string representation of the image formatted in pod.
It returns a plain string.
as_string
Returns an html representation of the image.
It returns a plain string.
copy_from
Provided with a Markdown::Parser::LinkDefinition object and this will call "copy_to" in Markdown::Parser::LinkDefinition
id
Sets or gets the array object of css id for this image. There should only be one set. Stores the value as an Module::Generic::Array object.
link_id
Sets or gets the link definition id for this image. Stores the value as an Module::Generic::Scalar object.
title
Sets o gets the image title. Stores the value as an Module::Generic::Scalar object.
Returns the current value.
url
Sets or gets the image url. This stores the value as an URL object.
Returns the current value.
SEE ALSO
Markdown original author reference on emphasis: https://daringfireball.net/projects/markdown/syntax#img
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.