| Perl6-Pod documentation | Contained in the Perl6-Pod distribution. |
Perl6::Pod::FormattingCode::B - Basis/focus of sentence
=para
formatting code B<specifies>
The B<> formatting code specifies that the contained text is the basis or focus of the surrounding text; that it is of fundamental significance. Such content would typically be rendered in a bold style or in <strong>...</strong> tags.
B<test>
Render xhtml:
<strong>test</strong>
B<test>
Render to
<emphasis role='bold'>test</emphasis>
http://zag.ru/perl6-pod/S26.html, Perldoc Pod to HTML converter: http://zag.ru/perl6-pod/, Perl6::Pod::Lib
Zahatski Aliaksandr, <zag@cpan.org>
Copyright (C) 2009-2011 by Zahatski Aliaksandr
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
| Perl6-Pod documentation | Contained in the Perl6-Pod distribution. |
package Perl6::Pod::FormattingCode::B; #$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('strong')->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} = 'bold'; return $emp; } 1; __END__