NAME

Markdown::Parser::Insertion - Markdown Insertion Element

SYNOPSIS

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

VERSION

v0.3.0

DESCRIPTION

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

For example:

Tickets for the event are ~~€5~~ ++€10++

Which would become:

Tickets for the event are <del>€5</del> <ins>€10</ins>

With €5 being stroken through and €10 being highlighted as being added. The actual representation depends on the web browser of course.

METHODS

as_markdown

Returns a string representation of the insertion formatted in markdown.

It returns a plain string.

as_pod

Returns a string representation of the insertion formatted in pod.

It returns a plain string, but it actually returns the original string whatever it was, because there is no equivalent to insertion in pod.

as_string

Returns an html representation of the insertion formatting.

It returns a plain string.

SEE ALSO

Mozilla explanation of the tag

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.