Perl6::Pod::FormattingCode::I - Important


Perl6-Pod documentation Contained in the Perl6-Pod distribution.

Index


Code Index:

NAME

Top

Perl6::Pod::FormattingCode::I - Important

SYNOPSIS

Top

        =para
        formatting code I<specifies>

DESCRIPTION

Top

The I<> formatting code specifies that the contained text is important; that it is of major significance. Such content would typically be rendered in italics or in <em>...</em> tags.

to_xhtml

    I<test>

Render xhtml:

    <em>test</em>

to_docbook

    I<test>

Render to

   <emphasis role='italic'>test</emphasis> 

SEE ALSO

Top

http://zag.ru/perl6-pod/S26.html, Perldoc Pod to HTML converter: http://zag.ru/perl6-pod/, Perl6::Pod::Lib

AUTHOR

Top

Zahatski Aliaksandr, <zag@cpan.org>

COPYRIGHT AND LICENSE

Top


Perl6-Pod documentation Contained in the Perl6-Pod distribution.
package Perl6::Pod::FormattingCode::I;

#$Id$

use warnings;
use strict;
use Data::Dumper;
use Perl6::Pod::FormattingCode;
use base 'Perl6::Pod::FormattingCode';

sub to_xhtml {
 my ( $self, $parser, @in ) = @_;
 my @content = $parser->_make_events(@in);
 return $parser->mk_element('em')->add_content(@content);
}

sub to_docbook {
 my ( $self, $parser, @in ) = @_;
 my @content = $parser->_make_events(@in);
 my $emp = $parser->mk_element('emphasis')->add_content(@content);
 $emp->attrs_by_name->{role} = 'italic';
 return $emp;
}


1;
__END__