Org::Element::Text - Represent text
This document describes version 0.41 of Org::Element::Text (from Perl distribution Org-Parser), released on 2014-11-18.
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).
text
style
Jakarta
*Jakarta!*
(text=Jakarta, style='')
text=Jakarta!, style=B
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.
children
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.
as_text
''=normal, I=italic, B=bold, U=underline, S=strikethrough, V=verbatim, C=code
From Org::Element::InlineRole.
From Org::Element.
Please visit the project's homepage at https://metacpan.org/release/Org-Parser.
Source repository is at https://github.com/perlancar/perl-Org-Parser.
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.
perlancar <perlancar@cpan.org>
This software is copyright (c) 2014 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.
To install Org::Parser, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Org::Parser
CPAN shell
perl -MCPAN -e shell install Org::Parser
For more information on module installation, please visit the detailed CPAN module installation guide.