NAME

Markdown::Parser::Abbr - Markdown Abbreviation Element

SYNOPSIS

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

VERSION

v0.2.0

DESCRIPTION

This class represents an abbreviation. It is used by Markdown::Parser and inherits from Markdown::Parser::Element

For example:

*[HTML]: Hyper Text Markup Language
*[W3C]:  World Wide Web Consortium

Then, anywhere in the markdown document, one can write:

The HTML specification is maintained by the W3C.

And this would produce the following html:

The <abbr title="Hyper Text Markup Language">HTML</abbr> specification
is maintained by the <abbr title="World Wide Web Consortium">W3C</abbr>.

METHODS

as_markdown

Returns a string representation of the abbreviation formatted in markdown.

It returns a plain string.

as_pod

Returns a string representation of the abbreviation formatted in pod.

It returns a plain string.

as_string

Returns an html representation of the abbreviation.

It returns a plain string.

name

Sets or gets the name of the abbreviation. The value is stored as an Module::Generic::Scalar object.

value

Sets or gets the value of the abbreviation. The value is stored as an Module::Generic::Scalar object.

SEE ALSO

https://michelf.ca/projects/php-markdown/extra/#abbr

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.