Text::Livedoor::Wiki::Plugin::Inline - Inline Plugin Base Class
you can use this class as base to create Inline Plugin.
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;
set regex for your inline formatter rule
set how many args you take
set dependency plugin which must check before your plugin
return HTML you want to display
If you did not use it, then $class->process() is run.
get unique id
get opts
polocky
To install Text::Livedoor::Wiki, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Text::Livedoor::Wiki
CPAN shell
perl -MCPAN -e shell install Text::Livedoor::Wiki
For more information on module installation, please visit the detailed CPAN module installation guide.