| 1 | package Text::Livedoor::Wiki::Plugin::Block::CommentOut; | ||||||||||
| 2 | |||||||||||
| 3 | 5 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 5 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 5 | ▶ | use base qw(Text::Livedoor::Wiki::Plugin::Block); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 232 | ▶ | sub check { | ||||||||
|
Subroutine
check: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 8 | 232 | my $class = shift; | |||||||||
| 9 | 232 | my $line = shift; | |||||||||
| 10 | 232 | my $args = shift; | |||||||||
| 11 | 232 | my $id = $args->{id}; | |||||||||
| 12 | 232 | my $on_next = $args->{on_next}; | |||||||||
| 13 | 232 | ▶ | if( $line =~ /^\/\// ) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 14 | 6 | $Text::Livedoor::Wiki::scratchpad->{skip_ajust_block_break} = '1'; | |||||||||
| 15 | 6 | return { id => $id }; | |||||||||
| 16 | } | ||||||||||
| 17 | 226 | return; | |||||||||
| 18 | } | ||||||||||
| 19 | |||||||||||
| 20 | 2 | ▶ | sub get { | ||||||||
|
Subroutine
get: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 21 | 2 | return ""; | |||||||||
| 22 | } | ||||||||||
| 23 | |||||||||||
| 24 | 5 | 1; | |||||||||
| 25 | |||||||||||
| 26 | =head1 NAME | ||||||||||
| 27 | |||||||||||
| 28 | Text::Livedoor::Wiki::Plugin::Block::CommentOut - Comment Out Block Plugin | ||||||||||
| 29 | |||||||||||
| 30 | =head1 DESCRIPTION | ||||||||||
| 31 | |||||||||||
| 32 | comment out text so that the text does not show up on HTML. | ||||||||||
| 33 | This is NOT the kind of plugin which convert HTML comment tag such as <!-- ... | ||||||||||
| 34 | |||||||||||
| 35 | =head1 SYNOPSIS | ||||||||||
| 36 | |||||||||||
| 37 | // comment here and do not display after parsing | ||||||||||
| 38 | |||||||||||
| 39 | =head1 FUNCTION | ||||||||||
| 40 | |||||||||||
| 41 | =head2 check | ||||||||||
| 42 | |||||||||||
| 43 | =head2 get | ||||||||||
| 44 | |||||||||||
| 45 | =head1 AUTHOR | ||||||||||
| 46 | |||||||||||
| 47 | polocky | ||||||||||
| 48 | |||||||||||
| 49 | =cut | ||||||||||