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::Emphasis - Markdown Emphasis Element

SYNOPSIS

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

VERSION

    v0.2.0

DESCRIPTION

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

METHODS

as_markdown

Returns a string representation of the emphasis formatted in markdown.

It returns a plain string.

as_pod

Returns a string representation of the emphasis formatted in pod.

It returns a plain string.

as_string

Returns an html representation of the emphasis.

It returns a plain string.

type

Sets or gets the markdown type used to declare the emphasis formatting. The value is stored as a Module::Generic::Scalar

Valid type used to mark some text as bold are * or _

Returns the current value.

SEE ALSO

Markdown original author reference on emphasis: https://daringfireball.net/projects/markdown/syntax#em

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.