The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Org::Element::Text - Represent text

VERSION

This document describes version 0.49 of Org::Element::Text (from Perl distribution Org-Parser), released on 2016-07-14.

DESCRIPTION

Derived from Org::Element.

Org::Element::Text is an object that represents a piece of text. It has text and style attributes. Simple text like Jakarta or *Jakarta!* will be represented, respectively, as (text=Jakarta, style='') and text=Jakarta!, style=B (for bold).

This object can also hold other inline (non-block) elements, e.g. links, radio targets, timestamps, time ranges. They are all put in the children attribute.

ATTRIBUTES

text => str

Plain text for this object only. Note that if you want to get a plain text representation for the whole text (including child elements), you'd want the as_text method.

style => str

''=normal, I=italic, B=bold, U=underline, S=strikethrough, V=verbatim, C=code

METHODS

as_text => str

From Org::Element::InlineRole.

as_string => str

From Org::Element.

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/Org-Parser.

SOURCE

Source repository is at https://github.com/perlancar/perl-Org-Parser.

BUGS

Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Org-Parser

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

AUTHOR

perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2016 by perlancar@cpan.org.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.