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

NAME

Text::Livedoor::Wiki::Plugin::Inline - Inline Plugin Base Class

DESCRIPTION

you can use this class as base to create Inline Plugin.

SYNOPSIS

 package Text::Livedoor::Wiki::Plugin::Inline::Del;
 
 use warnings;
 use strict;
 use base qw(Text::Livedoor::Wiki::Plugin::Inline);
 
 __PACKAGE__->regex(q{%%([^%]*)%%});
 __PACKAGE__->n_args(1);
 __PACKAGE__->dependency( 'Text::Livedoor::Wiki::Plugin::Inline::Underbar' );
 
 sub process {
     my ( $class , $inline , $line ) = @_;
     $line = $inline->parse($line);
     return "<del>$line</del>";
 }
 1;

FUNCTION

regex

set regex for your inline formatter rule

n_args

set how many args you take

dependency

set dependency plugin which must check before your plugin

process

return HTML you want to display

process_mobile

If you did not use it, then $class->process() is run.

uid

get unique id

opts

get opts

AUTHOR

polocky