NAME
Markdown::Parser::Link - Markdown Link Element
SYNOPSIS
my $o = Markdown::Parser::Link->new;
# or
$doc->add_element( $o->create_link( @_ ) );
VERSION
v0.3.0
DESCRIPTION
This class represents a link. It is used by Markdown::Parser and inherits from Markdown::Parser::Element
METHODS
as_markdown
Returns a string representation of the link formatted in markdown.
It returns a plain string.
as_pod
Returns a string representation of the link formatted in pod.
It returns a plain string.
as_string
Returns an html representation of the link.
It returns a plain string.
copy_from
Provided with a Markdown::Parser::LinkDefinition object and this will call "copy_to" in Markdown::Parser::LinkDefinition
encrypt
Boolean value to encrypt links that are an e-mail address
encode_email_address
Given an e-mail address, this use randomly 3 ways to encode it in an attempt to obfuscate and make it harder for spammers to harvest it.
This is based solely on Markdown's original author, John Gruber's code.
id
Sets or gets the array object of css id for this link. There should only be one set. Stores the value as an Module::Generic::Array object.
link_id
Sets or gets the link id. Stores the value as an Module::Generic::Scalar object.
Returns the current value.
name
Sets or gets the link name, i.e. the text highlighted in the link.
In void context, this return the text as a string.
original
Sets or gets the original link string.
title
Sets or gets the link title. Stores the value as an Module::Generic::Scalar object.
Returns the current value.
url
Sets or gets the link 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#link
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.