The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Markdown::Parser::Text - Markdown Text Element

SYNOPSIS

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

VERSION

    v0.2.0

DESCRIPTION

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

METHODS

append

Provided with a string, and this will add it at the end of the current text data accessible with "text".

as_markdown

Returns a string representation of the text formatted in markdown.

It returns a plain string.

as_pod

Returns a string representation of the text formatted in pod.

It returns a plain string.

as_string

Returns an html representation of the text.

It returns a plain string.

text

Set or gets the text. The value is stored as a Module::Generic::Scalar object.

It returns the current value set.

AUTHOR

Jacques Deguest <jack@deguest.jp>

COPYRIGHT & LICENSE

Copyright (c) 2000-2020 DEGUEST Pte. Ltd.

You can use, copy, modify and redistribute this package and associated files under the same terms as Perl itself.